/* MCD Roadbook : aide (couleurs du club). */
.mcd-aide {
  --a-blue: #1f6fd1;
  --a-dark: #1f2430;
  --a-orange: #e07a1f;
  --a-text: #1f2430;
  --a-muted: #5b6474;
  --a-line: #e3e7ee;
  --a-card: #ffffff;
  --a-soft: #f4f7fb;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  color: var(--a-text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.mcd-aide *, .mcd-aide *::before, .mcd-aide *::after { box-sizing: border-box; }
.mcd-aide [hidden] { display: none !important; }
.mcd-aide-head { padding: 12px 0 8px; }
.mcd-aide-kicker {
  margin: 0; color: var(--a-orange); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
}
.mcd-aide h1 { margin: 2px 0 8px; font-size: 32px; line-height: 1.15; color: var(--a-dark); }
.mcd-aide-intro { margin: 0 0 4px; color: var(--a-muted); }
.mcd-aide-date { margin: 0; color: var(--a-muted); font-size: 13px; }
.mcd-aide a { color: var(--a-blue); }
.mcd-aide-search {
  display: block; width: 100%; margin: 16px 0 12px; padding: 12px 14px;
  font: inherit; color: var(--a-text); background: var(--a-card);
  border: 1.5px solid var(--a-line); border-radius: 10px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.mcd-aide-search:focus { border-color: var(--a-blue); box-shadow: 0 0 0 3px rgba(31,111,209,.15); }
.mcd-aide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.mcd-aide-toc a {
  padding: 6px 12px; border-radius: 999px; background: var(--a-soft);
  border: 1px solid var(--a-line); color: var(--a-blue); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.mcd-aide-toc a:hover { border-color: var(--a-blue); }
.mcd-aide-section { margin: 0 0 26px; scroll-margin-top: 16px; }
.mcd-aide-section h2 {
  margin: 0 0 10px; padding-bottom: 6px; font-size: 21px; color: var(--a-dark);
  border-bottom: 3px solid var(--a-orange); display: inline-block;
}
.mcd-aide-entry {
  background: var(--a-card); border: 1px solid var(--a-line); border-radius: 10px;
  margin: 0 0 8px; overflow: hidden;
}
.mcd-aide-entry summary {
  cursor: pointer; list-style: none; padding: 13px 44px 13px 16px; position: relative;
  font-weight: 600; color: var(--a-dark);
}
.mcd-aide-entry summary::-webkit-details-marker { display: none; }
.mcd-aide-entry summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--a-orange);
}
.mcd-aide-entry[open] summary::after { content: "−"; }
.mcd-aide-entry[open] summary { background: var(--a-soft); }
.mcd-aide-answer { padding: 12px 16px 14px; color: #333a48; overflow-wrap: anywhere; }
.mcd-aide-empty { color: var(--a-muted); font-style: italic; }

/* Dans l'application du site : remplace la page « Aide » d'origine. */
.help-page.mcd-aide-host > .help-page-inner { display: none !important; }

@media (prefers-color-scheme: dark) {
  .mcd-aide.mcd-aide-dark-ok {
    --a-text: #e8ebf1; --a-dark: #f2f4f8; --a-muted: #a7afbd; --a-line: #333a48;
    --a-card: #1c212b; --a-soft: #232a36; --a-blue: #6ea8ff;
  }
  .mcd-aide.mcd-aide-dark-ok .mcd-aide-answer { color: #cfd5df; }
}
