/* Reset & Base Styles - Whisp It */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  min-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;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Alignement propre depuis le haut de l ecran */
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* Conteneur Mobile Responsive occupant l espace */
.app-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  flex: 1;
}

/* 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;
}
