/* ============ Base : reset, fond, typographie globale ============ */

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  /* Hauteur DÉFINIE (pas seulement min-height) : en portrait mobile, le livre
     vit dans .book-region (container-type:size) dont la hauteur vient d'un
     flex:1 en colonne. Un flex:1 ne compte PAS comme taille définie pour les
     requêtes de conteneur → cqh = 0 → .book-stage (min(90cqw,180cqh)) tombe à 0
     et le livre disparaît. Fixer la hauteur du body rend la cascade définie. */
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: itc-avant-garde-gothic-pro, sans-serif;
  font-weight: 400;
  color: #505050;
  background: #2b2b2b url(../images/fabric-bg-grey-uhd.jpg) center / cover no-repeat;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
}

/* Accessible mais invisible (titre H1 : le titre est dessiné sur la couverture) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid #838383;
  outline-offset: 2px;
  border-radius: 0.25cqw;
}
