/* ── Icône tooltip ⓘ ─────────────────────────────────────────────────────── */
.adp-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(87,166,255,.18);
  color: var(--adp-blue);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
  transition: background var(--adp-transition);
  flex-shrink: 0;
}

.adp-tip-icon:hover,
.adp-tip-icon:focus {
  background: rgba(87,166,255,.35);
  outline: none;
}

/* Bulle tooltip */
.adp-tip-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #080c18;
  color: var(--adp-text);
  border: 1px solid var(--adp-line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.55;
  width: 240px;
  white-space: normal;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  text-align: left;
}

/* Décalage pour les tooltips proches du bord gauche */
.adp-tip-icon.tip-left::after {
  left: 0;
  transform: none;
}

.adp-tip-icon:hover::after,
.adp-tip-icon:focus::after {
  opacity: 1;
}

/* Flèche sous la bulle */
.adp-tip-icon::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--adp-line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 601;
}

.adp-tip-icon:hover::before,
.adp-tip-icon:focus::before {
  opacity: 1;
}

/* ── Surbrillance tutoriel ────────────────────────────────────────────────── */
.adp-hl {
  outline: 2px solid var(--adp-blue);
  outline-offset: 5px;
  border-radius: var(--adp-radius);
  animation: adp-hl-pulse 2s ease-in-out infinite;
}

@keyframes adp-hl-pulse {
  0%, 100% { outline-color: var(--adp-blue);   box-shadow: 0 0 0 0   rgba(87,166,255,.0); }
  50%       { outline-color: var(--adp-purple); box-shadow: 0 0 18px 4px rgba(192,132,252,.25); }
}

/* ── Bouton Tutoriel (topbar) ─────────────────────────────────────────────── */
.adp-btn-tut {
  background: rgba(87,166,255,.12);
  border-color: rgba(87,166,255,.3);
  color: var(--adp-blue);
  font-size: 13px;
}

.adp-btn-tut:hover {
  background: rgba(87,166,255,.22);
}

/* ── Panneau tutoriel ─────────────────────────────────────────────────────── */
.adp-tut {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 500px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(160deg, #131728, #0e1220);
  border: 1px solid rgba(87,166,255,.3);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 24px 72px rgba(0,0,0,.7), 0 0 0 1px rgba(87,166,255,.08);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.adp-tut.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.adp-tut-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.adp-tut-count {
  font-size: 12px;
  color: var(--adp-blue);
  font-weight: 600;
  letter-spacing: .05em;
  background: rgba(87,166,255,.12);
  border-radius: 999px;
  padding: 3px 10px;
}

.adp-tut-skip {
  background: none;
  border: none;
  color: var(--adp-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color var(--adp-transition);
}

.adp-tut-skip:hover { color: var(--adp-text); }

.adp-tut-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--adp-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.adp-tut-body {
  font-size: 13px;
  color: var(--adp-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.adp-tut-body ul {
  margin: 8px 0 0 0;
  padding-left: 16px;
}

.adp-tut-body li { margin-bottom: 4px; }

.adp-tut-body strong { color: var(--adp-text); }

.adp-tut-body em { color: var(--adp-blue); font-style: normal; }

.adp-tut-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.adp-tut-progress {
  display: flex;
  gap: 5px;
  align-items: center;
  flex: 1;
}

.adp-tut-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background 0.2s;
}

.adp-tut-dot.active { background: var(--adp-blue); }
.adp-tut-dot.done   { background: rgba(87,166,255,.4); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .adp-tut { bottom: 12px; padding: 14px 16px; }
  .adp-tut-title { font-size: 14px; }
  .adp-tut-body { font-size: 12px; }
}
