@page {
  size: 148mm 210mm;
  margin: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: #d9d6d0;
}

body {
  margin: 0;
}

.livre {
  display: grid;
  grid-template-columns: repeat(2, 148mm);
  justify-content: center;
  row-gap: 8mm;
  padding: 10mm 0;
}

.page {
  position: relative;
  width: 148mm;
  height: 210mm;
  overflow: hidden;
  background: var(--fond-page);
}

.page.droite:first-child {
  grid-column: 2;
}

@media screen {
  .livre {
    zoom: var(--echelle, 1);
  }
}

@media screen and (max-width: 330mm) {
  .livre {
    grid-template-columns: 148mm;
  }

  .page.droite:first-child {
    grid-column: 1;
  }
}

.bloc {
  position: absolute;
  margin: 0;
}

.bloc-texte {
  overflow: visible;
}

.bloc-texte.en-bas {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bloc-texte p,
.bloc-texte .ligne-tab {
  hyphens: none;
  overflow-wrap: normal;
}

.bloc-texte > :first-child,
.bloc-texte > div > :first-child {
  margin-top: 0;
}

.bloc-texte > :last-child,
.bloc-texte > div > :last-child {
  margin-bottom: 0;
}

.bloc-texte > .titre-courant {
  margin-top: -0.477mm;
}

p.coupe {
  text-align-last: justify;
  margin-bottom: 0;
}

p.suite {
  text-indent: 0;
  margin-top: 0;
}


.ligne-tab {
  display: table;
  width: 100%;
}

.ligne-tab > span {
  display: table-cell;
}

.ligne-tab > .numero {
  width: 7.75mm;
  text-align: right;
  vertical-align: bottom;
}

.bloc-texte table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin: 2.1pt 0 4.9pt 0;
}

.bloc-texte td {
  padding: 1.34mm 1.41mm;
  border-bottom: 0.35pt solid var(--filet);
  vertical-align: top;
}

.bloc-texte td p {
  margin: 0;
}

.aplat,
.cadre,
.emplacement {
  display: block;
}

.cadre {
  border-style: solid;
  border-radius: 0.85mm;
}

.emplacement {
  border: 0.21mm dashed var(--bleu-trait);
}

.filet-horizontal {
  position: absolute;
  height: 0;
  border-top: 0.21mm solid var(--filet);
}

.filet-vertical {
  position: absolute;
  width: 0.18mm;
}

img.bloc {
  object-fit: cover;
}

img.bloc.fusion {
  mix-blend-mode: multiply;
}

.trait {
  position: absolute;
  left: 0;
  top: 0;
  width: 148mm;
  height: 210mm;
  overflow: visible;
}

@media print {
  html {
    background: none;
  }

  .livre {
    display: block;
    padding: 0;
  }

  .page {
    break-after: page;
  }
}
