/* ============================================================
   ABSVE RESPONSIVE — tablet/mobile simplification (Document B §8).
   ============================================================ */

@media (max-width: 1024px) {
  /* No pinned scenes on tablet/mobile — home.js already skips pinning
     below 1024px; these rules guarantee layout even if classes remain. */
  .absve-svc-pinned { height: auto; }
  .absve-svc-pinned .elementor-bg-section {
    position: relative !important;
    inset: auto;
    width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 18px;
  }
  .absve-svc-progress { display: none; }
  .absve-motif { opacity: 0.4; width: clamp(120px, 30vw, 200px); }
}

@media (max-width: 767px) {
  :root {
    --abs-section: clamp(2.6rem, 8vw, 4rem);
  }
  /* Type scale tightens naturally via clamp(); ensure hero readability. */
  body.absve-on h1 { letter-spacing: -0.01em; }

  /* Cards: full-bleed friendly, no tilt (touch devices skip tilt in JS). */
  body.absve-on .absve-card,
  body.absve-on [data-absve-role="card"] { border-radius: var(--abs-radius); }

  /* Trust rail: slightly smaller depth variance. */
  body.absve-page-17 .marquee-track img:nth-child(3n) { transform: scale(0.97) translateY(3px); }

  /* Form pages: spacing prioritized for thumb reach. */
  .absve-form-card { padding: 16px 14px; }
  body.absve-family-form .forminator-custom-form .forminator-button {
    min-height: 46px;
  }

  /* Motifs mostly hidden on phones — content first. */
  .absve-motif { display: none; }

  /* Atmosphere canvases thin out automatically (fewer particles in JS);
     hide entirely on very small screens. */
  @media (max-width: 380px) {
    .absve-particles { display: none; }
  }
}

/* Touch devices: no hover-dependent information anywhere (hover adds
   polish only); active states give tap feedback. */
@media (hover: none) {
  body.absve-on .elementor-button:active,
  body.absve-on .glow-btn-m a:active,
  body.absve-on .forminator-button:active {
    transform: scale(0.97);
  }
}
