/* NDOLI — centre d'aide, « Suivre ma commande », favoris et pages légales. */

/* ---------- Centre d'aide ---------- */
.help-hero { display: grid; gap: var(--sp-4); }
.help-hero__text { display: grid; gap: var(--sp-1); }
.help-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--nd-primary); font-size: var(--fs-sm); font-weight: 600; }
.help-hero__eyebrow .icon { width: 18px; height: 18px; }

.help-topics ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .help-topics ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .help-topics ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.help-topic {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--nd-border);
  border-radius: var(--radius-md);
  background: var(--nd-white);
  color: var(--nd-primary-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: var(--lh-snug);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-base) var(--ease-out);
}
.help-topic .icon { flex: none; width: 20px; height: 20px; color: var(--nd-primary); }
.help-topic:hover { border-color: var(--nd-lavender-strong); box-shadow: var(--shadow-xs); }
.help-topic:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.help-topic--accent { border-color: transparent; background: var(--nd-gradient-cta); color: var(--nd-white); }
.help-topic--accent .icon { color: currentColor; }

.help-track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--nd-border);
  border-radius: var(--radius-lg);
  background: var(--nd-lavender-soft);
  color: var(--nd-text);
}
.help-track:hover { border-color: var(--nd-lavender-strong); }
.help-track:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.help-track__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nd-white); color: var(--nd-primary); }
.help-track__icon .icon { width: 22px; height: 22px; }
.help-track__text { display: grid; gap: 2px; min-width: 0; }
.help-track__text strong { color: var(--nd-primary-deep); }
.help-track__text span { color: var(--nd-text-muted); font-size: var(--fs-sm); }
.help-track__chevron { width: 20px; height: 20px; color: var(--nd-primary); }

.help-layout { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 1024px) {
  .help-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .help-contact { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
}
.help-faq { display: grid; gap: var(--sp-6); min-width: 0; }
.help-section, .help-contact { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
.help-section__title { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); color: var(--nd-primary-deep); font-size: var(--fs-lg); font-weight: 700; }
.help-section__title .icon { flex: none; width: 22px; height: 22px; color: var(--nd-primary); }

.faq { display: grid; padding: 0 var(--sp-4); border: 1px solid var(--nd-border); border-radius: var(--radius-lg); background: var(--nd-white); }
.faq__item { border-bottom: 1px solid var(--nd-border); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) 0; font-weight: 600; line-height: var(--lh-snug); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; width: 18px; height: 18px; color: var(--nd-primary); transition: transform var(--dur-base) var(--ease-out); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.faq__item p { padding-bottom: var(--sp-4); color: var(--nd-text-soft); }
@media (prefers-reduced-motion: reduce) { .faq__item summary .icon { transition: none; } }

.help-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); color: var(--nd-text-muted); font-size: var(--fs-sm); }
.help-legal .icon { width: 16px; height: 16px; }
.help-legal a { color: var(--nd-primary); }

