/** TYPO **/
@font-face {
    font-family: "Lato";
    src: url('fonts/Lato-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Lato";
    src: url('fonts/Lato-Bold.ttf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Merriweather";
    src: url('fonts/Merriweather-Regular.otf');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Merriweather";
    src: url('fonts/Merriweather-Italic.otf');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Merriweather";
    src: url('fonts/Merriweather-BoldItalic.otf');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: "Merriweather";
    src: url('fonts/Merriweather-Bold.otf');
    font-weight: bold;
    font-style: normal;
}

body {
    /* margin: 0 16px; */
    margin: 0;
    padding: 0;
    font-size: 1.0em;
    line-height: 1.6;
    font-family: "Merriweather", Malabar, Georgia, Amasis, serif;
    /* text-align: justify; */
    -moz-hyphens: none;
    -ms-hyphens: none;
    -webkit-hyphens: none;
    -epub-hyphens: none;
    hyphens: none;
}

section {
    margin: 0 16px;
}

h1,
h2,
h3,
blockquote p,
.right,
.center,
.footnote,
.nav {
    -moz-hyphens: none;
    -ms-hyphens: none;
    -webkit-hyphens: none;
    -epub-hyphens: none;
    hyphens: none;
}

h1 {
    font-family: "Lato", sans-serif;
    /*font-size: 2.1em; /*2.3*/
    font-size: 1.7em;
    margin: 3rem 0;
    line-height: 1.35;
    font-weight: normal;
    text-align: center;
    text-indent: 0;
}

h2 {
    font-family: "Lato", sans-serif;
    /*font-size: 1.7em; /*1.8*/
    font-size: 1.4em;
    margin: 7% 0 9% 0;
    line-height: 1.35;
    font-weight: normal;
    font-style: normal;
    text-align: center;
    page-break-after: avoid;
}


h2.toc {
    font-size: 1.2em;
    margin: 0 0 0.3em 0;
    font-weight: normal;
    text-align: left;
    color: #121416 !important;
}

h3 {
    font-family: "Lato", sans-serif;
    /*font-size: 1.3em; /*1.4*/
    font-size: 1.2em;
    margin: 7% 0 4% 0;
    line-height: 1.35;
    font-weight: bold;
    font-style: normal;
    text-align: left;
    page-break-after: avoid;
}

a, a:visited { 	
color: #212529!important;
text-decoration: none;
background: transparent;
    transition: all 1s;
}
.container a.link.active {
    color: #6fb66c!important;
    background: transparent;
    text-decoration: none;
    padding: 1px 1%;
    border-radius: 25px;
    border: 1px solid #6fb66c;
}

a.link:focus, a.link:hover {
    color: #6fb66c!important;
    background: transparent;
    text-decoration: none;
    padding: 2px 1%;
    border-radius: 25px;
    border: 1px solid #6fb66c;
}

li > a {
    text-decoration: none;
}

.indent p {
    text-indent: 0;
}

.justify p {
    text-align: justify;
}

.block-margin {
    margin-left: 1rem;
}


/** LAYOUT **/
.row {
    justify-content: center;
}

.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0;
    top: 0;
    left: 0;
}

.fullsize-align-center-middle {
    /* margin: 0; */
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.fullsize-align-center-middle-noresize {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: space-between;
    /* align-content: center; */
    flex-wrap: wrap;
    height: 100vh;
}

.align-center-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.fill4flexalign {
    /* remplissage pour centrage vertical RWD via .fullsize-align-center-middle-noresize { align-content: space-between; } */
    height: 0px;
    width: 100%;
}

@media (max-height: 319px) {
    .embed-responsive {
        max-height: 70%;
    }
}

@media (min-height: 320px) and (max-height: 457px) {
    .embed-responsive {
        max-height: 80%;
    }
}

@media (max-height: 269px) {
    .rwdScale {
        transform: scale(.7);
    }
}

@media (min-height: 270px) and (max-height: 339px) {
    .rwdScale {
        transform: scale(.75);
    }
}

@media (min-height: 340px) and (max-height: 434px) {
    .rwdScale {
        transform: scale(.8);
    }
}

@media (min-height: 435px) and (max-height: 549px) {
    .rwdScale {
        transform: scale(.85);
    }
}

@media (min-height: 550px) and (max-height: 584px) {
    .rwdScale {
        transform: scale(.9);
    }
}

@media (min-height: 585px) and (max-height: 619px) {
    .rwdScale {
        transform: scale(.95);
    }
}


@media (max-width: 599px) {
    .container {
        padding-right: 40px;
        /* protect fleches nav */
        padding-left: 40px;
    }
}

/** INTERACTIF **/
.pointer {
    cursor: pointer;
}

.visited {
    opacity: .5;
}

.no-selection {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/** UPGRADE BOOTSRAP **/
/* FULLSCREEN MODAL */
.nopadding {
    padding: 0;
}

.close-absolute {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.full-img-fluid {
    max-width: 100%;
    height: auto;
    max-height: 100vh;
}

/** NAV PREV NEXT **/
#navPrev,
#navNext {
    height: 100%;
    cursor: pointer;
    top: 0;
    width: 30px;
}

#navPrev i,
#navNext i {
    color: #ddd;
    font-size: 1.5rem;
    top: 50%;
    position: fixed;
    margin-top: -1.5rem;
    width: inherit;
    text-align: center;
}

#navPrev i {
    color: #ddd;
}

body {
    position: relative;
}

.fs {
    position: fixed;
}

#navPrev.fs {
    left: 0;
}

