/* =========================================================
 * Déliroom Assistant Joueur — Didacticiel (onglet, 100% CSS)
 * Slides expliquant l'interface du module de jeu.
 * S'affiche dans le panneau .dpa-panel-tuto de la modale.
 * ========================================================= */

.dpa-panel-tuto {
  overflow: hidden;
}

/* ---- Scène des slides ---- */
.dpa-tuto-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.dpa-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 32px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow-y: auto;
}
.dpa-slide.dpa-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.dpa-slide.dpa-prev { transform: translateX(-40px); }

/* ---- Pictogramme ---- */
.dpa-slide-icon {
  font-size: 3.4rem;
  margin-bottom: 18px;
  animation: dpa-pop 0.5s ease both;
}
.dpa-slide.dpa-active .dpa-slide-icon {
  animation: dpa-pop 0.5s ease both, dpa-float 3.2s ease-in-out 0.5s infinite;
}
/* Pictogramme SVG (contrôles de jeu) dans une pastille */
.dpa-slide-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  color: var(--dpa-accent, #c9a84c);
  background: color-mix(in srgb, var(--dpa-accent, #c9a84c) 14%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--dpa-accent, #c9a84c) 42%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.dpa-slide-glyph svg { width: 52px; height: 52px; }

.dpa-slide h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--dpa-title, var(--dpa-accent, #c9a84c));
}
.dpa-slide p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 380px;
}

@keyframes dpa-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes dpa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Pagination ---- */
.dpa-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 14px;
  flex: 0 0 auto;
}
.dpa-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: color-mix(in srgb, var(--dpa-text, #fff) 28%, transparent);
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}
.dpa-dot.dpa-on {
  width: 22px;
  border-radius: 5px;
  background: var(--dpa-accent, #c9a84c);
}

/* ---- Navigation bas ---- */
.dpa-tuto-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 18px;
  flex: 0 0 auto;
}
.dpa-btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 18px;
  border: 1px solid color-mix(in srgb, var(--dpa-accent, #c9a84c) 45%, transparent);
  background: transparent;
  color: var(--dpa-text, #f2f2f2);
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}
.dpa-btn:hover { background: rgba(255, 255, 255, 0.07); }
.dpa-btn:active { transform: scale(0.97); }
.dpa-btn[disabled] { opacity: 0.35; cursor: default; }
.dpa-btn-primary {
  background: var(--dpa-cta, var(--dpa-primary, #8b1a1a));
  color: var(--dpa-cta-text, #fff);
  border-color: transparent;
  margin-left: auto;
}
.dpa-btn-primary:hover {
  background: color-mix(in srgb, var(--dpa-cta, #8b1a1a) 85%, #fff);
}

@media (max-width: 600px) {
  .dpa-slide-icon { font-size: 3rem; }
  .dpa-slide-glyph { width: 84px; height: 84px; }
  .dpa-slide-glyph svg { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .dpa-slide, .dpa-slide-icon { transition: none !important; animation: none !important; }
}
