/* Centre d'aide Magneto — mêmes tokens que l'app et le site (DESIGN.md) */
:root {
  --app: #F4F6FA;
  --surface: #FFFFFF;
  --line: #E7EAF0;
  --ink: #0E1526;
  --ink2: #5A6475;
  --ink3: #8A93A3;
  --blue: #1877F2;
  --blue-soft: #1877F2;
  --blue-wash: rgba(24, 119, 242, 0.06);
  --blue-ring: rgba(24, 119, 242, 0.2);
  --shadow-card: 0 1px 3px rgba(14, 21, 38, 0.05);
  --display: 'Sora', system-ui, sans-serif;
  --text: 'Hanken Grotesk', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --app: #0B0F1A;
    --surface: #141A28;
    --line: #232B3C;
    --ink: #EEF2F8;
    --ink2: #9AA4B6;
    --ink3: #6C7788;
    --blue-soft: #4C9BFF;
    --blue-wash: rgba(76, 155, 255, 0.08);
    --blue-ring: rgba(76, 155, 255, 0.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--app);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.ico { width: 1.05em; height: 1.05em; flex: none; }
.gris { color: var(--ink3); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: var(--app); padding: 10px 14px; border-radius: 10px; }
.evitement:focus { left: 8px; }

.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.conteneur--etroit { max-width: 760px; }

/* En-tête */
.barre { position: sticky; top: 0; z-index: 5; background: var(--app); border-bottom: 1px solid var(--line); }
.barre__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; }
.marque__aide { font-family: var(--text); font-weight: 600; font-size: 13px; color: var(--ink2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-left: 2px; }
.barre__liens { display: flex; align-items: center; gap: 8px; }
.lien-discret { font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.lien-discret:hover { color: var(--ink); }
.bouton { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 11px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.bouton:hover { background: #0E5AD6; }
@media (max-width: 560px) { .lien-discret { display: none; } }

/* Accueil */
.tete { padding: 56px 0 28px; }
.tete h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 6vw, 40px); letter-spacing: -0.02em; line-height: 1.15; }
.tete__sous { margin-top: 10px; color: var(--ink2); font-size: 17px; }
.recherche { margin-top: 24px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); color: var(--ink3); }
.recherche:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
.recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.recherche input::placeholder { color: var(--ink3); }
.recherche__vide { margin-top: 16px; color: var(--ink2); }
.rubriques { padding-bottom: 64px; }
.rubrique { margin-top: 36px; }
.rubrique h2 { font-family: var(--display); font-size: 20px; font-weight: 700; }
.rubrique__desc { margin-top: 2px; color: var(--ink2); font-size: 15px; }
.liste { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.liste li + li { border-top: 1px solid var(--line); }
.ligne { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink3); }
.ligne:hover { background: var(--app); }
.ligne__texte { flex: 1; min-width: 0; }
.ligne__titre { display: block; font-weight: 600; color: var(--ink); }
.ligne__bulle { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink2); }

/* Article */
.doc { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 960px) { .doc { grid-template-columns: 240px minmax(0, 1fr); } }
.doc__nav { display: none; }
@media (min-width: 960px) {
  .doc__nav { display: block; position: sticky; top: 96px; align-self: start; }
  .doc__nav-titre { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
  .doc__nav ul { margin-top: 10px; }
  .doc__nav li a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--ink2); text-decoration: none; }
  .doc__nav li a:hover { color: var(--ink); background: var(--surface); }
  .doc__nav li a[aria-current] { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
  .doc__tout { display: inline-block; margin-top: 14px; padding-left: 10px; font-size: 14px; font-weight: 600; color: var(--blue-soft); text-decoration: none; }
}
.doc__article { max-width: 680px; }
.fil { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink3); }
.fil a { color: var(--ink2); text-decoration: none; }
.fil a:hover { color: var(--ink); }
.doc__article h1 { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.doc__intro { margin-top: 14px; font-size: 18px; color: var(--ink2); }
.doc__article section { margin-top: 30px; }
.doc__article section h2 { font-family: var(--display); font-weight: 700; font-size: 19px; }
.doc__article section p { margin-top: 8px; color: var(--ink2); }
.etapes { margin-top: 14px; counter-reset: etape; }
.etapes li { position: relative; padding-left: 40px; color: var(--ink2); counter-increment: etape; }
.etapes li + li { margin-top: 12px; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-soft); font-size: 13px; font-weight: 700; }
.puces { margin-top: 12px; }
.puces li { position: relative; padding-left: 20px; color: var(--ink2); }
.puces li + li { margin-top: 8px; }
.puces li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 999px; background: var(--ink3); }
.doc__article .astuces { padding: 18px 20px; border: 1px solid var(--blue-ring); background: var(--blue-wash); border-radius: 16px; }
.doc__article .astuces h2 { display: flex; align-items: center; gap: 8px; font-family: var(--text); font-size: 16px; }
.astuces h2 .ico { color: var(--blue-soft); }
.astuces ul { margin-top: 8px; }
.astuces li { color: var(--ink2); }
.astuces li + li { margin-top: 8px; }
.doc__article .petit-titre { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
.suite ul { margin-top: 10px; display: grid; gap: 8px; }
.suite a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; text-decoration: none; }
.suite a .ico { color: var(--blue-soft); }
.suite a:hover { border-color: var(--blue-soft); }
.doc__app { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink2); }
.doc__app a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-soft); text-decoration: none; }

/* Pied */
.pied { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink2); }
.pied__in { display: grid; gap: 6px; }
.pied a { color: var(--ink); }
