body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0d12;
    color: #f5f5f5;
}

a {
    color: #4ea8ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #05060a;
    padding: 20px;
    box-sizing: border-box;
    border-right: 1px solid #202233;
}

.logo {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.home-link {
    display: block;
    margin-bottom: 15px;
}

.search-form input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #33374a;
    background: #0f1119;
    color: #f5f5f5;
    box-sizing: border-box;
}

.page-list {
    list-style: none;
    padding-left: 0;
}
.page-list li {
    margin: 4px 0;
}
.page-list a {
    display: block;
    padding: 3px 6px;
    border-radius: 4px;
}
.page-list a.active {
    background: #1a2033;
}

.sidebar-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #bbb;
}

.content {
    flex: 1;
    padding: 20px 30px;
    box-sizing: border-box;
}

.page-content {
    margin-top: 10px;
}

/* Login */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-form {
    background: #05060a;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #202233;
    width: 320px;
    box-sizing: border-box;
}

.login-form h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-top: 10px;
}

.login-form input {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #33374a;
    background: #0f1119;
    color: #f5f5f5;
    box-sizing: border-box;
}

.login-form button {
    margin-top: 15px;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
}
.login-form button:hover {
    background: #1d4ed8;
}

.error {
    color: #f97373;
}

/* Admin */

.admin-layout {
    min-height: 100vh;
}

.admin-header, .editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #202233;
    background: #05060a;
}

.admin-main, .editor-main {
    padding: 20px;
}

.editor-main textarea {
    width: 100%;
    font-family: monospace;
    background: #05060a;
    border: 1px solid #33374a;
    color: #f5f5f5;
    padding: 10px;
    box-sizing: border-box;
}

.editor-main button {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background: #16a34a;
    color: white;
    cursor: pointer;
}
.editor-main button:hover {
    background: #15803d;
}

.hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #aaa;
}
.sub-page-list {
    list-style: none;
    padding-left: 15px;
    margin: 4px 0 8px 0;
    border-left: 1px solid #1f2937;
}

.sub-page-list li a {
    font-size: 0.9rem;
    opacity: 0.9;
}
.sub-page-list li a.active {
    background: #111827;
    opacity: 1;
}



.admin-btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:10px;
  border:1px solid #334155;
  background:#0b1220;
  color:#e2e8f0;
  text-decoration:none;
  font-weight:600;
}
.admin-btn:hover{
  background:#020617;
}



/* =========================
   PHIVERSE TOOLS — CORE
   ========================= */

.phiBox {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid #1e293b;
  border-radius: 14px;
  background: linear-gradient(180deg, #020617 0%, #020617 60%, #020617 100%);
  box-shadow: 0 0 20px rgba(2, 6, 23, 0.9);
}

.phiBox > div:first-child {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #93c5fd;
  margin-bottom: 14px;
}

/* =========================
   PHI PATH (AVANT / APRÈS)
   ========================= */

.phi-path {
  margin-bottom: 26px;
}

.phi-path-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 14px 0 8px;
}

.phi-path-main {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.15s ease;
}

.phi-path-main:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.25);
}

.phi-path-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.phi-path-next {
  grid-column: span 6;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.phi-path-next:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

/* =========================
   PHI RELATED ARTICLES
   ========================= */

.phi-related-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.phi-related-card {
  grid-column: span 6;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.phi-related-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.25);
  transform: translateY(-1px);
}

.phi-related-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.phi-related-score {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* =========================
   PHI TAGS / CHIPS
   ========================= */

.phi-chip {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #020617;
  font-size: 12px;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {
  .phi-related-card,
  .phi-path-next {
    grid-column: span 12;
  }
}

.phiBox::after {
  content: "PhiVerse Tools";
  display: block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #475569;
  text-align: right;
}


---
/* Présentation PhiVerse Tools */

.phiToolsHero{
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #1e293b;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(2,6,23,.92), rgba(2,6,23,.70));
  color: #e2e8f0;
}

.phiToolsHero__inner{ max-width: 980px; margin: 0 auto; }

.phiToolsHero__badge{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgba(11,18,32,.65);
  color: #a5b4fc;
  font-weight: 700;
  letter-spacing: .2px;
}

.phiToolsHero__title{
  margin: 10px 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.phiToolsHero__lead{
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.55;
}

.phiToolsHero__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

@media (max-width: 760px){
  .phiToolsHero__grid{ grid-template-columns: 1fr; }
}

.phiToolsHero__card{
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 12px;
  background: rgba(11,18,32,.55);
}

.phiToolsHero__cardTitle{
  font-weight: 800;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.phiToolsHero__cardText{
  color: #94a3b8;
  line-height: 1.45;
}

.phiToolsHero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.phiBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #334155;
  background: rgba(11,18,32,.55);
  color: #e2e8f0;
}

.phiBtn:hover{ filter: brightness(1.08); }

.phiBtn--primary{
  background: rgba(79,70,229,.22);
  border-color: rgba(99,102,241,.55);
  color: #c7d2fe;
}

.phiBtn--ghost{
  background: transparent;
  color: #e2e8f0;
}

.phiToolsHero__note{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(51,65,85,.75);
  color: #94a3b8;
  line-height: 1.45;
}

/*PhiVerse Tools - Bubbles*/

.phi-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.phi-bubble {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #334155;
  background: rgba(11,18,32,0.65);
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
  color: #e2e8f0;
}

.phi-bubble h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  color: #c7d2fe;
}

.phi-bubble p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #cbd5e1;
}


/* WIKI HERO */
.wiki-hero{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 18px;
  min-height: 220px;

  /* image + voile sombre */
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.90), rgba(2,6,23,0.35), rgba(2,6,23,0.98)),
    url("/images/banner.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wiki-hero__content{
  position: relative;
  padding: 18px 18px 16px;
}