/* wikipedia_like.css — style inspiré de MediaWiki (sans être une copie exacte)
   Place ce fichier à côté de index.php et des images wiki1.jpeg / wiki2.jpeg
*/

:root{
  --wm-bg:#f6f6f6;
  --wm-panel:#ffffff;
  --wm-border:#a2a9b1;
  --wm-muted:#54595d;
  --wm-link:#0645ad;
  --wm-link-visited:#0b0080;
  --wm-heading:#202122;
  --wm-subtle:#f8f9fa;
  --wm-shadow:0 1px 0 rgba(0,0,0,.05);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--wm-bg);
  color:#202122;
  font:14px/1.55 Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* Header */
.mw-header{
  background:var(--wm-panel);
  border-bottom:1px solid var(--wm-border);
}
.mw-header-inner{
  max-width:1280px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:16px;
}
.mw-logo-link{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
}
.mw-logo-wordmark{
  font-family:"Linux Libertine", Georgia, "Times New Roman", serif;
  font-weight:700;
  font-size:22px;
  line-height:1;
}
.mw-logo-tagline{
  font-size:11px;
  color:var(--wm-muted);
  margin-top:2px;
}

.mw-search{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.mw-search input{
  width:min(520px, 48vw);
  padding:8px 10px;
  border:1px solid var(--wm-border);
  border-radius:2px;
  background:#fff;
}
.mw-button{
  padding:8px 10px;
  border:1px solid var(--wm-border);
  background:linear-gradient(#fff,#f3f3f3);
  border-radius:2px;
  cursor:pointer;
}
.mw-button:active{ transform:translateY(1px); }

.mw-personal-tools{
  display:flex;
  gap:10px;
  font-size:13px;
}
.mw-personal-tools a{
  color:var(--wm-link);
  text-decoration:none;
}
.mw-personal-tools a:hover{ text-decoration:underline; }

/* Page layout */
.mw-page{
  max-width:1280px;
  margin:0 auto;
  padding:12px 16px 42px;
  display:grid;
  grid-template-columns: 176px 1fr;
  gap:18px;
}

/* Sidebar */
.mw-sidebar{ align-self:start; }
.mw-sidebar-inner{ position:sticky; top:12px; }
.mw-portlet{ margin-bottom:14px; }
.mw-portlet-title{
  font-size:12px;
  color:var(--wm-muted);
  font-weight:500;
  margin:0 0 6px;
  padding:0 2px;
}
.mw-portlet-body{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.mw-portlet-body a{
  color:var(--wm-link);
  text-decoration:none;
  padding:2px 2px;
  border-radius:2px;
}
.mw-portlet-body a:hover{ text-decoration:underline; }

/* Tabs */
.mw-content-wrap{ min-width:0; }
.mw-tabs{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  border-bottom:1px solid var(--wm-border);
  margin:0 0 10px;
}
.mw-tabs-left,.mw-tabs-right{ display:flex; gap:2px; }
.mw-tab{
  display:inline-block;
  padding:8px 10px;
  font-size:13px;
  text-decoration:none;
  color:var(--wm-link);
  border:1px solid transparent;
  border-top-left-radius:2px;
  border-top-right-radius:2px;
}
.mw-tab:hover{ background:var(--wm-subtle); }
.mw-tab.is-active{
  background:var(--wm-panel);
  border-color:var(--wm-border);
  border-bottom-color:var(--wm-panel);
  color:var(--wm-heading);
}

/* Content */
.mw-content{
  background:var(--wm-panel);
  border:1px solid var(--wm-border);
  box-shadow:var(--wm-shadow);
  padding:18px 18px 26px;
  min-width:0;
}

/* Headings */
.firstHeading{
  margin:0 0 8px;
  font-family:"Linux Libertine", Georgia, "Times New Roman", serif;
  font-weight:400;
  font-size:32px;
  line-height:1.1;
}
.mw-hatnote{
  font-size:13px;
  color:var(--wm-muted);
  margin:2px 0 12px;
}
.mw-hatnote a{ color:var(--wm-link); text-decoration:none; }
.mw-hatnote a:hover{ text-decoration:underline; }

h2{
  margin:22px 0 10px;
  font-family:"Linux Libertine", Georgia, "Times New Roman", serif;
  font-weight:400;
  font-size:22px;
  border-bottom:1px solid var(--wm-border);
  padding-bottom:6px;
}
p{ margin:0 0 10px; }

/* Links */
a{ color:var(--wm-link); }
a:visited{ color:var(--wm-link-visited); }

/* Infobox */
.infobox{
  float:right;
  width:min(320px, 42%);
  border:1px solid var(--wm-border);
  background:#f8f9fa;
  border-radius:0;
  margin:0 0 12px 14px;
  overflow:hidden;
  font-size:13px;
}
.infobox .ibox-head{
  padding:8px 10px;
  font-weight:700;
  text-align:center;
  background:#eaecf0;
  border-bottom:1px solid var(--wm-border);
}
.infobox-imagewrap{
  padding:8px 10px;
  border-bottom:1px solid rgba(162,169,177,.55);
  background:#fff;
}
.infobox-image{
  display:block;
  width:100%;
  height:auto;
  border:1px solid rgba(162,169,177,.6);
}
.infobox-caption{
  font-size:12px;
  color:var(--wm-muted);
  margin-top:6px;
}
.infobox table{ width:100%; border-collapse:collapse; }
.infobox th,.infobox td{
  padding:6px 8px;
  vertical-align:top;
  border-top:1px solid rgba(162,169,177,.55);
}
.infobox th{
  width:42%;
  color:var(--wm-muted);
  text-align:left;
  font-weight:600;
}

/* TOC */
.toc{
  border:1px solid var(--wm-border);
  background:#f8f9fa;
  padding:10px 12px;
  margin:12px 0 16px;
  width:fit-content;
  max-width:100%;
}
.toc .toc-title{ font-weight:700; margin:0 0 6px; }
.toc ol{ margin:0; padding-left:18px; }
.toc li{ margin:4px 0; }

/* Message box */
.mw-ambox{
  display:grid;
  grid-template-columns: 42px 1fr;
  gap:10px;
  border:1px solid var(--wm-border);
  background:#f8f9fa;
  padding:10px 12px;
  margin:0 0 14px;
}
.mw-ambox-icon{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  font-size:18px;
  line-height:1;
  padding-top:2px;
}
.mw-ambox-body{ font-size:13px; }
.mw-ambox-body strong{ font-weight:700; }

/* Galerie */
.mw-gallery{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.thumb{
  width:220px;
  border:1px solid var(--wm-border);
  background:#f8f9fa;
  padding:6px;
  margin:6px 0 10px;
}
.thumb img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid rgba(162,169,177,.6);
  background:#fff;
}
.thumb figcaption{
  font-size:12px;
  color:var(--wm-muted);
  margin-top:6px;
}

/* References */
.references{ margin:10px 0 0; padding-left:20px; }
.references li{ margin:8px 0; }
.ref-type{ color: var(--wm-muted); font-size:12px; }

/* Footer */
.mw-footer{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid var(--wm-border);
  color:var(--wm-muted);
  font-size:12px;
}
.mw-footer-row{ margin:6px 0; }

/* Responsive */
@media (max-width: 980px){
  .mw-page{ grid-template-columns: 1fr; }
  .mw-sidebar-inner{ position:relative; top:auto; }
  .mw-search input{ width:min(520px, 60vw); }
  .infobox{ float:none; width:100%; margin:0 0 12px 0; }
}
