/* SysProg - Documentation : design et lisibilité (fr) */
/* User-friendly : cartes, espacements, liens d’action, FAQ */

.md-main__inner { margin-top: 0.5rem; }
.md-content { --md-typeset-a-color: var(--md-primary-fg-color); }

/* Admonitions */
.md-typeset .admonition { margin: 1.25em 0; padding: 0 1rem; border-radius: 0.375rem; }
.md-typeset .admonition-title { padding: 0.4rem 1rem; font-weight: 600; }
.md-typeset .quote { border-left-width: 0.25rem; padding-left: 1rem; margin: 1.25em 0; }

/* Tableaux : lisibilité et style “cartes” pour l’accueil */
.md-typeset table:not([class]) {
  font-size: 0.9rem;
  border-radius: 0.375rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-collapse: separate;
  border-spacing: 0;
}
.md-typeset table:not([class]) th {
  background: var(--md-default-fg-color--lightest);
  font-weight: 600;
  padding: 0.65rem 1rem;
}
.md-typeset table:not([class]) td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}
/* Tableau “Démarrage” (2x2) : effet bloc */
.md-typeset table:not([class]) tbody tr td {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}
.md-typeset table:not([class]) tbody tr:last-child td { border-bottom: none; }

/* Onglets (FAQ, etc.) */
.md-typeset .tabbed-set { margin: 1.5em 0; }
.md-typeset .tabbed-content { padding: 0.8rem 0 0; }
.md-typeset .tabbed-set > label { font-weight: 600; }

/* Détails / résumés */
.md-typeset details { margin: 0.5em 0; }
.md-typeset details summary { font-weight: 600; cursor: pointer; }

/* Liens */
.md-typeset a { text-decoration: underline; text-underline-offset: 2px; }
.md-typeset a:hover { text-decoration-thickness: 2px; }
/* Bouton d’action principal (accueil) */
.md-typeset a.md-button { font-weight: 600; text-decoration: none; }
.md-typeset a.md-button:hover { text-decoration: none; }

/* Titres : hiérarchie et espacement */
.md-typeset h1 { font-weight: 700; margin-bottom: 0.75em; line-height: 1.25; }
.md-typeset h2 {
  margin-top: 1.75em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  font-weight: 600;
}
.md-typeset h3 { margin-top: 1.35em; font-weight: 600; }

/* Images */
.md-typeset img { max-width: 100%; height: auto; display: block; border-radius: 0.375rem; }
.md-typeset .md-content__inner img { max-width: min(100%, 720px); }

/* Page d’accueil : listes */
.home-page .md-typeset ul { margin: 0.5em 0; }
.md-typeset .md-content__inner > ul { margin-bottom: 1em; }

/* Accessibilité */
.md-typeset a:focus-visible,
.md-typeset input:focus-visible,
.md-typeset summary:focus-visible {
  outline: 2px solid var(--md-primary-fg-color);
  outline-offset: 2px;
}

/* FAQ : tableau “Questions les plus posées” */
.md-typeset .md-content__inner table tbody tr:hover td { background: var(--md-default-fg-color--lightest); }

/* Impression */
@media print {
  .md-header, .md-nav, .md-footer, .md-sidebar, .md-content__button { display: none !important; }
  .md-typeset table:not([class]) { box-shadow: none; border: 1px solid #ccc; }
}
