/* PrivIT Navigator(TM) - Integration W3 V1.2 - styles isoles */
#privit-navigator-root {
  all: initial;
  --pn-night: #071321;
  --pn-cyan: #16cee6;
  --pn-blue: #15b9ef;
  --pn-orange: #ef8a31;
  position: fixed;
  z-index: 900;
  right: var(--pn-right, 18px);
  bottom: calc(var(--pn-bottom, 20px) + env(safe-area-inset-bottom, 0px));
  width: 0;
  height: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #e9f7fa;
  color-scheme: dark;
  pointer-events: none;
}
#privit-navigator-root *, #privit-navigator-root *::before, #privit-navigator-root *::after { box-sizing: border-box; }
#privit-navigator-root button { font-family: inherit; letter-spacing: normal; text-transform: none; }
#privit-navigator-root .pn-launcher {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 1px solid #46d9e7a9;
  border-radius: 20px;
  color: var(--pn-cyan);
  background: linear-gradient(150deg, #0f3444, #071723);
  box-shadow: 0 12px 40px #0008, 0 0 26px #00c6ec33;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
#privit-navigator-root .pn-launcher:hover { transform: translateY(-3px); box-shadow: 0 13px 35px #000a, 0 0 35px #00c6ec66; }
#privit-navigator-root .pn-launcher svg { height: 34px; width: 34px; animation: pn-spin 20s linear infinite; }
@keyframes pn-spin { to { transform: rotate(360deg); } }
#privit-navigator-root .pn-panel {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 73px;
  width: min(306px, calc(100vw - 24px));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #397387;
  border-radius: 23px;
  background: radial-gradient(circle at 50% 42%, #123d52 0%, #0b2335 46%, #081626 90%);
  box-shadow: 0 20px 75px #000b, 0 0 30px #12cfe320;
  transform-origin: 90% 95%;
  transition: opacity .24s, transform .3s;
}
#privit-navigator-root .pn-panel[hidden] { display: none !important; }
#privit-navigator-root .pn-panel.pn-enter { opacity: 0; transform: scale(.85) translateY(15px); }
#privit-navigator-root .pn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#49dded09 1px, transparent 1px), linear-gradient(90deg, #49dded09 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
#privit-navigator-root .pn-close {
  position: absolute;
  z-index: 20;
  top: 9px;
  right: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #3c6477;
  border-radius: 9px;
  color: #d5edf5;
  background: #183547;
  font-size: 19px;
  font-weight: 400;
  cursor: pointer;
}
#privit-navigator-root .pn-status {
  position: absolute;
  top: 15px;
  left: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  color: #9bcedb;
  letter-spacing: .02em;
  pointer-events: none;
}
#privit-navigator-root .pn-stage {
  position: absolute;
  inset: 35px 4px 58px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#privit-navigator-root .pn-stage.pn-dragging { cursor: grabbing; }
