/* Charte Morad Houmir : jetons dans /charte/mh-tokens.css (copie de la charte, ne pas modifier ici).
   Blanc #FFFFFF, béton #EDEDEA, encre #111111, graphite #4D4D49, orange #F44611.
   L'orange est un objet (bouton principal, aplat incliné), jamais du texte ; texte sur orange : encre.
   Anybody italique pour les phrases (questions, titres), Schibsted Grotesk pour tout le reste.
   Angles droits, aucune ombre, aucun dégradé. Un seul mouvement : l'aplat qui se pose (écran projeté). */
:root {
  --fond: var(--mh-fond);
  --surface: var(--mh-surface);
  --encre: var(--mh-encre);
  --graphite: var(--mh-graphite);
  --graphite-clair: var(--mh-base-graphite-clair);
  --orange: var(--mh-orange);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fond);
  color: var(--encre);
  font-family: var(--mh-texte);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phrase : Anybody italique, réglage « phrase » (108 / 800), « phrase étroite » (92 / 800) sur téléphone. */
.phrase, .p-phrase, .a-phrase, .e-phrase, .e-titre {
  font-family: var(--mh-titrage); font-style: italic; font-weight: 800; font-stretch: 108%;
  font-variation-settings: "wdth" 108, "wght" 800; font-synthesis: none;
  letter-spacing: -.01em; line-height: 1.1;
}
@media (max-width: 600px) {
  .phrase, .p-phrase, .a-phrase { font-stretch: 92%; font-variation-settings: "wdth" 92, "wght" 800; }
}

/* Boutons : angles droits, Schibsted 600. Primaire = orange, texte encre (seule action principale). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.2em; border-radius: 0;
  border: 2px solid var(--encre); background: var(--fond); color: var(--encre);
  font-family: var(--mh-texte); font-weight: 600; line-height: 1.1; text-decoration: none; text-align: center;
}
.btn[disabled] { cursor: not-allowed; background: var(--surface); border-color: var(--surface); color: var(--graphite); }
.btn-primaire { background: var(--orange); border-color: var(--orange); color: var(--mh-sur-aplat); }
.btn-fort { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.btn-discret { border-color: var(--surface); background: var(--surface); }
.btn-danger { border-style: dashed; }
.btn-lien { border: 0; background: none; padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: var(--mh-filet); }

/* Erreur : encre sur béton, filet encre (l'orange n'est jamais du texte, la charte n'a pas de rouge). */
.erreur { margin: 0; padding: .55em .8em; background: var(--surface); border-left: 4px solid var(--encre); color: var(--encre); font-weight: 600; }
.erreur:empty { display: none; }

/* Barres de résultats (écran et aperçu admin) : piste béton, remplissage encre. Aucune barre orange. */
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: .9em; }
.barre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25em .8em; align-items: end; }
.barre-label { font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.barre-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barre-val small { font-weight: 400; color: var(--graphite); margin-left: .35em; }
.barre-piste { grid-column: 1 / -1; height: .9em; background: var(--surface); overflow: hidden; }
.barre-rempli { height: 100%; width: 0; background: var(--encre); }
.insecable { white-space: nowrap; }
