/* EldroMods Docs : design repris de la maquette du staff (V1, « Docs Update »),
   transposé sur MkDocs Material. Charte EldroMods : violet sombre.
   Fichier versionné par son nom (cache) : changer le nom à chaque refonte. */

:root {
  --em-bg: #0b0a10;
  --em-surface: #121019;
  --em-card: #16141f;
  --em-card-2: #1e1b2b;
  --em-line: #26223a;
  --em-fg: #f2f0ea;
  --em-text: #d9d7e2;
  --em-muted: #99a0b2;
  --em-accent: #8b5cf6;
  --em-accent-hi: #a78bfa;
  --em-link: #c4b5fd;
  --em-btn: #7c3aed;
  --em-btn-hover: #6d28d9;
  --em-ok: #3ddc97;
  --em-warn: #ffb547;
  --em-bad: #ff5468;
  --em-display: "Unbounded", "Arial Black", system-ui, sans-serif;
}

[data-md-color-scheme="slate"] {
  --md-hue: 260;
  --md-default-bg-color: var(--em-bg);
  --md-default-fg-color: var(--em-text);
  --md-default-fg-color--light: var(--em-muted);
  --md-default-fg-color--lighter: #6f7587;
  --md-default-fg-color--lightest: rgba(242, 240, 234, .08);
  --md-primary-fg-color: var(--em-bg);
  --md-primary-fg-color--light: var(--em-card);
  --md-primary-fg-color--dark: var(--em-bg);
  --md-primary-bg-color: var(--em-fg);
  --md-primary-bg-color--light: var(--em-muted);
  --md-accent-fg-color: var(--em-link);
  --md-accent-fg-color--transparent: rgba(139, 92, 246, .14);
  --md-typeset-color: var(--em-text);
  --md-typeset-a-color: var(--em-link);
  --md-code-bg-color: var(--em-card-2);
  --md-code-fg-color: var(--em-fg);
  --md-footer-bg-color: var(--em-bg);
  --md-footer-bg-color--dark: #08070c;
  --md-footer-fg-color--light: var(--em-muted);
  --md-footer-fg-color--lighter: #6f7587;
  --md-shadow-z1: none;
  --md-admonition-bg-color: var(--em-surface);
}

body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--em-accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.md-header {
  background: color-mix(in srgb, var(--em-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--em-line);
  box-shadow: none;
}
.md-header--shadow { box-shadow: none; }
.md-header__inner { max-width: 1440px; padding: 0 .4rem; }
.em-brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  margin: 0 .6rem 0 .4rem; color: var(--em-fg) !important;
}
.em-brand img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--em-accent) 40%, transparent);
}
.em-brand b {
  font-family: var(--em-display); font-weight: 700; font-size: 14px;
  letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
}
.em-brand__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--em-muted); border-left: 1px solid var(--em-line); padding-left: 10px;
}
.md-header__title { margin-left: .4rem; font-size: .8rem; color: var(--em-muted); }
.md-header__title .md-header__topic:first-child { display: none; }
.md-header__title .md-header__topic + .md-header__topic {
  opacity: 0; transform: none; transition: opacity .15s;
}
.md-header__title--active .md-header__topic + .md-header__topic { opacity: 1; pointer-events: auto; z-index: 0; }
.em-hnav { display: flex; align-items: center; gap: 4px; margin-right: .4rem; }
.em-hnav a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--em-muted); padding: 7px 11px; border-radius: 999px; white-space: nowrap;
}
.em-hnav a:hover { color: var(--em-fg); }
.em-hnav a.em-hnav__discord {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 6px;
  background: var(--em-btn); color: #fff;
}
.em-hnav a.em-hnav__discord:hover { background: var(--em-btn-hover); color: #fff; }
.md-header__option { margin-left: 2px; }
.md-search__form {
  background-color: var(--em-card); border: 1px solid var(--em-line); border-radius: 12px;
}
.md-search__form:hover { background-color: var(--em-card-2); }
[data-md-toggle=search]:checked ~ .md-header .md-search__form { border-radius: 12px 12px 0 0; }
.md-search__output { border-radius: 0 0 12px 12px; }

/* Sélecteur de langue */
.rg-lang-link { display: flex !important; align-items: center; gap: 10px; }
.rg-flag { flex: none; display: inline-flex; width: 22px; height: 15px; }
.rg-flag svg { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); display: block; }
.md-select__inner { background: var(--em-card); border: 1px solid var(--em-line); border-radius: 12px; }
.md-select__list { padding: 4px; }
.md-select__item { margin: 0; }

