/* =============================================================================
   reset.css — Remise a zero ciblee pour Innled QR v1.19.3
   -----------------------------------------------------------------------------
   Box-sizing universel, marges reset, font-inherit sur les controles.
   Doit etre charge apres tokens.css et avant tout autre fichier de style.
   Ne rien ajouter ici qui n'est pas un reset pur : couleurs et dimensions
   vont dans shell.css ou components.css.
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--cream-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: inherit;
  line-height: 1.2;
}

p, ul, ol, dl, figure, blockquote, pre {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
}

img, svg, video, picture {
  display: block;
  max-width: 100%;
}

/* Controles : police et taille heritees, pas de style navigateur parasite */
button, input, select, optgroup, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

input, textarea {
  /* Evite le zoom iOS sur les inputs < 16px */
  font-size: max(16px, 1em);
}

/* Sur desktop on repasse a la taille normale */
@media (min-width: 641px) {
  input, textarea { font-size: var(--fs-body); }
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Supprime les marges et padding que app.css injecte globalement sur
   les controles de formulaire (heritage de l'ancienne charte). */
.app-frame input,
.app-frame select,
.app-frame textarea {
  margin-bottom: 0;
}

.app-frame input[type="checkbox"],
.app-frame input[type="radio"] {
  width: auto;
  min-width: unset;
  padding: 0;
  font-size: inherit;
}

.app-frame label {
  margin-bottom: 0;
}
