/* =====================================================================
   AHOBA — navigation unifiée (barre permanente + « le plan »)
   Présente sur TOUTES les pages, quel que soit leur style. Thème-neutre.
   ===================================================================== */
.ahoba-nav, .ahoba-plan { font-family: ui-monospace, "SFMono-Regular", monospace; }

/* décaler le contenu des pages en flux pour ne pas passer sous la barre */
body { padding-top: 36px; }

/* ---------- barre permanente (volontairement TRÈS discrète) ---------- */
.ahoba-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px;
  /* barre toujours SOMBRE (même sur les pages claires) → liens clairs lisibles partout */
  background: rgba(12, 13, 19, 0.82);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ahoba-brand {
  color: #cfc6ad; text-decoration: none; font-size: 11.5px; letter-spacing: 2px;
  white-space: nowrap; flex: 0 0 auto; opacity: .9;
}
.ahoba-brand:hover { color: #f3e7c6; opacity: 1; }
/* défile horizontalement plutôt que de couper net quand il y a beaucoup de faces */
.ahoba-links { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.ahoba-links::-webkit-scrollbar { display: none; }
.ahoba-link {
  color: #b9bdca; text-decoration: none; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 8px; border-radius: 20px; white-space: nowrap;
  transition: color 0.25s, opacity 0.25s;
}
.ahoba-link:hover { color: #fff; }
.ahoba-cur { color: #e6dcc2; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ahoba-cur:hover { color: #f3e7c6; }
/* passerelle vers le monde immersif (3D) — teinte froide, se distingue du « plan » doré */
.ahoba-switch {
  flex: 0 0 auto; white-space: nowrap; text-decoration: none; margin-left: 8px;
  font-family: inherit; font-size: 10px; letter-spacing: 1.2px; color: #cdd3e0;
  border: 1px solid rgba(150, 180, 255, 0.34); border-radius: 20px; padding: 4px 11px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .25s, border-color .25s, background .25s;
}
.ahoba-switch:hover { color: #fff; border-color: rgba(150, 180, 255, 0.85); background: rgba(120, 150, 255, 0.16); }
/* « le plan » : volontairement VISIBLE et qui SCINTILLE — le repère pour ne jamais se perdre. */
.ahoba-plan-btn {
  margin-left: auto; flex: 0 0 auto; background: none;
  border: 1px solid rgba(243, 231, 198, 0.35); color: #e6dcc2;
  font-family: inherit; font-size: 10px; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 20px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
  animation: ahobaPlanShimmer 3.6s ease-in-out infinite;
}
@keyframes ahobaPlanShimmer {
  0%, 100% { border-color: rgba(243,231,198,.28); color: #cbb98f; box-shadow: 0 0 0 0 rgba(243,231,198,0); }
  50%      { border-color: rgba(243,231,198,.72); color: #f3e7c6; box-shadow: 0 0 15px 1px rgba(243,231,198,.38); }
}
.ahoba-plan-btn:hover { border-color: rgba(243,231,198,.95); color: #fff; box-shadow: 0 0 18px 2px rgba(243,231,198,.5); animation: none; }
.ahoba-plan-star { display: inline-block; color: #f3e7c6; line-height: 1; }
@keyframes ahobaStarTwinkle {
  0%, 100% { opacity: .5; transform: scale(.85) rotate(0deg); text-shadow: none; }
  50%      { opacity: 1; transform: scale(1.2) rotate(22deg); text-shadow: 0 0 9px rgba(243,231,198,.95); }
}
.ahoba-plan-btn .ahoba-plan-star { animation: ahobaStarTwinkle 2.2s ease-in-out infinite; }
@media (max-width: 720px) { .ahoba-links { display: none; } }

/* ---------- le plan (overlay) ---------- */
.ahoba-plan {
  position: fixed; inset: 0; z-index: 9100; display: none;
  place-content: center; padding: 22px;
  background: rgba(5, 6, 11, 0.93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ahoba-plan.open { display: grid; animation: ahobaFade 0.25s ease; }
@keyframes ahobaFade { from { opacity: 0; } to { opacity: 1; } }
.ahoba-plan-inner { width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; }
.ahoba-plan-head {
  display: flex; justify-content: space-between; align-items: center;
  color: #7e828a; font-size: 12px; letter-spacing: 3px;
  padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ahoba-plan-close { background: none; border: none; color: #9a9aa2; font-size: 18px; cursor: pointer; line-height: 1; }
.ahoba-plan-close:hover { color: #fff; }
.ahoba-row {
  display: block; text-decoration: none; padding: 14px; border-radius: 10px;
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.ahoba-row:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.ahoba-row-label { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: #e8e8e2; }
.ahoba-row-label em { font-size: 11px; color: #7e828a; font-style: normal; font-family: ui-monospace, monospace; letter-spacing: 1px; margin-left: 6px; }
.ahoba-row-desc { display: block; font-size: 12px; color: #8a8d96; margin-top: 3px; }
.ahoba-here { background: rgba(243, 231, 198, 0.1); border-color: rgba(243, 231, 198, 0.42); }
.ahoba-badge {
  display: inline-block; margin-top: 9px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #f3e7c6; border: 1px solid rgba(243, 231, 198, 0.4); border-radius: 20px; padding: 2px 9px;
}
.ahoba-soon { opacity: 0.45; cursor: default; }
.ahoba-soon:hover { background: none; border-color: transparent; }

/* ---------- le plan en 3 mondes (classique / immersif / dynamique) ---------- */
.ahoba-world { margin-bottom: 22px; }
.ahoba-world:last-child { margin-bottom: 4px; }
.ahoba-world-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ahoba-world-label { font-family: Georgia, "Times New Roman", serif; font-size: 15px; letter-spacing: .4px; color: #e8e8e2; }
.ahoba-world-tag { font-size: 11px; letter-spacing: 1px; color: #7e828a; }
.ahoba-world-you {
  margin-left: auto; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #f3e7c6;
  border: 1px solid rgba(243, 231, 198, 0.45); border-radius: 20px; padding: 2px 9px; white-space: nowrap;
}
.ahoba-world-here .ahoba-world-label { color: #f3e7c6; }
/* badge « 3D » sur les destinations du monde immersif */
.ahoba-row-label .ahoba-3d {
  font-style: normal; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #0b1020; background: #8fb3ff; border-radius: 20px;
  padding: 1px 7px; margin-left: 8px; vertical-align: middle;
}

@media (max-width: 560px) { .ahoba-sw-long { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ahoba-plan.open { animation: none; }
  .ahoba-plan-btn { animation: none; border-color: rgba(243,231,198,.6); color: #f3e7c6; }
  .ahoba-plan-btn .ahoba-plan-star { animation: none; opacity: 1; }
}

/* neutralise les anciennes navigations propres à chaque page (remplacées par la barre) */
.nav, .controls, #uNav, .escape, .dark-door { display: none !important; }
