/* pmwiki.css – Encyclopédie collaborative pastel et avenante */

body {
  font-family: 'Nunito Sans', sans-serif;
  background: linear-gradient(to bottom right, #f9f3ff, #e8f9ff);
  margin: 0;
  padding: 0;
  color: #333;
}

/* ---------- HEADER & MENU ---------- */
header.site-header {
  background-color: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #f0f0f0;
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-title a {
  font-family: 'Poppins', sans-serif;
  color: #6C63FF;
  font-size: 1.6rem;
  text-decoration: none;
}

#main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

#main-menu a {
  color: #444;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transition: background 0.3s ease, color 0.3s ease;
}

#main-menu a:hover {
  background-color: #6C63FF;
  color: #fff;
}

.menu-toggle {
  display: none;
  background: #6C63FF;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- CONTENU PRINCIPAL ---------- */
#wikibody {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

#wikititle {
  text-align: center;
}

.pagetitle {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #6C63FF;
  margin-bottom: 1rem;
}

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

/* Fenêtres encyclopédiques */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* ---------- PIED DE PAGE ---------- */
#wikifoot {
  text-align: center;
  margin-top: 3rem;
  background-color: #6C63FF;
  color: #fff;
  padding: 1rem;
  border-radius: 20px 20px 0 0;
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE (Mobile) ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  #main-menu {
    display: none;
    width: 100%;
  }
  #main-menu.open {
    display: block;
  }
  #main-menu ul {
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem;
  }
  #main-menu a {
    display: block;
    padding: 0.8rem;
    text-align: center;
  }
}
