/* ==========================================================================
   /{lang}/aide — Centre d'aide (aide.html, body.hlp-page + js/aide.js)
   Complète / remplace les styles .help-* de css/style.css.
   ========================================================================== */
body.hlp-page {
  --hlp-text: #f5f4f1;
  --hlp-muted: rgba(245, 244, 241, 0.62);
  --hlp-faint: rgba(245, 244, 241, 0.4);
  --hlp-line: rgba(245, 244, 241, 0.09);
  --hlp-gold: #c6a66a;
  --hlp-gold-hi: #d4b984;
  --hlp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --og-accent: #c6a66a;
  --og-accent-hover: #d4b984;
  --og-text: #ffffff;
  --og-muted: #9a9a9a;
  --og-border: rgba(255, 255, 255, 0.08);
  background: #050505 !important;
  /* html ET body en overflow non visible neutralisent position:sticky (navigation latérale) */
  overflow-x: clip !important;
  overflow-y: visible !important;
}
main.hlp { overflow: visible !important; overflow-x: clip !important; padding: 0 !important; }
.hlp, .hlp * { font-family: 'Montserrat', system-ui, -apple-system, sans-serif; box-sizing: border-box; }
.hlp a { text-decoration: none; }
.hlp > section, .hlp section { opacity: 1 !important; transform: none !important; filter: none !important; }
.hlp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hlp-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hlp-gold); }
.hlp-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--hlp-gold); box-shadow: 0 0 0 4px rgba(198, 166, 106, 0.18); }

/* ---------------------------------------------------------------- Hero + recherche */
.hlp .hlp-hero {
  position: relative;
  overflow: hidden;
  padding: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 110px) 0 48px !important;
  margin: 0 !important;
  text-align: center;
}
.hlp .hlp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(198, 166, 106, 0.16), transparent 70%),
    radial-gradient(rgba(245, 244, 241, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  pointer-events: none;
}
.hlp-hero .hlp-wrap { position: relative; max-width: 760px; }
.hlp-hero .hlp-kicker { justify-content: center; }
.hlp-title {
  margin: 0 0 28px !important;
  font-size: clamp(2.3rem, 5.4vw, 4rem) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  color: var(--hlp-text) !important;
}
.hlp-search { position: relative; max-width: 640px; margin: 0 auto; }
.hlp-search > svg { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--hlp-faint); pointer-events: none; transition: color 0.2s; }
.hlp-search input {
  width: 100%;
  height: 64px;
  padding: 0 60px 0 56px;
  border-radius: 999px;
  border: 1px solid rgba(245, 244, 241, 0.14);
  background: rgba(15, 15, 14, 0.9);
  color: var(--hlp-text);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.hlp-search input::-webkit-search-cancel-button { display: none; }
.hlp-search input::placeholder { color: rgba(245, 244, 241, 0.34); }
.hlp-search input:focus { border-color: rgba(198, 166, 106, 0.7); box-shadow: 0 0 0 5px rgba(198, 166, 106, 0.14), 0 24px 50px -30px rgba(0, 0, 0, 0.9); }
.hlp-search:focus-within > svg { color: var(--hlp-gold); }
.hlp-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 244, 241, 0.08);
  color: var(--hlp-text);
  transform: translateY(-50%);
  cursor: pointer;
}
.hlp-search-clear[hidden] { display: none; }
.hlp-search-clear svg { width: 16px; height: 16px; }
.hlp-search-clear:hover { background: rgba(245, 244, 241, 0.16); }
.hlp-pops { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 12.5px; font-weight: 600; color: var(--hlp-faint); }
.hlp-pops > span { margin-right: 4px; }
.hlp-pop {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 244, 241, 0.04);
  box-shadow: inset 0 0 0 1px var(--hlp-line);
  color: rgba(245, 244, 241, 0.8);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.hlp-pop:hover { background: rgba(198, 166, 106, 0.1); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.5); color: var(--hlp-text); }