/* ---------- Mise en page ---------- */
.md-grid { max-width: 1440px; }
.md-main__inner { margin-top: 0; }
.md-content { min-width: 0; }
.md-content__inner { max-width: 800px; padding-top: 1.6rem; }
.md-content__inner::before { display: none; }

/* ---------- Navigation latérale ---------- */
.md-sidebar--primary .md-sidebar__scrollwrap { scrollbar-width: thin; scrollbar-color: var(--em-line) transparent; }
.md-nav { font-size: .72rem; }
.md-nav__link { border-radius: 9px; padding: 5px 10px; margin-top: 2px; color: var(--em-text); }
.md-nav__link:hover, .md-nav__link:focus { background: var(--em-card); color: var(--em-fg); }
.md-nav__link--active, .md-nav__link--active:hover {
  background: color-mix(in srgb, var(--em-accent) 14%, transparent);
  color: var(--em-fg); box-shadow: inset 2px 0 0 var(--em-accent);
}
.md-nav__item--section > .md-nav__link,
.md-nav__item--section > .md-nav__link:hover,
.md-nav__item--section > .md-nav__container > .md-nav__link {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--em-muted); background: none; box-shadow: none; margin-top: 1rem;
}
.md-nav__item--nested > .md-nav > .md-nav__list { border-left: 1px solid var(--em-line); margin-left: 21px; padding-left: 6px; }
.md-nav__item--section > .md-nav > .md-nav__list { border-left: 0; margin-left: 0; padding-left: 0; }
.md-nav__item--nested .md-nav__item--nested > .md-nav > .md-nav__list .md-nav__link { color: var(--em-muted); font-size: .7rem; }
.md-nav__item--nested .md-nav__item--nested > .md-nav > .md-nav__list .md-nav__link--active { color: var(--em-fg); }
.em-navlogo { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; margin-right: 8px; background: var(--em-card-2); }
.md-nav__link .md-ellipsis { flex: 1; }
.md-nav__title { color: var(--em-fg); }
.em-mob { display: none; }

/* Sommaire « Sur cette page » */
.md-nav--secondary .md-nav__title {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--em-muted); background: transparent; box-shadow: none;
}
.md-nav--secondary .md-nav__list { border-left: 1px solid var(--em-line); }
.md-nav--secondary .md-nav__link { border-radius: 0; margin: 0; padding: 3px 0 3px 12px; color: var(--em-muted); }
.md-nav--secondary .md-nav__link:hover { background: none; color: var(--em-fg); }
.md-nav--secondary .md-nav__link--active,
.md-nav--secondary .md-nav__link--passed.md-nav__link--active { color: var(--em-accent-hi); background: none; box-shadow: inset 2px 0 0 var(--em-accent); }

/* ---------- Typographie ---------- */
.md-typeset { font-size: .8rem; line-height: 1.65; }
.md-typeset h1 {
  font-family: var(--em-display); font-weight: 900; color: var(--em-fg);
  font-size: clamp(26px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 14px; text-wrap: balance;
}
.md-typeset h1 em { font-style: normal; color: var(--em-accent-hi); }
.md-typeset h2 {
  font-family: var(--em-display); font-weight: 700; color: var(--em-fg);
  font-size: 20px; line-height: 1.3; margin: 2.2rem 0 .6rem; letter-spacing: -.005em; text-wrap: balance;
}
.md-typeset h3 { color: var(--em-fg); font-size: 17px; font-weight: 600; margin: 1.2rem 0 .4rem; }
.md-typeset p, .md-typeset li { max-width: 70ch; }
.md-typeset strong { color: var(--em-fg); font-weight: 600; }
.md-typeset a { color: var(--em-link); overflow-wrap: anywhere; }
.md-typeset a:hover { color: #ddd6fe; }
.md-typeset ul li::marker, .md-typeset ol li::marker { color: var(--em-accent); }
.md-typeset hr { border-bottom-color: var(--em-line); }
.md-typeset .headerlink { color: var(--em-muted); }
.em-lead { font-size: 18px; font-weight: 300; color: var(--em-text); margin: 0 0 1.1rem !important; }
.em-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--em-accent-hi) !important;
  border: 1px solid color-mix(in srgb, var(--em-accent) 45%, var(--em-line)); border-radius: 999px;
  padding: 5px 13px; margin-bottom: 14px;
}
a.em-eyebrow:hover { border-color: var(--em-accent); }

