/* Reset & Base Styles - Whisp It */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* App installee iOS (barre d etat translucide + viewport-fit=cover) : avec height: 100%,
   WebKit decale l affichage de la hauteur de la barre d etat et laisse une bande blanche
   en bas (et remonte les elements fixes). La hauteur en vh couvre l ecran reel.
   Limite au mode installe : dans Safari, 100vh passerait sous la barre d adresse. */
@media (display-mode: standalone) {
  html,
  body {
    height: 100vh;
  }
}

/* Conteneur Mobile Responsive occupant l espace */
.app-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  flex: 1;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  padding: 10px 16px 0 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
}

/* Centrage uniquement sur la vue auth quand elle est seule */
body:has(.auth-card:not([style*="display: none"])) {
  justify-content: center;
}

/* Boutons et inputs sans ombres */
button,
input {
  font-family: inherit;
  box-shadow: none !important;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
}

/* ==================================================== */
/* STRUCTURE DU RUBAN PANORAMIQUE CONTINU (VIEWPAGER)   */
/* ==================================================== */

.app-main-workspace {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-track {
  display: flex;
  width: 100%;
  height: 100%;
  flex: 1;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  align-items: stretch;
}

.view-slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  opacity: 0.25;
  transform: scale(0.975);
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.view-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .app-track {
    transition: none !important;
  }
  .view-slide {
    transition: none !important;
    transform: none !important;
  }
}

