:root {
  --rem: 11pt;
  --width: 100%;
}

#toc-print {
 clear: both;
 display: block;
 width: 90%;
}

#toc-print a[href^="#"]::after {
  content: " p. " target-counter(attr(href), page);
  float: right;
}

html {
    font-size: 11px;
}

body, article, .pagedjs_pages .pagedjs_page {
    margin: 0;
    padding: 0;
    background-color: white;
}

.sous-titre .couv-logos {
  display: block !important;
  max-width: 80%;
  margin-top: 15rem;
}

.sous-titre .couv-aufo {
  display: block !important;
  max-width: 120px;
  margin-top: 20rem;
}

ul.navigation {
    list-style-type: none;
    font-size: 1.4rem;
}

main {
  width: 100%;
}

aside, .sidenote, main .marge {
  position: static;
  width: 90%;
  background-color: #D3D3D3;
  display: block;
  margin: .5rem 0 1rem;
  padding: 0 .6rem;
  border-radius: 4px;
  overflow: hidden;
  border-left: .4rem solid #696969;
  padding: 0 0 0 1rem;
}

nav, .pagination, #gitlab-issue-button {
  display: none;
}

figure > img:only-of-type, figure > svg:only-of-type, img {
  max-width: 90%;
  display: block;
  clear: both;
}

details {
  overflow: visible;
}

   
    h1:first-of-type {
        text-align: right;
        font-weight: 900;
	font-size: 3rem;
    }

    .sous-titre p {
        text-align: right;
        font-weight: 900;
	font-size: 1.2rem;
        page-break-after: always;
    }

    .ours {
        page-break-after: always;
	margin-top: 30rem;
    }

    p:first-of-type span {
        display: block;
        font-weight: 300;
	font-size: 1rem;
        margin-top: 2rem;
    }

    h1:not(:first-of-type) {
        page-break-before: always;
        margin-bottom: 2rem;
        font-weight: 900 !important;
    }

    ul, ol, details {
        page-break-inside: auto !important;
        display: visible !important;
    }

    li {
        page-break-inside: avoid;
        page-break-after: auto;
    }

@media print {

    @page:first {
        @top-center {
            content: none ;
        }
        @bottom-center {
            content: none;
        }
    }

    @page:nth(2) {
	@bottom-center {
            content: none;
        }
    }

    @page:last {
	@bottom-center {
	   content: none;
	}
    }

    @page {
        size: 210mm 297mm;
        margin: 12mm;
/*        bleed: 6mm;
        marks: crop ; */

        @top-center {
            font-size: 0.8em;
            font-weight: bold;
        }

        @bottom-center {
            content: "— " counter(page) " —" ;
            font-size: 0.8em;
            font-weight: bold;
        }
    }

    @page:left {
        margin-left: 24mm;
        margin-right: 18mm;
        margin-top: 18mm;
        margin-bottom: 18mm;
    }

    @page:right {
        margin-left: 18mm;
        margin-right: 24mm;
        margin-top: 18mm;
        margin-bottom: 18mm;
    }
 
/*    .navigation a[href^="#"]::after {
        content: " (p. " target-counter(attr(href), page) ")";
    }
*/
}