/* ---------- Boutons ---------- */
.md-typeset .md-button {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 6px 4px 0;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  color: var(--em-fg); background: var(--em-card); border: 1px solid var(--em-line);
  transition: transform .15s, background .15s, border-color .15s;
}
.md-typeset .md-button:hover, .md-typeset .md-button:focus {
  color: var(--em-fg); background: var(--em-card); border-color: var(--em-accent); transform: translateY(-1px);
}
.md-typeset .md-button--primary {
  background: var(--em-btn); border-color: var(--em-btn); color: #fff;
  box-shadow: 0 8px 28px -12px var(--em-accent);
}
.md-typeset .md-button--primary:hover, .md-typeset .md-button--primary:focus {
  background: var(--em-btn-hover); border-color: var(--em-btn-hover); color: #fff;
}
.em-btns { display: flex; flex-wrap: wrap; gap: 0; margin: 6px 0 10px; }

/* ---------- Encadrés (admonitions) ---------- */
.md-typeset .admonition, .md-typeset details {
  --em-c: var(--em-accent);
  border: 1px solid color-mix(in srgb, var(--em-c) 40%, var(--em-line));
  background: color-mix(in srgb, var(--em-c) 9%, var(--em-surface));
  border-radius: 12px; box-shadow: none; font-size: .76rem; padding: 0 .8rem;
}
.md-typeset .admonition-title, .md-typeset summary {
  background: transparent !important; border: 0; color: var(--em-fg); font-weight: 600;
  padding-left: 1.9rem; margin: 0 -.8rem; padding-right: .8rem;
}
.md-typeset .admonition-title::before, .md-typeset summary::before { background-color: var(--em-c) !important; left: .7rem; }
.md-typeset .admonition.warning, .md-typeset details.warning { --em-c: var(--em-warn); }
.md-typeset .admonition.tip, .md-typeset .admonition.success { --em-c: var(--em-ok); }
.md-typeset .admonition.danger { --em-c: var(--em-bad); }
.md-typeset .admonition.info, .md-typeset .admonition.note { --em-c: var(--em-accent); }
/* FAQ */
.md-typeset details.question { background: var(--em-card); border-color: var(--em-line); margin: .5rem 0; }
.md-typeset details.question[open] { border-color: color-mix(in srgb, var(--em-accent) 45%, var(--em-line)); }
.md-typeset details.question > summary { padding-left: .8rem; }
.md-typeset details.question > summary::before { display: none; }
.md-typeset details.question > summary::after { background-color: var(--em-accent-hi); }

/* ---------- Tableaux ---------- */
.md-typeset table:not([class]) {
  border: 1px solid var(--em-line); border-radius: 14px; overflow: hidden; font-size: .76rem; background: transparent;
}
.md-typeset table:not([class]) th {
  background: var(--em-card); color: var(--em-muted); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.md-typeset table:not([class]) td { border-top: 1px solid var(--em-line); vertical-align: top; }
.em-pill {
  --em-c: var(--em-ok); display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; color: var(--em-c); background: color-mix(in srgb, var(--em-c) 14%, transparent); white-space: nowrap;
}
.em-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--em-c); }
.em-pill--upd { --em-c: var(--em-warn); }
.em-pill--down { --em-c: var(--em-bad); }

/* ---------- Cartes Material (grid cards) ---------- */
.md-typeset .grid { grid-gap: 12px; }
.md-typeset .grid.cards > ul > li, .md-typeset .grid > .card {
  border-radius: 14px; background: var(--em-card); border: 1px solid var(--em-line); padding: 16px 18px;
  transition: border-color .15s, transform .15s;
}
.md-typeset .grid.cards > ul > li:hover { border-color: color-mix(in srgb, var(--em-accent) 70%, var(--em-line)); transform: translateY(-2px); box-shadow: none; }
.md-typeset .grid.cards > ul > li > hr { display: none; }
.md-typeset .grid.cards .twemoji { color: var(--em-accent-hi); }
.md-typeset .grid.cards p { color: var(--em-muted); margin: .4em 0; }
.md-typeset .grid.cards strong, .md-typeset .grid.cards strong a { color: var(--em-fg); }

