/* Pages de lecture (mentions, confidentialité, conditions, suppression).
   Colonne d'environ 70 caractères, titres entiers, cibles tactiles ≥ 44 px.
   Chargé après app-shell.css. Pas de glissement horizontal. */

html {
  overflow-x: clip;
}

body {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow-x: clip;
  overflow-wrap: break-word;
  touch-action: pan-y;
}

html.as-shell body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow-x: clip;
}

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

.lecture {
  width: min(100%, 70ch);
  max-width: 70ch;
  margin-inline: auto;
}

.lecture h1,
.lecture h2 {
  overflow-wrap: break-word;
  line-height: 1.3;
  max-width: 100%;
}

.lecture h1 {
  font-size: clamp(1.35rem, 4.5vw, 1.8rem);
}

/* Le titre de l'en-tête ne doit ni être coupé ni passer sous le bouton retour. */
html.as-shell .as-header-title {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: break-word;
  line-height: 1.25;
}

.lecture a.as-legacy-back,
.lecture .btn,
.lecture button {
  box-sizing: border-box;
  min-height: 44px;
}

.lecture a.as-legacy-back {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

@media (max-width: 900px) {
  html.as-shell .as-header-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}
