/**
 * Fichier  : assets/css/mobile-flow.css
 * Auteur   : KREMER Régis
 * Version  : 2.6.78
 * Date     : 2026-07-17
 * Description : Socle visuel mobile/tablette commun — flows, cartes, volets, détails, dialogues et safe areas.
 *
 * Changelog :
 *   v2.6.78 (2026-07-17) — MOBILE FLOW FOUNDATION2 : création du socle commun sans refonte métier.
 */
/* ================================================================
   MageStock Mobile Flow Foundation
   Mobile-first : 600 px tablette, 900 px tablette paysage,
   1200 px ordinateur. Les composants sont opt-in via préfixe ms-.
   ================================================================ */

:root {
  --ms-visual-height: 100dvh;
  --ms-visual-width: 100vw;
  --ms-visual-offset-top: 0px;
  --ms-visual-bottom-gap: 0px;
  --ms-keyboard-height: 0px;
  --ms-sticky-actions-height: 0px;
  --ms-safe-top: var(--safe-top, env(safe-area-inset-top, 0px));
  --ms-safe-bottom: var(--safe-bottom, env(safe-area-inset-bottom, 0px));
  --ms-safe-left: var(--safe-left, env(safe-area-inset-left, 0px));
  --ms-safe-right: var(--safe-right, env(safe-area-inset-right, 0px));
  --ms-bottom-nav-space: calc(var(--bottom-nav-height, 64px) + var(--ms-safe-bottom));
  --ms-touch-target: max(var(--touch-min, 48px), 44px);
  --ms-flow-max-width: 760px;
  --ms-detail-max-width: 980px;
  --ms-panel-max-width: 560px;
  --ms-panel-transition: 180ms var(--ease, ease);
}

.ms-sr-only {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

html.ms-overlay-open,
body.ms-overlay-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html[data-ms-pointer="coarse"] button,
html[data-ms-pointer="coarse"] [role="button"],
html[data-ms-pointer="coarse"] input,
html[data-ms-pointer="coarse"] select,
html[data-ms-pointer="coarse"] textarea {
  touch-action: manipulation;
}

/* Le clavier logiciel remplace temporairement la navigation principale.
   Les pages doivent utiliser data-ms-sticky-actions pour leurs actions fixes. */
body.ms-soft-keyboard-open .bottom-nav,
body.ms-soft-keyboard-open #scrollTopProgress,
body.ms-soft-keyboard-open #scrollTopBtn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(110%) !important;
}

body.ms-soft-keyboard-open .main-content {
  padding-bottom: max(16px, var(--ms-safe-bottom)) !important;
}

/* ================================================================
   Focus et états accessibles
   ================================================================ */
.ms-flow :focus-visible,
.ms-panel :focus-visible,
.ms-entity-card :focus-visible,
.ms-detail-page :focus-visible,
.ms-disclosure:focus-visible,
[data-ms-sticky-actions] :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue, #2563eb) 72%, white 28%);
  outline-offset: 2px;
}

