/** 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 {
	color: #212529!important;
	text-decoration: underline;
}
a:focus, a:hover {
    color: #000!important;
}
li > a {
	text-decoration: none;
}

.indent p {
	text-indent: 1rem;
}
.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;
	/* height: 90vh; */
	/* scrollbar-width: none; */
	/* overflow-y: hidden; */
}

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

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

/* .align-middle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: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);
	}
}


/** 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;
}

/** MENU DYNAMIQUE **/
div.fragments {
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.dyn p {
	margin-bottom: 0;
}
.dyn a {
	text-decoration: none;
	margin: 2px 0;
}
.dyn .btn-outline-dark:hover {
	color: #fff !important;
}

/** OVERRIDE BOOTSTRAP **/
/* CAROUSEL */
.carousel-indicators {
	bottom: -26px; /* optimisé pour h320+ */
}
.carousel-indicators li {
	width: 2px;
	height: 2px;
	margin-right: 3px;
	margin-left: 3px;
	background-color: #bbb;
	border: 1px solid #bbb;
	/* border-radius: 8px; */
	opacity: .5;
}
/* .carousel-control-prev-icon, .carousel-control-next-icon {
	display: none;
} */

/** UPGRADE BOOTSRAP **/
/* CAROUSEL */
.w-100g {
    max-width: 100%!important;
	max-height: 92vh;
	margin: auto; /* chrome fix */
}

/* FULLSCREEN MODAL */
.nopadding {
	padding: 0;
}
.close-absolute {
	position: absolute;
    top: 1rem;
    right: 1rem;
}
.full-img-fluid {
    max-width: 100%;
    height: auto;
    /* max-height: 94vh; */
    max-height: 100vh;
}

/** NAV PREV NEXT **/
#navPrev, #navNext {
	text-align: center;	
	width: 100%;
	margin: .5rem 0;
}
#navPrev i, #navNext i {
	color: #ccc;
	font-size: 1.5rem;
	cursor: pointer;
}
#navPrev i {
	color: #ddd;
}
body {
	position: relative;
}
.fs {
	position: absolute;
}
#navPrev.fs {
	top: 0;
}
#navNext.fs {
	bottom: 0;
}

/** COVER **/
/* body.cover {
	background: url('../img/cover.jpg') no-repeat center center fixed;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	background-size: contain;
	height: 100vh;
} */

/** ANIM - TRANSITION V **/
.hidden {
	visibility: hidden;
}
.anim-trans { 
	/* transition: margin-top 1.0s ease-in-out;  */
	transition: all .8s ease-in-out; 
}


/** PAGE TITRE **/
.pageTitre h1 {
	letter-spacing: 1px;
}
.pageTitre h2 {
	margin: -1.6rem auto 3rem;
}
img.logo {
	max-width: 120px;
    height: auto;
    object-fit: contain;
	break-inside: avoid;
	margin: 45px auto 0;
	display: block;
}

/** IMAGES **/
img.fleuve {
    width: 80px;
	height: auto;
    display: block;
    margin: -25px auto 28px;
}
img#cabochon {
	margin-bottom: 30px;
}

/** OFFSIDE MENU **/
#menuBurger {
	position: absolute !important;
	top: 4px;
	left: 6px;
	z-index: 1001;
}
/* .menu-btn > .icon-bar {
	background-color: #999 !important;
}  */
@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);
    /* transition: all .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 {
	/* text-decoration: underline; */
	color: #fff !important;
}

/* Offside buttons */
/* .offside-button {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    margin: 0 auto 10px auto;
    background: #FFE200;
    color: #000;
    text-align: center;
    cursor: pointer;
}

.offside-button:hover {
    background: #FFD900;
} */

/* 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: absolute; */
    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;
    /* border-top: 1px solid #555;
    margin-top: 10px; */
}
#bookmarkBtn {
	position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
	cursor: pointer;
	color: #ddd;
	padding: 12px;
	z-index: 1000;
}
#bookmarkBtn:hover {
	color: #666;
}

/** **/
.p-sep {
	margin: 2rem 0;
	text-align: center !important;
	text-indent: unset !important;
}

blockquote footer {
	margin-top: -0.5rem;
    margin-bottom: 2rem;
}

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

.no-border {
	border: none;
}

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