/* ============================================================================
   VENTILO AI - COUCHE 2/4 : BASE
   ----------------------------------------------------------------------------
   Le HTML nu : remise a zero, typo et couleurs de base. Aucune classe de
   composant ici, uniquement des selecteurs d'element (plus les deux
   utilitaires d'accessibilite). Remplace Bootstrap, retire le 27/09/2026 :
   seules les regles de sa remise a zero dont la page a besoin sont reprises.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Fond du theme aussi sur <html> : les zones de rebond et la barre
     d'onglets de Safari le reprennent (clair en theme clair). */
  background: var(--v-bg);
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--v-font);
  font-size: var(--v-fs-body);
  line-height: var(--v-lh-body);
  color: var(--v-text);
  background: var(--v-bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Texte selectionne : l'accent orange, texte blanc. */
::selection {
  background: var(--v-primary);
  color: var(--v-on-primary);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--v-text);
  text-wrap: balance;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

strong, b {
  font-weight: bolder;
}

a {
  color: inherit;
  text-decoration: underline;
}

img, svg, video {
  vertical-align: middle;
}

button, input {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  border-radius: 0;
  text-transform: none;
}

button:not(:disabled) {
  cursor: pointer;
}

summary {
  display: list-item;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* Masque visuellement, mais lu par les lecteurs d'ecran. */
.visually-hidden {
  position: absolute !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;
}

/* Mouvement reduit : aucune transition ni animation, nulle part. Les etats
   (enfonce, ouvert, selectionne) restent, ils s'affichent sans transition. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
