/* ============================================================
   CENTRE D'AIDE (/aide/) — .zd-help
   Tokens --zd-* du thème Zisima (clair / sombre) ; valeurs de
   secours après la virgule si le thème est absent.
   ============================================================ */
.zd-help {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--zd-bar-h, 64px) + 32px);
  color: var(--zd-text, #18181b);
  font-family: var(--zd-font, system-ui, sans-serif);
}

/* En-tête */
.zd-help__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px 16px;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-surface, #fff);
  text-align: center;
  box-shadow: var(--zd-shadow, none);
}
.zd-help__badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--zd-brand, #c2185b);
  color: var(--zd-on-brand, #fff);
  box-shadow: 0 6px 18px var(--zd-brand-glow, rgba(194, 24, 91, 0.3));
}
.zd-help__badge .zd-fill { fill: currentColor; fill-opacity: 0.25; }
.zd-help__title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--zd-text, #18181b);
}
.zd-help__lead {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--zd-text-2, #52525b);
}
.zd-help__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid var(--zd-border, #e0e0e6);
  border-radius: var(--zd-radius-pill, 999px);
  background: var(--zd-surface-2, #ececf0);
  color: var(--zd-icon, #5f5f69);
  box-sizing: border-box;
}
.zd-help__search:focus-within {
  border-color: var(--zd-brand, #c2185b);
  box-shadow: 0 0 0 3px var(--zd-brand-soft, #fce4ec);
}
.zd-help__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zd-text, #18181b);
  font: 400 16px/1 var(--zd-font, system-ui, sans-serif);
  outline: none;
}
.zd-help__search input::placeholder { color: var(--zd-text-3, #71717a); }

/* Sujets en grille */
.zd-help__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.zd-help.is-searching .zd-help__grid { display: none; }
.zd-help__card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--zd-border, #e0e0e6);
  border-radius: var(--zd-radius-btn, 12px);
  background: var(--zd-surface, #fff);
  color: var(--zd-text, #18181b);
  text-decoration: none;
  transition: border-color 150ms ease, transform 120ms ease;
}
.zd-help__card:active { transform: scale(0.98); }
@media (hover: hover) {
  .zd-help__card:hover { border-color: var(--zd-brand, #c2185b); }
}
.zd-help__card-ico,
.zd-help__sum-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--zd-brand-soft, #fce4ec);
  color: var(--zd-brand-fg, #ad1457);
}
.zd-help__card-ico .zd-fill,
.zd-help__sum-ico .zd-fill { fill: currentColor; fill-opacity: 0.2; }
.zd-help__card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

/* Tutoriels en accordéon */
.zd-help__list {
  overflow: hidden;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-surface, #fff);
  box-shadow: var(--zd-shadow, none);
}
.zd-help__item { border-bottom: 1px solid var(--zd-border, #e0e0e6); scroll-margin-top: calc(var(--zsm-header-h, 60px) + 12px); }
.zd-help__item:last-child { border-bottom: 0; }
.zd-help__sum {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.zd-help__sum::-webkit-details-marker { display: none; }
.zd-help__sum:focus-visible { outline: 2px solid var(--zd-brand, #c2185b); outline-offset: -2px; }
.zd-help__sum-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.zd-help__sum-title { font-size: 15px; font-weight: 700; color: var(--zd-text, #18181b); }
.zd-help__sum-sub { font-size: 13px; line-height: 1.35; color: var(--zd-text-2, #52525b); }
.zd-help__chev { display: grid; color: var(--zd-icon, #5f5f69); transition: transform 200ms ease; }
.zd-help__item[open] .zd-help__chev { transform: rotate(90deg); }
.zd-help__item[open] .zd-help__sum { background: var(--zd-surface-2, #ececf0); }

.zd-help__body { padding: 4px 16px 18px; }
.zd-help__steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: zd-step;
}
.zd-help__steps li {
  position: relative;
  margin: 0;
  padding: 0 0 14px 40px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--zd-text, #18181b);
  counter-increment: zd-step;
}
.zd-help__steps li::before {
  content: counter(zd-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--zd-brand, #c2185b);
  color: var(--zd-on-brand, #fff);
  font-size: 13px;
  font-weight: 700;
}
/* Fil vertical entre les étapes */
.zd-help__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 12px;
  width: 2px;
  border-radius: 1px;
  background: var(--zd-brand-soft, #fce4ec);
}
.zd-help__steps a,
.zd-help__tips a { color: var(--zd-brand-fg, #ad1457); font-weight: 700; }
.zd-help__tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border-radius: var(--zd-radius-btn, 12px);
  background: var(--zd-surface-2, #ececf0);
}
.zd-help__tips p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--zd-text-2, #52525b);
}
.zd-help__tips svg { flex-shrink: 0; margin-top: 2px; color: var(--zd-sun, #ffb020); }
.zd-help__tips .zd-fill { fill: currentColor; }
.zd-help__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  margin-top: 14px;
  border-radius: var(--zd-radius-btn, 12px);
  background: var(--zd-brand, #c2185b);
  color: var(--zd-on-brand, #fff);
  font-weight: 700;
  text-decoration: none;
}
.zd-help__cta--danger {
  border: 1px solid var(--zd-danger, #d93636);
  background: transparent;
  color: var(--zd-danger, #d93636);
}

.zd-help__empty {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-surface, #fff);
  text-align: center;
  color: var(--zd-text-2, #52525b);
}

/* Bloc « Vous n'avez pas trouvé ? » */
.zd-help__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--zd-radius-card, 16px);
  background: var(--zd-brand-soft, #fce4ec);
}
.zd-help__more > div { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 180px; }
.zd-help__more strong { font-size: 15px; color: var(--zd-text, #18181b); }
.zd-help__more span { font-size: 13px; color: var(--zd-text-2, #52525b); }
.zd-help__more-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--zd-brand, #c2185b);
  color: var(--zd-on-brand, #fff);
}
.zd-help__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--zd-radius-btn, 12px);
  background: var(--zd-brand, #c2185b);
  color: var(--zd-on-brand, #fff);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 600px) {
  .zd-help__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .zd-help__chev,
  .zd-help__card { transition: none; }
}

/* Robot Zima dans le bloc « Vous n'avez pas trouvé ? » */
.zd-help__more-zima {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff; /* l'illustration a un fond blanc */
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--zd-surface, #fff), 0 0 0 4px var(--zd-brand, #c2185b);
}