/* ---------- Composants EldroMods ---------- */
.em-hero { margin-bottom: .6rem; }
.em-trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 13.5px; color: var(--em-muted); }
.em-trust span::before { content: "✓"; color: var(--em-accent-hi); margin-right: 7px; font-weight: 700; }
.em-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--em-card);
  border: 1px solid var(--em-line); border-radius: 18px; margin: 1.6rem 0 .4rem; overflow: hidden;
}
.em-stats div { padding: 16px 12px; text-align: center; border-left: 1px solid var(--em-line); }
.em-stats div:first-child { border-left: 0; }
.em-stats b {
  display: block; font-family: var(--em-display); font-weight: 700; font-size: 22px;
  color: var(--em-accent-hi); font-variant-numeric: tabular-nums;
}
.em-stats span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--em-muted); }

.em-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.md-typeset a.em-gtile {
  display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; min-width: 0;
  background: var(--em-card); border: 1px solid var(--em-line); color: var(--em-fg);
}
.md-typeset a.em-gtile:hover { border-color: var(--em-accent); background: color-mix(in srgb, var(--em-accent) 8%, var(--em-card)); }
.em-gtile img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.em-gtile span { min-width: 0; }
.em-gtile b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-gtile small { font-size: 12px; color: var(--em-muted); }

.em-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.md-typeset a.em-chip {
  display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px;
  background: var(--em-card); border: 1px solid var(--em-line); color: var(--em-fg); font-size: 14px; font-weight: 500;
}
.md-typeset a.em-chip:hover { border-color: var(--em-accent); }

.em-phead { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.em-phead img {
  width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none;
  box-shadow: 0 0 0 1px var(--em-line), 0 10px 30px -12px var(--em-accent);
}
.em-phead > div { min-width: 0; }
.em-phead .em-eyebrow { margin-bottom: 8px; padding: 3px 11px; font-size: 10.5px; }
.md-typeset .em-phead h1 { margin: 0; }

.em-spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--em-line); border-radius: 14px; overflow: hidden; background: var(--em-card); margin: 6px 0 16px;
}
.em-spec div { padding: 11px 14px; border-left: 1px solid var(--em-line); border-top: 1px solid var(--em-line); margin: 0 0 -1px -1px; min-width: 0; }
.em-spec small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--em-muted); }
.em-spec b { display: block; color: var(--em-fg); font-weight: 600; font-size: 14.5px; line-height: 1.35; margin-top: 2px; }
.md-typeset .em-risk { font-size: 13px; color: var(--em-muted); margin: 0 0 .4rem; }

.em-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: .6rem 0 1rem; }
.em-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--em-card); border: 1px solid var(--em-line); }
.em-card b { color: var(--em-fg); font-size: 15px; font-weight: 600; }
.em-card span { font-size: 14px; color: var(--em-muted); line-height: 1.5; }

.em-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: .6rem 0 1rem; }
.em-feats section { padding: 12px 16px 8px; border-radius: 14px; background: var(--em-card); border: 1px solid var(--em-line); }
.md-typeset .em-feats h3 {
  margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--em-accent-hi);
}
.md-typeset .em-feats ul { margin: 0; padding-left: 1.1em; }
.md-typeset .em-feats li { margin: 3px 0; font-size: 14.5px; }

.em-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: .6rem 0 .2rem; }
.md-typeset .em-shots figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.em-shots a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--em-line); background: var(--em-card); }
.em-shots a:hover { border-color: var(--em-accent); }
.em-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.md-typeset .em-shots figcaption { font-size: 13px; color: var(--em-muted); margin: 0; max-width: none; }
.md-typeset .em-note { font-size: 13px; color: var(--em-muted); }

.em-steps ol { list-style: none; padding: 0 !important; margin-left: 0 !important; counter-reset: em-s; display: grid; gap: 10px; }
.md-typeset .em-steps ol > li {
  counter-increment: em-s; position: relative; padding-left: 44px; margin: 0; min-height: 30px; max-width: none;
}
.md-typeset .em-steps ol > li::before {
  content: counter(em-s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--em-display); font-size: 13px; font-weight: 700;
  color: var(--em-accent-hi); background: color-mix(in srgb, var(--em-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--em-accent) 35%, var(--em-line));
}

