/* Draggable help hand + tooltip (theme: transparence + néon jaune/vert) */
:root{
  --help-bg: rgba(11,11,14,.72);
  --help-border: var(--accent, #ffd34d);
  --help-border-2: var(--border, #42f73f);
  --help-text: var(--text, #14d90f);
}
#helpToggle{
  position: relative;
}
#helpToggle.active{
  box-shadow: 0 0 12px rgba(255,211,77,.35), 0 0 24px rgba(66,247,63,.25);
  border: 1px solid var(--help-border);
}
.help-hand{
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  display: none;
}
.help-hand.dragging{
  cursor: grabbing;
  /* ensure no leftover centering transform while dragging */
  transform: none !important;
}
.help-hand .hand{
  font-size: 44px;
  color: var(--help-border);
  text-shadow: 0 0 10px rgba(255,211,77,.45), 0 0 18px rgba(66,247,63,.25);
  filter: drop-shadow(0 0 6px rgba(0,0,0,.6));
}
.help-tooltip{
  position: fixed;
  z-index: 100000;
  max-width: 720px;
  min-width: 360px;
  background: var(--help-bg);
  border: 2px solid var(--help-border);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255,211,77,.22), 0 0 28px rgba(66,247,63,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #eaffea;
  padding: 16px 16px 14px;
  display: none;
}
.help-tooltip .ht-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.help-tooltip .ht-title{
  font-weight: 800;
  color: var(--help-border);
  letter-spacing: .2px;
  text-shadow: 0 0 10px rgba(255,211,77,.25);
  flex: 1;
  font-size: 34px;
}
.help-tooltip .ht-close{
  border: 1px solid rgba(255,211,77,.55);
  background: rgba(0,0,0,.2);
  color: var(--help-border);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 18px;
  cursor: pointer;
}
.help-tooltip .ht-body{
  font-size: 28px;
  line-height: 1.55;
  color: rgba(234,255,234,.92);
}
.help-tooltip .ht-hint{
  margin-top: 12px;
  font-size: 20px;
  color: rgba(234,255,234,.75);
  border-top: 1px solid rgba(66,247,63,.25);
  padding-top: 8px;
}
.help-highlight{
  outline: 3px solid var(--help-border-2);
  box-shadow: 0 0 0 4px rgba(66,247,63,.12), 0 0 18px rgba(255,211,77,.22);
  border-radius: 10px;
}


/* Help menu (Manuel / Automatique) */
.help-menu{
  position: fixed;
  z-index: 100001;
  width: 250px;
  background: var(--help-bg);
  border: 2px solid var(--help-border);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255,211,77,.22), 0 0 28px rgba(66,247,63,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px;
  display: none;
  color: #eaffea;
}
.help-menu.show{ display:block; }
.help-menu .hm-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}
.help-menu .hm-title{
  font-weight: 900;
  font-size: 22px;
  color: var(--help-border);
  text-shadow: 0 0 10px rgba(255,211,77,.25);
  flex:1;
}
.help-menu .hm-x{
  border: 1px solid rgba(255,211,77,.55);
  background: rgba(0,0,0,.2);
  color: var(--help-border);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
}
.help-menu .hm-btn{
  width: 100%;
  border: 1px solid rgba(66,247,63,.55);
  background: rgba(0,0,0,.25);
  color: #eaffea;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 0 10px rgba(66,247,63,.12);
}
.help-menu .hm-btn:hover{
  box-shadow: 0 0 14px rgba(255,211,77,.18), 0 0 18px rgba(66,247,63,.14);
  border-color: rgba(255,211,77,.65);
}
.help-menu .hm-sub{
  font-size: 14px;
  opacity: .85;
  margin: 6px 2px 10px;
}
.help-menu .hm-link{
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(255,211,77,.45);
  background: rgba(0,0,0,.18);
  color: rgba(234,255,234,.92);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.help-menu .hm-link:hover{
  border-color: rgba(255,211,77,.75);
  box-shadow: 0 0 12px rgba(255,211,77,.16);
}

/* Pendant la visite automatique */
.help-hand.touring{
  cursor: default;
}
