/* pmwiki.css – design académique + menu mobile JS */

body {
  font-family: 'Lora', serif;
  background-color: #f8f9fa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: #324E7B;
  text-decoration: none;
}
a:hover {
  color: #5A6FA3;
  text-decoration: underline;
}

/* ===== Mise en page principale (PC) ===== */
#wikileft {
  display: none; /* invisible sur PC */
}

#wikibody {
  margin: 0 auto;
  padding: 2rem;
  max-width: 900px;
}

.pagetitle {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: #1D8074;
}

#wikitext {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

#wikifoot {
  background: #f1f3f5;
  color: #555;
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
  margin-top: 3rem;
  border-top: 1px solid #dee2e6;
}

/* ===== Bouton menu mobile ===== */
#menuButton {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 1.4rem;
  background-color: #1D8074;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== Menu mobile ===== */
@media (max-width: 768px) {
  #groupheader {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #menuButton {
    display: block;
  }

  #wikileft {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  #wikileft.open {
    transform: translateX(0);
  }

  #wikibody {
    margin: 0;
    padding: 1rem;
  }
}