.hlp-results { margin: 18px 0 0; font-size: 13.5px; font-weight: 700; color: var(--hlp-gold); }
.hlp-results[hidden] { display: none; }

/* ---------------------------------------------------------------- Sujets */
.hlp .hlp-topics-section { padding: 8px 0 56px !important; margin: 0 !important; }
.hlp.is-searching .hlp-topics-section { display: none; }
.hlp-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hlp-topic {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f0f0e, #0a0a09);
  box-shadow: inset 0 0 0 1px var(--hlp-line);
  color: var(--hlp-text) !important;
  transition: box-shadow 0.25s, transform 0.25s var(--hlp-ease);
}
.hlp-topic:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.45), 0 22px 44px -30px rgba(198, 166, 106, 0.5); }
.hlp-topic-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(198, 166, 106, 0.12); color: var(--hlp-gold); box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3); }
.hlp-topic-ico svg { width: 22px; height: 22px; }
.hlp-topic-body { display: grid; gap: 3px; min-width: 0; }
.hlp-topic-body b { font-size: 15.5px; font-weight: 700; }
.hlp-topic-body small { font-size: 12.5px; line-height: 1.45; color: var(--hlp-muted); }
.hlp-count { padding: 5px 10px; border-radius: 999px; background: rgba(245, 244, 241, 0.05); font-size: 11.5px; font-weight: 700; color: var(--hlp-faint); white-space: nowrap; }

/* ---------------------------------------------------------------- Corps : nav + FAQ */
.hlp-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 90px; }
.hlp-nav { position: sticky; top: calc(max(0.85rem, env(safe-area-inset-top, 0px)) + 90px); }
.hlp-nav-title { margin: 0 0 12px; padding-left: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hlp-faint); }
.hlp-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hlp-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--hlp-muted) !important; transition: background 0.2s, color 0.2s; }
.hlp-nav a svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--hlp-faint); transition: color 0.2s; }
.hlp-nav a:hover { color: var(--hlp-text) !important; background: rgba(245, 244, 241, 0.04); }
.hlp-nav a.is-active { color: var(--hlp-text) !important; background: rgba(198, 166, 106, 0.1); box-shadow: inset 2px 0 0 var(--hlp-gold); }
.hlp-nav a.is-active svg { color: var(--hlp-gold); }

.hlp-content { min-width: 0; display: grid; gap: 44px; }
.hlp .help-section { margin: 0 !important; padding: 0 !important; scroll-margin-top: 100px; }
.hlp .help-section[hidden] { display: none !important; }
.hlp .help-section-title {
  margin: 0 0 16px !important;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  text-transform: none !important;
  color: var(--hlp-text) !important;
}
.hlp .help-faq-list { display: grid; gap: 10px; }
.hlp .help-faq {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: rgba(245, 244, 241, 0.025) !important;
  box-shadow: inset 0 0 0 1px var(--hlp-line) !important;
  overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s;
}
.hlp .help-faq[hidden] { display: none !important; }
.hlp .help-faq[open] { background: rgba(198, 166, 106, 0.05) !important; box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.3) !important; }
.hlp .help-faq summary { padding: 19px 20px 19px 22px !important; font-size: 15px !important; font-weight: 700 !important; color: var(--hlp-text) !important; border: 0 !important; }
.hlp .help-faq summary::after {
  content: '' !important;
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 1px rgba(245, 244, 241, 0.16);
  background:
    linear-gradient(var(--hlp-gold), var(--hlp-gold)) center / 12px 2px no-repeat,
    linear-gradient(var(--hlp-gold), var(--hlp-gold)) center / 2px 12px no-repeat !important;
  transition: transform 0.3s var(--hlp-ease), background-color 0.25s;
}
.hlp .help-faq[open] summary::after { transform: rotate(45deg); background-color: rgba(198, 166, 106, 0.14) !important; }
.hlp .help-faq summary:focus-visible { outline: 2px solid var(--hlp-gold); outline-offset: -2px; border-radius: 18px; }
.hlp .help-faq-body { padding: 0 22px 20px !important; font-size: 14.5px !important; line-height: 1.7 !important; color: var(--hlp-muted) !important; }
.hlp .help-faq-body ul { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 8px; }
.hlp .help-faq-body li { position: relative; padding-left: 18px; }
.hlp .help-faq-body li::before { content: ''; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--hlp-gold); }
.hlp .help-faq-body p { margin: 0 0 8px !important; }
.hlp .help-faq-body p:last-child { margin-bottom: 0 !important; }
.hlp .help-faq-body a { color: var(--hlp-gold) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(198, 166, 106, 0.4) !important; }
.hlp .help-faq-body a:hover { color: var(--hlp-gold-hi) !important; }

