/* =========================================================
   Aide en ligne — centre d'aide pas à pas
   ========================================================= */
.page-aide main { background: var(--color-studio-mist, #f5f5f7); }

.hhero { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 12vh, 130px) var(--pad-x) 40px; }
.hhero__title { font-family: var(--font-display); font-size: clamp(44px, 7vw, 80px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; margin: 8px 0 20px; }
.hhero__sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 720px; margin: 0 0 32px; color: var(--color-ink); }
.hsearch { display: flex; align-items: center; gap: 10px; max-width: 560px; background: #fff; border-radius: 999px; padding: 0 20px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.hsearch:focus-within { box-shadow: 0 0 0 2px var(--color-blue, #0071e3); }
.hsearch svg { width: 18px; height: 18px; fill: #86868b; flex: none; }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; padding: 14px 0; color: inherit; }
.hsearch__none { margin: 16px 0 0; color: #6e6e73; }

.help { max-width: 1180px; margin: 0 auto; padding: 20px var(--pad-x) 120px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.help__toc { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding-bottom: 20px; }
.help__toc p { margin: 18px 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6e6e73; }
.help__toc p:first-child { margin-top: 0; }
.help__toc a { color: var(--color-ink); text-decoration: none; padding: 6px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.help__toc a:hover { background: rgba(0, 0, 0, .05); }
.help__toc a.is-on { background: #fff; color: var(--color-link, #0066cc); font-weight: 500; }
.help__toc a[hidden] { display: none; }

.help__body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hsec { background: #fff; border-radius: var(--radius-cards, 28px); padding: clamp(24px, 4vw, 48px); scroll-margin-top: 72px; }
.hsec[hidden] { display: none; }
.hsec__k { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--color-link, #0066cc); text-transform: uppercase; letter-spacing: .05em; }
.hsec h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 20px; }
.hsec h3 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.hsec p { font-size: 17px; line-height: 1.55; margin: 0 0 14px; }
.hsec a { color: var(--color-link, #0066cc); }
.hsec code, .hsec kbd { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: .88em; background: #f5f5f7; padding: 2px 6px; border-radius: 6px; }

.hshot { margin: 0 0 24px; border-radius: 16px; overflow: hidden; background: #f5f5f7; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); cursor: zoom-in; }
.hshot img { display: block; width: 100%; height: auto; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; font-size: 17px; line-height: 1.5; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-blue, #0071e3); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; }
.steps--plain > li::before { content: ""; width: 8px; height: 8px; top: 9px; left: 11px; }
.steps ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
.roles div { background: #f5f5f7; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.roles b { font-size: 13px; letter-spacing: .05em; }
.roles span { font-size: 15px; line-height: 1.45; }

.tip, .warn { border-radius: 16px; padding: 16px 20px; font-size: 16px !important; }
.tip { background: #eef5ff; }
.warn { background: #fff4e5; }

.gloss { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 24px; margin: 0; }
.gloss dt { font-weight: 600; }
.gloss dd { margin: 0; line-height: 1.5; }

.faq { border-top: 1px solid rgba(0, 0, 0, .08); }
.faq:last-of-type { border-bottom: 1px solid rgba(0, 0, 0, .08); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-size: 17px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #6e6e73; transition: transform .3s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding-bottom: 8px; }

.hcta { background: var(--color-ink, #1d1d1f); color: #fff; border-radius: var(--radius-cards, 28px); padding: clamp(28px, 5vw, 56px); }
.hcta h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.hcta p { margin: 0 0 24px; opacity: .8; }
.hcta .textlink { color: #2997ff; }

.hzoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.hzoom::backdrop { background: rgba(0, 0, 0, .8); }
.hzoom img { display: block; max-width: 96vw; max-height: 94vh; border-radius: 12px; }
.hzoom button { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 960px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help__toc { position: static; max-height: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .help__toc p { display: none; }
  .help__toc a { white-space: nowrap; background: #fff; border-radius: 999px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .gloss { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gloss dd { margin-bottom: 12px; }
}
@media print {
  .gnav, .lnav, .help__toc, .hsearch, .hcta, .footer { display: none !important; }
  .help { display: block; }
  .hsec { break-inside: avoid-page; padding: 0 0 24px; }
}
