/* Tour d'accueil "Mon espace" — modal multi-slides */

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.tour-overlay.is-open { opacity: 1; }

.tour-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 30px 28px 20px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #102033;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}
.tour-overlay.is-open .tour-modal { transform: translateY(0) scale(1); }

.tour-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.tour-close:hover { background: #f1f5f9; color: #102033; }

.tour-slide { text-align: center; min-height: 196px; }

.tour-icon {
  width: 64px;
  height: 64px;
  margin: 6px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
}

.tour-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.tour-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto;
  max-width: 360px;
}
.tour-text strong { color: #102033; }

.tour-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 22px 0 18px;
}
.tour-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.15s ease, width 0.15s ease;
}
.tour-dot.is-active { width: 20px; border-radius: 4px; background: #2563eb; }

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tour-prev {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  padding: 10px 6px;
}
.tour-prev:hover { color: #102033; }
.tour-prev[hidden] { visibility: hidden; display: inline-block; }

.tour-next {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
  border-radius: 10px;
  padding: 11px 22px;
  transition: background 0.15s ease;
}
.tour-next:hover { background: #1d4ed8; }

.tour-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  text-align: center;
}
.tour-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.tour-dismiss input { width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer; }
.tour-dismiss:hover { color: #102033; }

@media (max-width: 520px) {
  .tour-modal { padding: 26px 20px 16px; border-radius: 16px; }
  .tour-title { font-size: 18px; }
}