/* Aucun résultat */
.hlp-empty { padding: 44px 28px; border-radius: 24px; text-align: center; box-shadow: inset 0 0 0 1px var(--hlp-line); }
.hlp-empty[hidden] { display: none; }
.hlp-empty-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--hlp-text); }
.hlp-empty p:not(.hlp-empty-title) { margin: 0 auto 20px; max-width: 420px; font-size: 14.5px; line-height: 1.6; color: var(--hlp-muted); }
.hlp-btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--hlp-gold); color: #0b0a08 !important; font-size: 14px; font-weight: 800; transition: background 0.2s; }
.hlp-btn svg { width: 17px; height: 17px; }
.hlp-btn:hover { background: var(--hlp-gold-hi); }

/* Contact */
.hlp .help-section--contact .help-section-title { display: none; }
.hlp .help-contact-card {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 34px 34px 30px !important;
  border: 0 !important;
  border-radius: 26px !important;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(198, 166, 106, 0.2), transparent 60%),
    linear-gradient(180deg, #12110f, #0a0a09) !important;
  box-shadow: inset 0 0 0 1px rgba(198, 166, 106, 0.28) !important;
  text-align: left !important;
}
.hlp .help-contact-lead { margin: 0 0 18px !important; font-size: clamp(1.15rem, 2vw, 1.35rem) !important; font-weight: 800 !important; line-height: 1.3 !important; letter-spacing: -0.015em; color: var(--hlp-text) !important; }
.hlp .help-contact-mail {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hlp-gold) !important;
  color: #0b0a08 !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 16px 34px -16px rgba(198, 166, 106, 0.75);
  transition: background 0.2s, transform 0.2s;
}
.hlp .help-contact-mail svg { width: 18px; height: 18px; }
.hlp .help-contact-mail:hover { background: var(--hlp-gold-hi) !important; transform: translateY(-1px); }
.hlp .help-contact-hint { margin: 26px 0 12px !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hlp-faint) !important; }
.hlp .help-contact-checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0 !important; padding: 0 !important; }
.hlp .help-contact-checklist li { position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.5; color: rgba(245, 244, 241, 0.78); }
.hlp .help-contact-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  background: var(--hlp-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hlp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hlp-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hlp-nav { display: none; }
}
@media (max-width: 640px) {
  .hlp-wrap { padding: 0 16px; }
  .hlp .hlp-hero { padding: calc(max(0.65rem, env(safe-area-inset-top, 0px)) + 92px) 0 32px !important; }
  .hlp-title { margin-bottom: 22px !important; }
  .hlp-search input { height: 56px; font-size: 15px; padding-left: 50px; }
  .hlp-search > svg { left: 18px; }
  .hlp-pops > span { flex: 1 1 100%; margin: 0 0 2px; }
  .hlp-topics { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hlp-topic { padding: 16px; }
  .hlp-content { gap: 36px; }
  .hlp .help-contact-card { padding: 26px 22px !important; }
  .hlp .help-contact-mail { width: 100%; justify-content: center; }
  .hlp .help-contact-checklist { grid-template-columns: minmax(0, 1fr); }
}
