/* ==========================================================================
   Affichage mobile / tablette des grands visuels (dashboards, vidéos, fenêtres)
   Principe : jamais de visuel qui sort de l'écran, jamais de scroll interminable.
   - dashboards : aperçu compact (haut de l'interface) avec fondu, démo complète plus bas
   - vidéos / fenêtres : cadre complet, balayage lent de gauche à droite à fort grossissement
   ========================================================================== */
@keyframes kora-pan { from { transform: translateX(0); } to { transform: translateX(-47.4%); } }

/* — Hero : aperçu compact du dashboard — */
@media (max-width: 1100px) {
  .kh-dashboard-wrapper { max-height: 680px; overflow: hidden; }
  .kh-dashboard-wrapper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; z-index: 20; background: linear-gradient(to top, var(--pearl, #FAFAFA) 6%, rgba(250, 250, 250, 0)); }
  .kh-fan-container { min-height: 0; }
}
@media (max-width: 767px) { .kh-dashboard-wrapper { max-height: 540px; } }

/* — Démonstrations métier : fenêtre repliée + bouton — */
@media (max-width: 767px) {
  .demo-window-container { position: relative; max-height: 560px; overflow: hidden; }
  .demo-window-container.is-expanded { max-height: none; }
  .demo-window-container:not(.is-expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none; background: linear-gradient(to top, #fff 8%, rgba(255, 255, 255, 0)); }
  .kora-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 14px 0 0; border: 1px solid rgba(7, 7, 10, .16); border-radius: 10px; background: #fff; color: #07070A; font: 500 15px/1 "Polysans", Inter, sans-serif; cursor: pointer; }
  .kora-more:active { transform: scale(.98); }
}

/* — Vidéos : cadre complet, zoom lisible, balayage lent — */
@media (max-width: 767px) {
  .sol-video, .idn-frame { aspect-ratio: 1 / 1; border-radius: 22px; position: relative; }
  .sol-video video, .idn-frame video { width: 190%; max-width: none; height: 100%; margin-left: 0; object-fit: cover; transform: translateX(0); animation: kora-pan 15s ease-in-out infinite alternate; will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-video video, .idn-frame video { animation: none; width: 100%; height: auto; aspect-ratio: 1280 / 896; }
  .sol-video, .idn-frame { aspect-ratio: auto; }
}

/* — Section immersive : fenêtre complète balayée par le script — */
@media (max-width: 767px) {
  .imm-win, .imm-win.imm-b { width: 190%; left: 0; top: 6%; margin-top: 0; }
  .imm-a, .imm-b, .imm-c { left: 0; }
}
