/* ============================================================
   GéoClic — visite guidée de la page démonstration
   ============================================================ */

.tour-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tour-start:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .72);
  transform: translateY(-1px);
}
.tour-start:focus-visible {
  outline: 3px solid #2cc7d9;
  outline-offset: 3px;
}

.demo-tour {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 1200;
  width: min(560px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(11, 99, 206, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 15, 35, .3);
  color: #0b2149;
  transform: translateX(-50%);
}
.demo-tour[hidden] { display: none; }

.demo-tour__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.demo-tour__progress {
  color: #0b63ce;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.demo-tour__close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf4fd;
  color: #0b63ce;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.demo-tour__close:hover { background: #dfeafb; }
.demo-tour__close:focus-visible,
.demo-tour__prev:focus-visible,
.demo-tour__next:focus-visible {
  outline: 3px solid rgba(11, 99, 206, .45);
  outline-offset: 3px;
}
.demo-tour__title {
  margin: 10px 0 6px;
  color: #08285a;
  font-size: 1.12rem;
  line-height: 1.3;
}
.demo-tour__text {
  margin: 0;
  color: #5f718c;
  font-size: .92rem;
  line-height: 1.55;
}
.demo-tour__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}
.demo-tour__prev,
.demo-tour__next {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .85rem;
  font-weight: 850;
  cursor: pointer;
}
.demo-tour__prev {
  background: #edf4fd;
  color: #0b63ce;
}
.demo-tour__prev:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.demo-tour__next {
  background: #0b63ce;
  color: #fff;
}
.demo-tour__next:hover { background: #0757bd; }
.demo-tour__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tour-highlight {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  outline: 3px solid #2cc7d9;
  outline-offset: 6px;
  box-shadow: 0 0 0 10px rgba(44, 199, 217, .16), 0 24px 60px rgba(2, 15, 35, .22);
}

@media (max-width: 768px) {
  .tour-start {
    width: 100%;
  }
  .demo-tour {
    top: 74px;
    width: calc(100vw - 20px);
    padding: 14px 15px;
    border-radius: 15px;
  }
  .demo-tour__title { font-size: 1rem; }
  .demo-tour__text { font-size: .86rem; }
  .demo-tour__actions { justify-content: stretch; }
  .demo-tour__actions button { flex: 1; }
  .tour-highlight { border-radius: 16px; outline-offset: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-start,
  .demo-tour,
  .tour-highlight {
    transition: none;
  }
}