@supports not (color: color-mix(in srgb, black, white)) {
  .ms-flow :focus-visible,
  .ms-panel :focus-visible,
  .ms-entity-card :focus-visible,
  .ms-detail-page :focus-visible,
  .ms-disclosure:focus-visible,
  [data-ms-sticky-actions] :focus-visible {
    outline-color: var(--blue, #2563eb);
  }
}

/* ================================================================
   1. Assistant d'étapes réutilisable
   ================================================================ */
.ms-flow {
  --ms-flow-progress: 0%;
  width: 100%;
  min-width: 0;
  max-width: var(--ms-flow-max-width);
  margin-inline: auto;
  padding-bottom: calc(var(--ms-sticky-actions-height) + var(--ms-safe-bottom) + 16px);
}

.ms-flow__header,
[data-ms-flow-header] {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px max(14px, var(--ms-safe-left)) 12px max(14px, var(--ms-safe-right));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ms-flow__kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ms-flow__title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.ms-flow__description {
  margin: 0;
  color: var(--text-secondary, var(--text-muted));
  font-size: 14px;
  line-height: 1.5;
}

.ms-flow__progress,
[data-ms-flow-progress] {
  position: relative;
  min-height: 5px;
  overflow: hidden;
  background: var(--bg-elevated, var(--bg-body));
  border: 1px solid var(--border);
}

.ms-flow__progress::after,
[data-ms-flow-progress]::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ms-flow-progress, 0%);
  background: var(--blue, #2563eb);
  transition: width var(--ms-panel-transition);
}

.ms-flow__steps,
[data-ms-flow-indicators] {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-flow__indicator,
[data-ms-flow-indicator] {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 6px 4px;
  border: 0;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.ms-flow__indicator.is-current,
[data-ms-flow-indicator][data-ms-flow-state="current"] {
  border-bottom-color: var(--blue, #2563eb);
  color: var(--blue, #2563eb);
}

.ms-flow__indicator.is-complete,
[data-ms-flow-indicator][data-ms-flow-state="complete"] {
  border-bottom-color: var(--green, #16a34a);
  color: var(--green, #16a34a);
}

.ms-flow__indicator:disabled,
[data-ms-flow-indicator]:disabled {
  opacity: 1;
  cursor: default;
}

.ms-flow__counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.ms-flow__panel,
[data-ms-flow-step] {
  min-width: 0;
  padding: 18px max(14px, var(--ms-safe-left)) 22px max(14px, var(--ms-safe-right));
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

[data-ms-flow-step][hidden] {
  display: none !important;
}

.ms-flow__panel > :first-child,
[data-ms-flow-step] > :first-child {
  margin-top: 0;
}

.ms-flow__panel > :last-child,
[data-ms-flow-step] > :last-child {
  margin-bottom: 0;
}

.ms-flow__section {
  display: grid;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border-light, var(--border));
}

.ms-flow__section:last-child {
  border-bottom: 0;
}

.ms-flow__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.ms-flow__actions .btn,
.ms-flow [data-ms-flow-next],
.ms-flow [data-ms-flow-back],
.ms-flow [data-ms-flow-go] {
  min-height: var(--ms-touch-target);
  justify-content: center;
}

/* ================================================================
   2. Cartes métier natives
   ================================================================ */
.ms-entity-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.ms-entity-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue, #2563eb);
  box-shadow: var(--shadow-sm, none);
}

.ms-entity-card[data-state="success"],
.ms-entity-card[data-state="complete"] { border-left-color: var(--green, #16a34a); }
.ms-entity-card[data-state="warning"] { border-left-color: var(--orange, #f59e0b); }
.ms-entity-card[data-state="danger"],
.ms-entity-card[data-state="error"] { border-left-color: var(--red, #dc2626); }
.ms-entity-card[data-state="muted"] { border-left-color: var(--text-muted); }

.ms-entity-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ms-entity-card__identity {
  min-width: 0;
}

.ms-entity-card__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.ms-entity-card__title {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.ms-entity-card__meta {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.ms-entity-card__badge {
  flex: 0 0 auto;
  max-width: 46%;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated, var(--bg-body));
  color: var(--text-secondary, var(--text-primary));
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-entity-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.ms-entity-card__field {
  min-width: 0;
}

.ms-entity-card__field dt {
  margin: 0 0 2px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ms-entity-card__field dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.ms-entity-card__content {
  min-width: 0;
  color: var(--text-secondary, var(--text-primary));
  font-size: 13px;
  line-height: 1.5;
}

.ms-entity-card__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light, var(--border));
}

.ms-entity-card__actions .btn,
.ms-entity-card__actions button,
.ms-entity-card__actions a {
  min-height: var(--ms-touch-target);
  justify-content: center;
}

/* ================================================================
   3. Volets d'action, tiroirs de filtres et page de détail
   ================================================================ */
.ms-panel-overlay {
  position: fixed;
  z-index: 460;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ms-panel-transition), visibility var(--ms-panel-transition);
}

.ms-panel-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ms-panel {
  width: 100%;
  min-width: 0;
  max-height: calc(var(--ms-visual-height) - var(--ms-visual-offset-top));
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--r-lg, 10px) var(--r-lg, 10px) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px);
  transition: transform var(--ms-panel-transition);
  overscroll-behavior: contain;
}

.ms-panel-overlay.is-open .ms-panel {
  transform: translateY(0);
}

.ms-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 60px;
  padding: 12px max(12px, var(--ms-safe-right)) 12px max(14px, var(--ms-safe-left));
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.ms-panel__header-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ms-panel__title {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.ms-panel__description {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.ms-panel__close {
  flex: 0 0 auto;
  width: var(--ms-touch-target);
  height: var(--ms-touch-target);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
}

.ms-panel__close:hover,
.ms-panel__close:active {
  border-color: var(--border);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.ms-panel__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ms-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px max(14px, var(--ms-safe-right)) 18px max(14px, var(--ms-safe-left));
}

.ms-panel__footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px max(12px, var(--ms-safe-right)) calc(10px + var(--ms-safe-bottom)) max(12px, var(--ms-safe-left));
  border-top: 1px solid var(--border);
  background: var(--bg-elevated, var(--bg-card));
}

.ms-panel__footer .btn,
.ms-panel__footer button {
  min-height: var(--ms-touch-target);
  justify-content: center;
}

.ms-panel--page {
  height: calc(var(--ms-visual-height) - var(--ms-visual-offset-top));
  max-height: calc(var(--ms-visual-height) - var(--ms-visual-offset-top));
  border: 0;
  border-radius: 0;
}

.ms-panel--page .ms-panel__header {
  padding-top: calc(10px + var(--ms-safe-top));
}

.ms-panel--drawer .ms-panel__body {
  padding-bottom: calc(18px + var(--ms-safe-bottom));
}

/* ================================================================
   4. Page de détail et sections repliables
   ================================================================ */
.ms-detail-page,
[data-ms-detail-page] {
  width: 100%;
  min-width: 0;
  max-width: var(--ms-detail-max-width);
  margin-inline: auto;
  padding-bottom: calc(var(--ms-sticky-actions-height) + var(--ms-safe-bottom) + 20px);
}

.ms-detail-page__header {
  display: grid;
  grid-template-columns: var(--ms-touch-target) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px max(12px, var(--ms-safe-right)) 10px max(12px, var(--ms-safe-left));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ms-detail-page__back,
[data-ms-detail-back] {
  width: var(--ms-touch-target);
  min-width: var(--ms-touch-target);
  height: var(--ms-touch-target);
  display: grid;
  place-items: center;
}

.ms-detail-page__identity {
  min-width: 0;
}

.ms-detail-page__title {
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-detail-page__meta {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-detail-section {
  margin: 10px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ms-disclosure,
[data-ms-disclosure] {
  width: 100%;
  min-height: var(--ms-touch-target);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(14px, var(--ms-safe-right)) 12px max(14px, var(--ms-safe-left));
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.ms-disclosure::after,
[data-ms-disclosure]::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ms-panel-transition);
}

.ms-disclosure[aria-expanded="true"]::after,
[data-ms-disclosure][aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.ms-detail-section__body {
  padding: 0 max(14px, var(--ms-safe-right)) 16px max(14px, var(--ms-safe-left));
  color: var(--text-secondary, var(--text-primary));
}

.ms-detail-section__body[hidden] {
  display: none !important;
}

/* ================================================================
   5. Barre d'actions sûre clavier / safe areas
   ================================================================ */
.ms-sticky-actions,
[data-ms-sticky-actions] {
  position: sticky;
  z-index: 86;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 10px max(12px, var(--ms-safe-right)) calc(10px + var(--ms-safe-bottom)) max(12px, var(--ms-safe-left));
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  background: color-mix(in srgb, var(--bg-card) 96%, transparent);
  box-shadow: var(--shadow-up, 0 -4px 20px rgba(0,0,0,.12));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ms-sticky-actions .btn,
[data-ms-sticky-actions] .btn,
.ms-sticky-actions button,
[data-ms-sticky-actions] button {
  min-height: var(--ms-touch-target);
  justify-content: center;
}

body.ms-soft-keyboard-open .ms-sticky-actions[data-ms-keyboard-behavior="hide"],
body.ms-soft-keyboard-open [data-ms-sticky-actions][data-ms-keyboard-behavior="hide"] {
  display: none !important;
}

body.ms-soft-keyboard-open .ms-sticky-actions:not([data-ms-keyboard-behavior="hide"]),
body.ms-soft-keyboard-open [data-ms-sticky-actions]:not([data-ms-keyboard-behavior="hide"]) {
  bottom: var(--ms-visual-bottom-gap);
  padding-bottom: 10px;
}

/* ================================================================
   6. Renforcement du dialogue historique sans modifier ses flux
   ================================================================ */
#modalBox[role="dialog"]:focus {
  outline: none;
}

#modalOverlay[aria-hidden="true"] {
  pointer-events: none;
}

#modalOverlay[aria-hidden="false"] {
  pointer-events: auto;
}

#modalBox [hidden] {
  display: none !important;
}

/* ================================================================
   7. Tablette portrait et petites tablettes
   ================================================================ */
@media (min-width: 600px) {
  .ms-flow {
    padding: 18px 18px calc(var(--ms-sticky-actions-height) + 24px);
  }

  .ms-flow__header,
  [data-ms-flow-header],
  .ms-flow__panel,
  [data-ms-flow-step] {
    border: 1px solid var(--border);
  }

  .ms-flow__header,
  [data-ms-flow-header] {
    padding: 18px 20px 16px;
  }

  .ms-flow__panel,
  [data-ms-flow-step] {
    margin-top: 10px;
    padding: 22px;
  }

  .ms-flow__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-flow__actions [data-ms-flow-next]:last-child,
  .ms-flow__actions .btn-primary:last-child {
    grid-column: 2;
  }

  .ms-entity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ms-panel-overlay--sheet {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .ms-panel--sheet {
    width: min(100%, var(--ms-panel-max-width));
    max-height: min(760px, calc(var(--ms-visual-height) - 48px));
    border: 1px solid var(--border);
    border-radius: var(--r-lg, 10px);
    transform: translateY(12px) scale(.985);
  }

  .ms-panel-overlay.is-open .ms-panel--sheet {
    transform: translateY(0) scale(1);
  }

  .ms-panel-overlay--drawer {
    align-items: stretch;
    justify-content: flex-end;
  }

  .ms-panel--drawer {
    width: min(88vw, 440px);
    height: 100%;
    max-height: 100%;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    transform: translateX(100%);
  }

  .ms-panel-overlay.is-open .ms-panel--drawer {
    transform: translateX(0);
  }

  .ms-panel__footer {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .ms-detail-page,
  [data-ms-detail-page] {
    padding: 18px 18px calc(var(--ms-sticky-actions-height) + 28px);
  }

  .ms-detail-page__header,
  .ms-detail-section {
    border: 1px solid var(--border);
  }

  .ms-detail-section {
    margin: 12px 0;
  }

  .ms-sticky-actions,
  [data-ms-sticky-actions] {
    margin-inline: auto;
    max-width: var(--ms-flow-max-width);
    border: 1px solid var(--border);
  }
}

/* ================================================================
   8. Tablette paysage
   ================================================================ */
@media (min-width: 900px) {
  .ms-flow__steps,
  [data-ms-flow-indicators] {
    gap: 10px;
  }

  .ms-flow__indicator,
  [data-ms-flow-indicator] {
    min-height: 44px;
    font-size: 12px;
  }

  .ms-entity-card__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ms-panel--page {
    width: min(100%, 900px);
    height: min(900px, calc(var(--ms-visual-height) - 40px));
    max-height: calc(var(--ms-visual-height) - 40px);
    margin: 20px auto;
    border: 1px solid var(--border);
    border-radius: var(--r-lg, 10px);
  }

  .ms-panel-overlay--page {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .ms-panel--page .ms-panel__header {
    padding-top: 12px;
  }
}

/* ================================================================
   9. Ordinateur
   Les composants restent disponibles, mais ne remplacent pas les tableaux.
   ================================================================ */
@media (min-width: 1200px) {
  .ms-flow__header,
  [data-ms-flow-header],
  .ms-flow__panel,
  [data-ms-flow-step],
  .ms-detail-page__header,
  .ms-detail-section,
  .ms-entity-card {
    border-radius: var(--r-lg, 10px);
  }

  .ms-entity-list[data-ms-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ms-panel--drawer {
    width: min(34vw, 480px);
  }
}

/* Paysage tactile de faible hauteur */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 640px) {
  .ms-flow__header,
  [data-ms-flow-header] {
    padding-block: 8px;
    gap: 6px;
  }

  .ms-flow__description,
  .ms-panel__description {
    display: none;
  }

  .ms-flow__panel,
  [data-ms-flow-step],
  .ms-panel__body {
    padding-block: 10px;
  }

  .ms-panel__header {
    min-height: 52px;
    padding-block: 6px;
  }

  .ms-panel__footer {
    padding-block: 6px;
  }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .ms-flow__progress::after,
  [data-ms-flow-progress]::after,
  .ms-panel-overlay,
  .ms-panel,
  .ms-disclosure::after,
  [data-ms-disclosure]::after,
  .bottom-nav,
  #scrollTopProgress,
  #scrollTopBtn {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Contraste forcé */
@media (forced-colors: active) {
  .ms-flow__progress::after,
  [data-ms-flow-progress]::after {
    background: Highlight;
  }

  .ms-entity-card,
  .ms-panel,
  .ms-detail-section,
  .ms-sticky-actions,
  [data-ms-sticky-actions] {
    border: 1px solid CanvasText;
    box-shadow: none;
  }
}

/* Impression : composants d'interaction masqués */
@media print {
  .ms-panel-overlay,
  .ms-sticky-actions,
  [data-ms-sticky-actions],
  .ms-flow__actions,
  .ms-entity-card__actions,
  [data-ms-open-panel] {
    display: none !important;
  }

  [data-ms-flow-step] {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
  }
}
