/* Apparence inspirée de Wikipédia : fond blanc, titres à empattements soulignés, liens bleus, infobox à droite. */
:root, [data-bs-theme="light"] {
  --wiki-link: #3366cc;
  --wiki-border: #a2a9b1;
  --wiki-soft: #f8f9fa;
  --wiki-head: #eaecf0;
  --bs-body-color: #202122;
  --bs-link-color: #3366cc;
  --bs-link-color-rgb: 51, 102, 204;
  --bs-link-hover-color: #3056a9;
}
[data-bs-theme="dark"] {
  --wiki-link: #88a3e8;
  --wiki-border: #54595d;
  --wiki-soft: #1f2125;
  --wiki-head: #2a2d33;
  --bs-body-bg: #101418;
  --bs-link-color: #88a3e8;
  --bs-link-color-rgb: 136, 163, 232;
  --bs-link-hover-color: #a8bdf0;
}
body { font-size: .95rem; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

.wiki-header { background: var(--bs-body-bg); }
.wiki-brand-name { font-family: "Linux Libertine", Georgia, Times, serif; font-size: 1.5rem; line-height: 1; }
.wiki-search { max-width: 32rem; }

.wiki-sidebar { font-size: .85rem; }
@media (min-width: 992px) {
  .wiki-sidebar { position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto; }
}
.wiki-sidebar a.active { color: var(--bs-body-color); font-weight: 600; }
.wiki-nav-section {
  color: var(--bs-secondary-color);
  border-bottom: 1px solid var(--wiki-border);
  margin-bottom: .3rem;
  font-size: .8rem;
}

.wiki-tabs .wiki-tab-active { border-bottom: 2px solid var(--bs-body-color); padding-bottom: .25rem; margin-bottom: -1px; }

.wiki-article h1, .wiki-article h2, .wiki-main > h1 {
  font-family: "Linux Libertine", Georgia, Times, "Times New Roman", serif;
  font-weight: normal;
  border-bottom: 1px solid var(--wiki-border);
  padding-bottom: .15em;
}
.wiki-article h1, .wiki-main > h1 { font-size: 2rem; margin-bottom: .8rem; }
.wiki-article h2 { font-size: 1.5rem; margin-top: 1.6rem; }
.wiki-article h3 { font-size: 1.05rem; font-weight: bold; margin-top: 1.2rem; }
.wiki-article { line-height: 1.6; }
.wiki-article h2, .wiki-article h3 { scroll-margin-top: 1rem; }

/* Infobox */
.wiki-article table.infobox {
  border: 1px solid var(--wiki-border);
  background: var(--wiki-soft);
  font-size: .85rem;
  width: 100%;
  margin-bottom: 1rem;
}
.wiki-article table.infobox thead { display: none; }
.wiki-article table.infobox td { padding: .3rem .5rem; vertical-align: top; border-top: 1px solid var(--wiki-border); }
.wiki-article table.infobox tbody tr:first-child td { border-top: 0; }
@media (min-width: 768px) {
  .wiki-article table.infobox { float: right; clear: right; width: 22rem; margin: 0 0 1rem 1.5rem; }
}

/* Tableaux "wikitable" */
.wiki-article .wikitable { border: 1px solid var(--wiki-border); font-size: .875rem; --bs-table-bg: var(--wiki-soft); }
.wiki-article .wikitable th { background: var(--wiki-head); }
.wiki-article .wikitable th, .wiki-article .wikitable td { border: 1px solid var(--wiki-border); }
.wiki-article .table-responsive { display: inline-block; max-width: 100%; }

/* Sommaire */
.wiki-toc {
  display: inline-block;
  border: 1px solid var(--wiki-border);
  background: var(--wiki-soft);
  padding: .5rem 1rem .6rem;
  margin: .5rem 0 1rem;
  font-size: .875rem;
}
.wiki-toc-title { font-weight: bold; text-align: center; margin-bottom: .25rem; }
.wiki-toc ol { list-style: none; padding: 0; margin: 0; }
.wiki-toc li.lvl3 { padding-left: 1.4rem; }
.wiki-toc .tocnumber { color: var(--bs-body-color); padding-right: .3rem; }

/* Code */
.wiki-article pre {
  position: relative;
  background: var(--wiki-soft);
  border: 1px solid var(--wiki-border);
  padding: .75rem 1rem;
}
.wiki-article :not(pre) > code { color: inherit; background: var(--wiki-soft); border: 1px solid var(--wiki-head); padding: 0 .25rem; border-radius: 2px; }
.wiki-copy { position: absolute; top: .4rem; right: .4rem; padding: 0 .4rem; font-size: .75rem; }
.wiki-alert p:last-child { margin-bottom: 0; }
.wiki-alert strong { display: block; }
.wiki-results mark { padding: 0; }
.wiki-footer { clear: both; }