#navNext.fs {
    right: 0;
}

/** PAGE TITRE **/
.pageTitre h1 {
    letter-spacing: 1px;
    font-size: 2.6rem;
}

.pageTitre h2 {
    margin: -1.6rem auto 3rem;
}

.pageTitre p {
    font-size: 1.4rem;
}

img.logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    break-inside: avoid;
    margin: 60px auto 0;
    display: block;
}

/** IMAGES **/
/** OFFSIDE MENU **/
#menuBurger {
    position: absolute !important;
    top: 4px;
    left: 6px;
    z-index: 1001;
}

@media (min-width: 635px) {
    #menuBurger {
        position: fixed !important;
    }
}

/* Offside instances */
.offside {
    padding: 3px 0;
    width: 300px;
    left: -300px;
    background-color: #212529;

    -webkit-overflow: auto;
    overflow: auto;
    overflow-y: auto;
}

.offside--left.is-open,
.offside-js--is-left .offside-sliding-element {
    transform: translate3d(300px, 0, 0);
}

.offside-js--interact .offside,
.offside-js--interact .offside-sliding-element {
    -webkit-transition: -webkit-transform .4s cubic-bezier(.16, .68, .43, .99);
    -moz-transition: -moz-transform .4s cubic-bezier(.16, .68, .43, .99);
    -o-transition: -o-transform .4s cubic-bezier(.16, .68, .43, .99);
    transition: transform .4s cubic-bezier(.16, .68, .43, .99);
}

#content-container {
    transform: unset;
    /* annule le slide du contenu */
}

#menuTitle {
    margin: 40px 16px 16px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.offside h1,
.offside h2 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.offside h1 {
    text-transform: uppercase;
}

/* Lists */
.offside ul {
    clear: both;
    margin: 0;
    padding: 0 20px;
    list-style: none;
}

.offside li {
    padding: 7px 0;
    line-height: 1.2rem;
}

.offside li > a {
    text-decoration: none;
    color: #ccc !important;
    font-size: 0.9rem;
}

.offside li > a:hover {
    color: #fff !important;
}

/* Abstract icon class*/
.icon {
    display: block;
    position: relative;
    padding: 10px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
}

.icon .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #313131;
}