#privit-navigator-root .pn-orbit-line {
  position: absolute;
  left: 50%; top: calc(50% - 10px);
  border: 1px solid #2cc8e42e;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-21deg);
  pointer-events: none;
}
#privit-navigator-root .pn-orbit-line.pn-one { width: 47%; height: 47%; }
#privit-navigator-root .pn-orbit-line.pn-two { width: 76%; height: 68%; border-color: #2cc8e41c; }
#privit-navigator-root .pn-orbit-line.pn-three { width: 93%; height: 89%; border-color: #2cc8e412; }
#privit-navigator-root .pn-center {
  position: absolute;
  z-index: 12;
  left: 50%; top: calc(50% - 10px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid #42d4eb94;
  border-radius: 18px;
  background: linear-gradient(135deg, #174758, #071d2b);
  box-shadow: 0 0 36px #19cde52e;
  pointer-events: auto;
  cursor: pointer;
  color: inherit;
  padding: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  --pn-glow: 0;
  transition: border-color .3s ease, box-shadow .35s ease, filter .35s ease;
  box-shadow: 0 0 calc(36px + var(--pn-glow) * 20px) rgba(25,205,229,calc(.18 + var(--pn-glow) * .36)),
              0 0 calc(var(--pn-glow) * 29px) rgba(74,176,255,calc(var(--pn-glow) * .46));
  filter: brightness(calc(1 + var(--pn-glow) * .13));
}
#privit-navigator-root .pn-center:hover,
#privit-navigator-root .pn-center:focus-visible { --pn-glow: 1 !important; border-color: #7feaff; }
#privit-navigator-root .pn-center.pn-activated { box-shadow: 0 0 50px #14bfff, 0 0 75px #ef8a31a6; }
#privit-navigator-root .pn-center b {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.2;
  color: #edf7fa;
}
#privit-navigator-root .pn-center b em { font-style: normal; color: var(--pn-blue); }
#privit-navigator-root .pn-center small {
  font-size: 7.8px;
  letter-spacing: .11em;
  font-weight: 400;
  line-height: 1.4;
  color: #b1d7e1;
}
#privit-navigator-root .pn-nodes { position: absolute; inset: 0; pointer-events: none; }
#privit-navigator-root .pn-orb {
  pointer-events: auto;
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  padding: 0;
  border: 1px solid #37778b;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #2c6175, #0b2637 80%);
  box-shadow: 0 4px 14px #0007;
  color: #e5faff;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, left, top;
  transition: border-color .15s, background .15s;
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
}
#privit-navigator-root .pn-orb svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#privit-navigator-root .pn-orb span {
  display: block;
  max-width: 45px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7.4px;
  font-weight: 700;
  line-height: 1.2;
}
#privit-navigator-root .pn-orb.pn-active {
  border-color: var(--pn-orange);
  background: radial-gradient(circle at 30% 20%, #b46a38, #513224 85%);
  color: white;
}
#privit-navigator-root .pn-instruction {
  position: absolute;
  bottom: 59px;
  left: 0; right: 0;
  font-size: 10px;
  text-align: center;
  color: #8bb3c1;
  pointer-events: none;
}
#privit-navigator-root .pn-tabs {
  position: absolute;
  z-index: 18;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 4px;
  border: 1px solid #245268;
  border-radius: 13px;
  background: #061826e8;
}
#privit-navigator-root .pn-tab {
  display: block;
  padding: 9px 6px;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8fb8c7;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
#privit-navigator-root .pn-tab[aria-selected="true"] {
  background: #0d6577;
  color: white;
  box-shadow: 0 0 12px #00c9db35;
}
#privit-navigator-root .pn-center:focus-visible,
#privit-navigator-root .pn-launcher:focus-visible,
#privit-navigator-root .pn-close:focus-visible,
#privit-navigator-root .pn-orb:focus-visible,
#privit-navigator-root .pn-tab:focus-visible { outline: 3px solid var(--pn-orange); outline-offset: 3px; }
@media (max-width: 520px) {
  #privit-navigator-root { right: var(--pn-right-mobile, 13px); bottom: calc(var(--pn-bottom-mobile, 17px) + env(safe-area-inset-bottom, 0px)); }
  #privit-navigator-root .pn-launcher { width: 54px; height: 54px; border-radius: 17px; }
  #privit-navigator-root .pn-panel { bottom: 65px; width: min(290px, calc(100vw - 22px)); }
}
@media (prefers-reduced-motion: reduce) {
  #privit-navigator-root .pn-launcher svg { animation: none; }
  #privit-navigator-root .pn-panel { transition: none; }
  #privit-navigator-root .pn-orb { transition: none; }
}

/* Adaptation des 10 destinations globales dans la fenetre compacte */
#privit-navigator-root .pn-orb.pn-condensed {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
}
#privit-navigator-root .pn-orb.pn-condensed svg { width: 18px; height: 18px; }
#privit-navigator-root .pn-orb.pn-condensed span { max-width: 40px; font-size: 7px; }
/* Utilisable egalement en orientation paysage sur smartphone */
@media (max-height: 520px) {
  #privit-navigator-root .pn-panel {
    width: min(270px, calc(100vw - 24px), calc(100dvh - 88px));
    bottom: 59px;
  }
  #privit-navigator-root .pn-launcher { width: 48px; height: 48px; }
}

/* Sur tactile, un souffle lumineux tres discret signale le passage secret. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  #privit-navigator-root .pn-center { animation: pn-secret-breathe 8s ease-in-out infinite; }
  @keyframes pn-secret-breathe {
    0%, 70%, 100% { box-shadow: 0 0 36px #19cde52e; }
    82% { box-shadow: 0 0 44px #19cde56b, 0 0 16px #279cef40; }
  }
}
@media (prefers-reduced-motion: reduce) {
  #privit-navigator-root .pn-center { transition: none; animation: none; }
}