.em-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: .6rem 0 1rem; }
.md-typeset a.em-mcard {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px;
  background: var(--em-card); border: 1px solid var(--em-line); color: var(--em-text);
  transition: border-color .15s, transform .15s;
}
.md-typeset a.em-mcard:hover { border-color: color-mix(in srgb, var(--em-accent) 70%, var(--em-line)); transform: translateY(-2px); }
.em-mcard b { color: var(--em-fg); font-size: 15.5px; font-weight: 600; }
.em-mdesc { font-size: 14px; color: var(--em-muted); line-height: 1.5; }
.em-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.em-tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; color: var(--em-link); background: color-mix(in srgb, var(--em-accent) 14%, transparent); }
.em-more { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--em-accent-hi); }

.em-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 8px; }
.md-typeset .em-plist a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 10px;
  background: var(--em-card); border: 1px solid var(--em-line); color: var(--em-fg); font-size: 14.5px;
}
.md-typeset .em-plist a::after { content: "→"; color: var(--em-muted); }
.md-typeset .em-plist a:hover { border-color: var(--em-accent); }
.md-typeset .em-plist a.em-pgame { justify-content: flex-start; color: var(--em-accent-hi); font-weight: 600; }
.md-typeset .em-plist a.em-pgame::after { margin-left: auto; }
.em-pgame img { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- Pied de page ---------- */
.md-footer { border-top: 1px solid var(--em-line); }
.md-footer__inner { max-width: 1440px; padding: .6rem; gap: 12px; }
.md-footer__link {
  border: 1px solid var(--em-line); border-radius: 12px; padding: .6rem .8rem; margin: 0; flex: 1;
}
.md-footer__link:hover { border-color: var(--em-accent); opacity: 1; }
.md-footer__direction { color: var(--em-muted); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.md-footer-meta { background-color: #08070c; }

/* ---------- Écrans moyens et petits ---------- */
@media screen and (max-width: 76.234375em) {
  .em-hnav { display: none; }
  .em-mob { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 4px; }
  .em-mob a {
    font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--em-muted);
    padding: 6px 10px; border: 1px solid var(--em-line); border-radius: 999px;
  }
  .em-mob a.em-mob__dc { background: var(--em-btn); color: #fff; border-color: var(--em-btn); }
  .md-nav--primary .md-nav__title { background: var(--em-surface); }
  .md-sidebar--primary { background: var(--em-surface); }
  .md-nav__item--section > .md-nav__link { margin-top: .4rem; }
}
@media screen and (max-width: 44.984375em) {
  .em-brand__tag { display: none; }
  .em-brand b { font-size: 13px; }
  .md-header__title { display: none; }
  .em-stats { grid-template-columns: repeat(2, 1fr); }
  .em-stats div:nth-child(3) { border-left: 0; }
  .em-stats div:nth-child(n+3) { border-top: 1px solid var(--em-line); }
  .em-feats, .em-shots { grid-template-columns: minmax(0, 1fr); }
  .em-phead img { width: 48px; height: 48px; border-radius: 13px; }
  .em-lead { font-size: 16.5px; }
  .md-typeset .md-button { padding: 9px 14px; font-size: 14px; }
  .md-footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Ajustements après rendu ---------- */
@media screen and (min-width: 76.25em) {
  .md-nav--primary > .md-nav__title { display: none; }
  .md-nav__item--section > .md-nav { margin-left: 0; margin-right: 0; }
  /* pages sans navigation (accueil) : colonne de lecture centrée */
  .md-sidebar--primary[hidden] ~ .md-content > .md-content__inner { max-width: 960px; margin-left: auto; margin-right: auto; }
}
.em-feats section:only-child { grid-column: 1 / -1; }
.em-feats section:only-child ul { columns: 2; column-gap: 28px; }
@media screen and (max-width: 44.984375em) {
  .em-feats section:only-child ul { columns: 1; }
}
@media screen and (max-width: 44.984375em) {
  .em-stats b { font-size: 17px; overflow-wrap: anywhere; }
  .em-stats div { padding: 14px 8px; }
}
