/* Page Aide — guide utilisateur */
.help-page {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.help-hero {
  background: linear-gradient(135deg, #16181D 0%, #2a1a1e 55%, #C8102E 140%);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.help-hero h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.help-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 40rem;
}

.help-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.help-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.help-toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.75rem;
  z-index: 5;
}

.help-toc h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.help-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 1.5rem;
}

.help-toc li {
  break-inside: avoid;
  margin: 0.25rem 0;
  font-size: 0.88rem;
}

.help-toc a {
  color: var(--sea);
  text-decoration: none;
}

.help-toc a:hover { text-decoration: underline; color: var(--brand); }

.help-sec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.45rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem;
}

.help-sec h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.help-sec h3 .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.help-sec h4 {
  font-size: 0.98rem;
  margin: 1rem 0 0.4rem;
  color: var(--ink-2);
}

.help-sec p, .help-sec li {
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 0.94rem;
}

.help-sec p { margin: 0.45rem 0; }

.help-sec ul, .help-sec ol {
  margin: 0.4rem 0 0.6rem 1.2rem;
}

.help-sec li { margin: 0.28rem 0; }

.help-callout {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.help-callout strong { display: block; margin-bottom: 0.2rem; }

.help-callout.warn {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  color: #9A3412;
}

.help-callout.ok {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

.help-callout.info {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1E3A8A;
}

.help-callout.danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

body.dark .help-callout.warn { background: #2a1f12; border-color: #92400e; color: #FDBA74; }
body.dark .help-callout.ok { background: #0f2a20; border-color: #065f46; color: #6EE7B7; }
body.dark .help-callout.info { background: #132238; border-color: #1e3a8a; color: #93C5FD; }
body.dark .help-callout.danger { background: #2a1414; border-color: #7f1d1d; color: #FCA5A5; }

.help-steps {
  counter-reset: hs;
  list-style: none;
  margin: 0.6rem 0 0.8rem;
  padding: 0;
}

.help-steps li {
  counter-increment: hs;
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0.45rem 0;
  background: var(--gray-50);
}

.help-steps li::before {
  content: counter(hs);
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-figure {
  margin: 1rem 0 0.35rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--gray-50);
}

.help-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.help-caption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.85rem 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.help-mock {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0.9rem 0;
  font-size: 0.78rem;
  background: var(--card);
}

.help-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: #16181D;
  color: #e5e7eb;
}

.help-mock-bar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #C8102E; display: inline-block; margin-right: 6px;
}

.help-mock-body { padding: 0.75rem; }

.help-mock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0;
}

.help-pill {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.help-pill.sea { background: #E8F1FB; border-color: #93C5FD; color: #1D5BA8; }
.help-pill.red { background: var(--brand-soft); border-color: #FECACA; color: var(--brand-dark); }
.help-pill.ok { background: #ECFDF5; border-color: #6EE7B7; color: #065F46; }
.help-pill.warn { background: #FFF7ED; border-color: #FDBA74; color: #9A3412; }

.help-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 0.5rem 0;
}

.help-kpi div {
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  text-align: center;
}

.help-kpi b { display: block; font-size: 1.1rem; color: var(--ink); }
.help-kpi span { color: var(--muted); font-size: 0.72rem; }

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 0.6rem 0;
}

.help-table th, .help-table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.help-table th {
  background: var(--gray-50);
  color: var(--ink);
  font-weight: 600;
}

.help-kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--gray-50);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8em;
}

.help-checklist label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  cursor: default;
}

.help-checklist input { margin-top: 0.2rem; }

@media (max-width: 720px) {
  .help-toc ol { columns: 1; }
  .help-kpi { grid-template-columns: repeat(2, 1fr); }
  .help-toc { position: static; }
}
