/* Wiki : bandeau du site + mise en page de Jean-Marc (missions.css et wiki.css d’origine). */
.page-wiki {
  background: #f5f5f3;
  color: #292929;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.page-wiki .site-footer .footer-grid { display: none; }
.page-wiki .site-footer { background: #252321; color: #d4d0cc; }
.page-wiki .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  color: #292929;
  border-bottom: 1px solid #e5e2df;
  backdrop-filter: none;
}
.page-wiki .site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.page-wiki .brand { justify-self: start; color: #292929; }
.page-wiki .brand__name,
.page-wiki .brand__sub {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: #292929;
}
.page-wiki .brand__name { font-weight: 700; font-size: 1.05rem; }
.page-wiki .brand__sub { color: #686868; font-size: 0.75rem; }
.page-wiki .wiki-site {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border: 1px solid #e5e2df;
  border-radius: 999px;
  background: #fff;
  color: #292929;
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.page-wiki .wiki-site img { width: 22px; height: 22px; border-radius: 50%; }
.page-wiki .wiki-site:hover { border-color: #bd542e; color: #873b25; }
.page-wiki .wiki-search { position: relative; justify-self: end; margin: 0; width: min(22rem, 100%); }
.page-wiki .wiki-search__bar { display: flex; align-items: stretch; position: relative; }
.page-wiki .wiki-search__icon {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 0.95rem;
  height: 0.95rem;
  transform: translateY(-50%);
  color: #686868;
  pointer-events: none;
}
.page-wiki .wiki-search input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 0.55rem 0 1.8rem;
  border: 1px solid #e5e2df;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: #fff;
  color: #292929;
  font: 14px/1.3 Arial, Helvetica, sans-serif;
}
.page-wiki .wiki-search button {
  height: 32px;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid #e5e2df;
  border-radius: 0 2px 2px 0;
  background: #f4e8e1;
  color: #292929;
  font: 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.page-wiki .wiki-search__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e2df;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 22rem;
  overflow: auto;
}
.page-wiki .wiki-search__list a { display: block; padding: 0.4rem 0.75rem; color: #873b25; text-decoration: none; }

.page-wiki .jm-hero {
  min-height: 340px;
  background:
    linear-gradient(90deg, rgba(24, 20, 19, 0.78), rgba(24, 20, 19, 0.12)),
    url("../img/wiki/mars-banner.jpg") center 45% / cover no-repeat;
  color: #fff;
}
.page-wiki .jm-hero__overlay { min-height: 340px; display: flex; align-items: center; }
.page-wiki .jm-hero__content { width: 1120px; max-width: 90%; margin: auto; padding: 50px 0; }
.page-wiki .jm-eyebrow { margin: 0; font-size: 12px; font-weight: bold; letter-spacing: 2.5px; text-transform: uppercase; color: #e8a184; }
.page-wiki .jm-hero h1 { max-width: 750px; margin: 15px 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700; text-align: left; color: #fff; }
.page-wiki .jm-hero p { max-width: 600px; margin: 20px 0 0; font-size: 18px; color: #eee; }
.page-wiki .jm-wrap { width: 1120px; max-width: 92%; margin: auto; }
.page-wiki .jm-intro { max-width: 850px; margin: 65px auto 55px; text-align: center; }
.page-wiki .jm-intro h2 { margin-bottom: 18px; font-size: 29px; }
.page-wiki .jm-intro p { color: #686868; margin: 10px 0; }
.page-wiki .jm-topics { margin-bottom: 70px; }
.page-wiki .jm-topics > h2 { margin-bottom: 28px; font-size: 29px; text-align: center; }
.page-wiki .jm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.page-wiki .jm-card { overflow: hidden; background: #fff; border: 1px solid #e5e2df; border-radius: 9px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); }
.page-wiki .jm-card__image { height: 175px; background-position: center; background-size: cover; }
.page-wiki .jm-card__body { padding: 25px 28px 30px; }
.page-wiki .jm-card__n { display: inline-block; margin-bottom: 5px; color: #bd542e; font-size: 13px; font-weight: bold; letter-spacing: 1.5px; }
.page-wiki .jm-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.page-wiki .jm-card p { margin: 0 0 20px; color: #686868; font-size: 14px; }
.page-wiki .jm-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e2df; }
.page-wiki .jm-card li { position: relative; padding: 8px 0 8px 17px; border-bottom: 1px solid #f0eeec; font-size: 14px; }
.page-wiki .jm-card li::before { content: ""; position: absolute; top: 16px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #d58a6e; }
.page-wiki .jm-card a { color: #873b25; font-weight: 600; }
.page-wiki .jm-footer { margin-top: 70px; padding: 30px 0; background: #252321; color: #d4d0cc; font-size: 13px; text-align: center; }
.page-wiki .jm-footer p { margin: 5px 0; }
.page-wiki .jm-search { padding: 48px 0 80px; }
.page-wiki .jm-search a { color: #873b25; }

.page-wiki .jm-doc { display: block; }
.page-wiki .jm-sommaire {
  position: fixed;
  top: 74px;
  left: 0;
  width: 20%;
  height: calc(100vh - 74px);
  padding: 20px;
  box-sizing: border-box;
  background: #f5f5f5;
  overflow-y: auto;
  border-right: 1px solid #e5e2df;
}
.page-wiki .jm-sommaire h2 { margin: 0 0 16px; font-size: 1.05rem; text-align: left; }
.page-wiki .jm-sommaire a { display: block; margin-bottom: 10px; color: #873b25; text-decoration: none; }
.page-wiki .jm-sommaire a:hover { text-decoration: underline; }
.page-wiki .jm-article { margin-left: 20%; padding: 28px 32px 64px; }
.page-wiki .jm-article h1 { text-align: center; font-size: 2rem; margin: 0.4rem 0 1.2rem; }
.page-wiki .jm-article h2 { margin-top: 1.6rem; }
.page-wiki .jm-article img { display: block; max-width: min(100%, 700px); height: auto; margin: 20px auto; }
.page-wiki .jm-article a { color: #873b25; }
.page-wiki .jm-article table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
.page-wiki .jm-article th, .page-wiki .jm-article td { border: 1px solid #ccc; padding: 10px 12px; text-align: left; vertical-align: top; }
.page-wiki .jm-article th { background: #eee9e5; }
.page-wiki .jm-note { color: #686868; font-size: 0.92rem; }

@media (max-width: 800px) {
  .page-wiki .site-header__inner { grid-template-columns: 1fr auto; }
  .page-wiki .wiki-search { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .page-wiki .jm-grid { grid-template-columns: 1fr; }
  .page-wiki .jm-sommaire { position: static; width: auto; height: auto; }
  .page-wiki .jm-article { margin-left: 0; }
}
