/* Aide MaintSoftp — mode slides (pas de scroll page) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#app-main:has(.help-page-root) {
  overflow: hidden !important;
}

.help-page-root {
  height: calc(100dvh - 3.75rem) !important;
  max-height: calc(100dvh - 3.75rem) !important;
  padding: 0.5rem 0.65rem !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background:
    radial-gradient(ellipse 70% 40% at 8% -10%, rgba(59, 130, 246, 0.12), transparent 55%),
    #0b0f16;
}

.help-page.help-deck {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
}

.help-deck__bar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #151b24;
  border: 1px solid #2a3544;
  border-radius: 12px;
}

.help-deck__brand {
  flex: 1 1 10rem;
  min-width: 0;
}

.help-deck__eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.help-deck__title {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-deck__search {
  flex: 1 1 12rem;
  max-width: 18rem;
}

.help-deck__search .form-control {
  min-height: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
}

.help-deck__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.help-deck__btn {
  width: 2.2rem !important;
  min-width: 2.2rem !important;
  height: 2.2rem !important;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
}

.help-deck__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.help-deck__counter {
  font-size: 0.75rem;
  font-weight: 650;
  color: #94a3b8;
  min-width: 3.5rem;
  text-align: center;
}

.help-deck__dots {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
}

.help-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #334155;
  cursor: pointer;
  transition: width 0.15s, background 0.15s;
}

.help-dot.is-active {
  width: 1.1rem;
  background: #3b82f6;
}

.help-deck__viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border: 1px solid #2a3544;
  border-radius: 12px;
  background: #12171f;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.help-deck__viewport::-webkit-scrollbar {
  display: none;
}

.help-deck__track {
  display: flex;
  height: 100%;
}

.help-slide {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.help-slide-inner {
  height: 100%;
  overflow: hidden;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-sizing: border-box;
}

.help-slide-menu {
  margin: 0;
  font-size: 0.75rem;
}

.help-lead {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-sit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.55rem;
  overflow: hidden;
}

.help-sit-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  padding: 0.75rem 0.85rem;
  background: #151b24;
  border: 1px solid #2a3544;
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.help-sit-card:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.help-sit-card__title {
  font-weight: 650;
  font-size: 0.88rem;
}

.help-sit-card__hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

.help-figure--slide {
  margin: 0;
  flex: 0 0 auto;
  max-height: 38%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #2a3544;
  background: #0b0f16;
}

.help-figure--slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 11rem;
  object-fit: cover;
  object-position: top center;
}

.help-figure--slide figcaption,
.help-figure__cap {
  display: block;
  padding: 0.35rem 0.55rem 0.45rem;
  font-size: 0.68rem;
  color: #94a3b8;
  border-top: 1px solid #2a3544;
  background: #0f1419;
}

.help-slide-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  scrollbar-width: thin;
}

.help-slide-body .help-steps,
.help-slide-body .help-bullets,
.help-slide-body ol,
.help-slide-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.help-slide-body li {
  margin: 0.2rem 0;
}

.help-example {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
}

.help-example__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
}

.help-example__title {
  display: block;
  margin: 0.2rem 0 0.35rem;
  color: #f1f5f9;
  font-size: 0.88rem;
}

.help-support-slide .help-support__form {
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}

.help-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.help-field em {
  color: #f87171;
  font-style: normal;
}

.help-support__hints {
  margin: 0;
  padding-left: 1.1rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.help-copyright {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  color: #64748b;
}

@media (max-width: 720px) {
  .help-page-root {
    height: calc(100dvh - 3.25rem) !important;
    max-height: calc(100dvh - 3.25rem) !important;
  }
  .help-deck__bar {
    gap: 0.4rem;
  }
  .help-deck__search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }
  .help-figure--slide img {
    max-height: 7.5rem;
  }
}