.help-contact {
  display: grid;
  gap: var(--sp-4);
  min-width: 0;
  padding: var(--sp-5);
  border: 1px solid var(--nd-border);
  border-radius: var(--radius-xl);
  background: var(--nd-white);
  box-shadow: var(--shadow-soft);
}
.help-contact .help-section__title { margin-bottom: 0; }
.help-sent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--radius-lg); background: var(--nd-success-soft); color: var(--nd-success-ink); }
.help-sent > .icon { width: 24px; height: 24px; }
.help-sent strong { display: block; margin-bottom: 2px; }
.help-sent:focus { outline: none; }
.help-channels { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.help-channel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--nd-border);
  border-radius: var(--radius-md);
  color: var(--nd-text);
}
.help-channel:hover { border-color: var(--nd-lavender-strong); }
.help-channel:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.help-channel > .icon { flex: none; width: 22px; height: 22px; color: var(--nd-primary); }
.help-channel > span { display: grid; min-width: 0; }
.help-channel strong { color: var(--nd-primary-deep); }
.help-channel span span { color: var(--nd-text-muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.help-channel--wa { border-color: transparent; background: var(--nd-success-soft); }
.help-channel--wa > .icon, .help-channel--wa strong { color: var(--nd-success-ink); }
.help-hours { display: flex; align-items: center; gap: var(--sp-2); color: var(--nd-text-soft); font-size: var(--fs-sm); }
.help-hours .icon { flex: none; width: 16px; height: 16px; }
.help-form { display: grid; gap: var(--sp-4); }
.help-form__lead { color: var(--nd-text-soft); }
.help-form__privacy { color: var(--nd-text-muted); font-size: var(--fs-xs); }
.help-form__privacy a { color: var(--nd-primary); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Suivre ma commande ---------- */
.lookup-layout { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .lookup-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lookup-layout--single { max-width: 560px; }
@media (min-width: 900px) { .lookup-layout--single { grid-template-columns: minmax(0, 1fr); } }
.lookup-card { display: grid; gap: var(--sp-4); min-width: 0; padding: var(--sp-5); border: 1px solid var(--nd-border); border-radius: var(--radius-xl); background: var(--nd-white); box-shadow: var(--shadow-soft); }
.lookup-card__title { display: flex; align-items: center; gap: var(--sp-2); color: var(--nd-primary-deep); font-size: var(--fs-lg); font-weight: 700; }
.lookup-card__title .icon { flex: none; width: 22px; height: 22px; color: var(--nd-primary); }
.lookup-card__lead { color: var(--nd-text-soft); }
.lookup-card__help { color: var(--nd-text-muted); font-size: var(--fs-sm); }
.lookup-card__help a { color: var(--nd-primary); font-weight: 600; }
.recent-orders { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.recent-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--nd-border);
  border-radius: var(--radius-md);
  color: var(--nd-text);
}
.recent-order:hover { border-color: var(--nd-lavender-strong); }
.recent-order:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.recent-order__icon, .recent-order__chevron { width: 20px; height: 20px; color: var(--nd-primary); }
.recent-order__text { display: grid; min-width: 0; }
.recent-order__text strong { overflow: hidden; color: var(--nd-primary-deep); text-overflow: ellipsis; white-space: nowrap; }
.recent-order__text small { color: var(--nd-text-muted); font-size: var(--fs-xs); }

/* ---------- Favoris ---------- */
.favorites-count:empty { display: none; }
.favorites-error { padding: var(--sp-8) 0; color: var(--nd-text-muted); text-align: center; }
.favorites-loading { padding: var(--sp-4) 0; }
.product-card--skeleton { padding: var(--sp-3); pointer-events: none; }
.favorites-loading[hidden], .favorites-error[hidden] { display: none; }

/* ---------- Pages légales ---------- */
.legal-page { display: grid; gap: var(--sp-4); }
.legal { display: grid; gap: var(--sp-6); max-width: 76ch; min-width: 0; }
.legal__head { display: grid; gap: var(--sp-2); }
.legal__updated { color: var(--nd-text-muted); font-size: var(--fs-sm); }
.legal__intro { color: var(--nd-text-soft); font-size: var(--fs-md, 1.0625rem); }
.legal__toc { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-lg); background: var(--nd-lavender-soft); }
.legal__toc ol { display: grid; gap: 6px; margin: 0; padding-left: 1.25em; }
.legal__toc a { color: var(--nd-primary-deep); }
.legal__toc a:hover { color: var(--nd-primary); }
.legal__section { display: grid; gap: var(--sp-2); scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
.legal__section h2 { color: var(--nd-primary-deep); font-size: var(--fs-lg); font-weight: 700; line-height: var(--lh-snug); }
.legal__num { color: var(--nd-primary); }
.legal__section p, .legal__section li { color: var(--nd-text-soft); line-height: 1.65; overflow-wrap: break-word; }
.legal__section ul { display: grid; gap: 6px; margin: 0; padding-left: 1.25em; }
.legal__other { display: flex; align-items: center; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--nd-border); }
.legal__other .icon { width: 18px; height: 18px; color: var(--nd-primary); }
.legal__other a { color: var(--nd-primary); font-weight: 600; }