.icon:hover .icon-bar {
    background-color: #989898;
}

.icon:focus {
    outline: 0;
}

/* Hamburger button */
.icon--hamburger .icon-bar + .icon-bar {
    margin-top: 4px;
}

/* Close button */
.icon--cross {
    padding: 20px;
}

.icon--cross > .icon-bar + .icon-bar {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.icon--cross > .icon-bar {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);

    margin-top: -2px;
    background-color: #989898;
}

/* Helpers */
.h--left {
    float: left;
}

.h--right {
    float: right;
}

/* overlay fade in/out */
.site-overlay {
    z-index: 1002;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #FFF;
    visibility: hidden;
    opacity: 0;
    cursor: pointer;

    -webkit-transition: visibility 0s ease, opacity .2s ease;
    -moz-transition: visibility 0s ease, opacity .2s ease;
    -o-transition: visibility 0s ease, opacity .2s ease;
    transition: visibility 0s ease, opacity .2s ease;
}

.offside-js--is-open .site-overlay {
    visibility: visible;
    opacity: .7;
    -webkit-transition-delay: delay 0s;
    -o-transition-delay: delay 0s;
    transition-delay: delay 0s;
}

/** RECHERCHE **/
.sidebar-search {
    margin: 0 16px 25px;

    border-bottom: 1px solid #555;
    padding-bottom: 15px;
}

.sidebar-search .input-group-text {
    background-color: rgba(81, 81, 81, 0.5);
    border: none;
}

.sidebar-search i {
    color: #c7c7c7;
}

.sidebar-search input.search-menu {
    background-color: rgba(81, 81, 81, 0.5);
    color: #c7c7c7;
    border: none;
    margin-right: 2px;
    font-size: 0.9rem;
}

#searchResults {
    padding: 0;
}

#searchResults > li:first-child {
    margin-top: 15px;
}

p.extract {
    color: #777;
    font-size: 0.8rem;
    margin: 0;
}

.overline {
    color: #aaa;
    background-color: #444;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(125, 125, 125, .5);
}

/** BOOKMARKS **/
.sep {
    border-top: 1px solid #555;
    margin: 28px 16px 8px;
}

#bookmarks-title {
    padding: 10px 20px;
}

#bookmarkBtn {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    cursor: pointer;
    color: #ddd;
    padding: 12px;
    z-index: 1000;
}

#bookmarkBtn:hover {
    color: #666;
}

/** **/

/** telecommande **/
.telecommande{
    text-align: center;
    page-break-after: avoid;
    transition: all 1s;
    position: absolute;
    right: 4%;
    top: 11px;
    cursor: pointer;
    z-index: 1000;
    max-height: 25px;
}
.telecommande:hover{
    cursor: pointer;
    opacity: 0.5;
}
/** **/


.p-sep {
    margin: 2rem 0;
    text-align: center !important;
    text-indent: unset !important;
}
blockquote {
    margin-left: 3%;
}
blockquote footer {
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

.no-indent {
    text-indent: 0 !important;
}

.no-border {
    border: none;
}

.no-margin {
    margin: 0 !important;
}

.hidden {
    display: none !important;
}

/** PAGE CHOIX */
.choix_num {
    display: block;
    position: absolute;
    font-family: "Lato";
    font-weight: bold;
    font-size: 3rem;
    margin-top: -.5rem;
}

.choix_text_wrapper {
    display: block;
    margin: 0 0 2rem 6rem;
    font-size: 1.2rem;
}

.choix_titre {
    font-weight: bold;
}

.choix_reset {
    display: block;
    margin: -1rem 0 2rem 6rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Ajouts Vampirisation */
.titres-chap {
    font-weight: 900;
    font-size: larger;
}

.img_sons img {
    max-height: 150px;
    border-radius: 800px;
    margin-top: 5%;
}

figure {
    margin: 0 auto 8% auto;
    text-align: center;
}
audio:focus {
    outline: none;
}