/******************* Constants *******************/
:root {
/* CSS HEX */
	--color01: #322a26; /*Black Coffee*/
	--color02: #f7f0f5; /*Magnolia*/
	--color03: #e94f37; /*Cinnabar*/
	--color04: #9ab87a; /*Olivine*/
	--color05: #00a9a5; /*Light Sea Green*/
	--color01_bright: #5a453c; /*Dark Liver Horses*/
	--color02_bright: #f8f0f5; /*Lavender Blush*/
	--color03_bright: #ed6752; /*Fire Opal*/
	--color04_bright: #a9c78a; /*Olivine*/
	--color05_bright: #00dcd8; /*Medium Turquoise*/
	--color02-rgb: 248, 240, 245;

	--banner-height: 5em;
	--nav-maxwidth: 900px;
	--nav-height: 4em;
	--body-maxwidth: 900px;
	--footer-maxwidth: 900px;
	--footer-height: 3em;
	--body-padding: 1em;

	--font-color: var(--color02);
	--font-color-rgb: var(--color02-rgb);
	--font-color-em: var(--color02_bright);
	--background-color-main: var(--color01);
	--background-color-secondary: var(--color01_bright);

/*	--background-color: #1C1C1C;
	--background-color-light: #252525;
	--background-color-dark: #121212;
	--avatar-background: #B6B6B6;
	--color01: #799479;
	--color01_bright: #58af58;
	--color02: #8f8071;
	--color02_bright: #b88a5b;

	--image-margin-side: 2.5em;

	--content-width: 900px;*/
}

/******************* Page *******************/
* {
	box-sizing: border-box;
}
html {
	background-color: var(--background-color-main);
	font-family: Lato, Helvetica, sans-serif;
	font-size: medium;
	color: var(--font-color);
}
@media only screen and (min-width: 768px) {
	html {
		font-size: large;
	}
}
body {
	margin: 0;
}
p, ul, ol {
	line-height: 1.6em;
}
article {
	position: relative;
}

/******************* Links *******************/
a:not(.anchor) {
	text-decoration: none;
	color: var(--font-color);
	border-bottom: 1px dotted;
	transition: box-shadow 0.2s ease, outline-offset 0.2s ease, transform 0.2s ease, background 0.4s ease;
}
a:not(.anchor):visited {
	color: var(--font-color);
}
a:not(.anchor):hover {
	outline: 1px solid;
	outline-offset: .3em;
	border-bottom: 1px dashed;
}
a:not(.anchor):active {
	border-bottom: 1px solid;
}
a.not(.anchor):focus {
	outline-offset: .3em;
	outline: 1px solid;
}

/******************* Wrapper *******************/
.wrapper {
/*	display: flex;
	flex-direction: column;*/
	position: relative;
	min-height: 100vh;
	height: auto !important;
	height: 100%;
	width: 90vw;
	margin: 0 auto;
}
@media only screen and (max-width: 320px) {
	.wrapper {
		max-width: 100vw;
	}
}
@media only screen and (min-width: 1000px) {
	.wrapper {
		max-width: var(--body-maxwidth);
	}
}
/******************* Home Page *******************/
.centered {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	margin: 1em;
}

/******************* Navbar *******************/
#navigation {
	/*height: 4em;*/
	width: 100%;
	line-height: 4em;
}
#navigation a {
	padding: 1em;
	padding-bottom: 0.75em; /* Pour éviter d'avoir un espace trop grand en bas*/
	border: none;
	border-radius: 0.5em;
}
#navigation a:hover {
	background-color: var(--background-color-secondary);
	text-decoration: none;
	outline: none;
}
#navigation a:active {
	color: var(--font-color);
	border: none;
}
#navigation a:focus {
	outline: none;
}
#navigation .navigation-container {
	margin: 0 auto;
}
#navigation-title {
	letter-spacing: .1rem;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 1em;
}

@media only screen and (min-width: 768px) and (max-width: 1000px) {
	#navigation a {
		padding: 0.75em;
		padding-bottom: 0.6em;
	}
}
/******************* Navbar Menu *******************/
#menu-toggle {
	display: none;
}
#navigation .menu-button {
	float: right;
	position: relative;
	display: none;
	width: 4em;
	height: 4em;
}
#navigation .menu-button-inner {
	width: 3em;
	height: 3em;
	position:relative;
	top: 0.5em;
	left: 0.5em;
	text-align:center
}
#navigation .menu-button .menu-button-image {
	display: inline-block;
	position: relative;
	height: 1.5em;
	width: 1.5em;
	top: 0.75em;
	background-image: url(../svg/bars.svg);
	background-size: contain;
	background-repeat: no-repeat;
	margin: auto;
	vertical-align: top;
}
#menu-toggle:checked + .menu-button .menu-button-inner {
	background-color: var(--color01_bright);
	border-radius: 0.5em;
	transition: background .5s, max-height .35s linear;
}
#menu-toggle:checked + .menu-button .menu-button-image {
	opacity: 40%;
}
#navigation-list {
	position: absolute;
	top: 6rem;
	right: 0;
	z-index: 10;
	visibility: hidden;
	opacity: 0;
	width: 100%;
	font-size: 1.5em;
	background-color: var(--background-color-main);
	border-top: solid 2px var(--font-color);
	border-bottom: solid 2px var(--font-color);
	transition: opacity .5s, max-height .35s linear;
	padding: 0;
}
#navigation-list .navigation-item {
	float: none !important;
	text-align: center;
	margin: 0;
	display: block;
}
#navigation-list .navigation-item,
#navigation-list .navigation-item span {
	line-height: 5rem;
}
#menu-toggle:checked + label + ul {
	visibility: visible;
	opacity: 1;
	max-height: 100rem;
}
#navigation .menu-button {
	display: block;
	cursor: pointer;
}
@media only screen and (min-width: 768px) {
	#navigation-list {
		position: relative;
		top: 0;
		max-height: none;
		visibility: visible;
		opacity: 100;
		width: auto;
		border: none;
		list-style: none;
		font-size: 1em;
		margin-top: 0;
	}
	#navigation-list .navigation-item {
		display: inline-block;
		font-weight: bold;
		line-height: normal;
	}
	#navigation-list .navigation-item a,
	#navigation-list .navigation-item span {
		line-height: 1rem;
	}
	#menu-toggle:checked + label + ul {
		visibility: visible;
		opacity: 1;
		max-height: 100rem;
	}
	#navigation .menu-button {
		display: none;
	}
}
@media only screen and (min-width: 900px) {
	#navigation-list {
		float: right;
	}
	#navigation-list .navigation-item {
		line-height: 4rem;
	}
}
/******************* Footer *******************/
#page-footer {
	position: absolute;
	bottom: 0;
	height: fit-content;
	padding: 0 1em;
	width: 100%;
}

#page-footer #footer-mail {
	width: fit-content;
	margin: 1em auto;
}
#page-footer #footer-mail a {
	border: none;
}
#page-footer #footer-mail img {
	height: 0.9em;
	vertical-align: middle;
	margin-right: 0.5em;
}

/******************* Simple Page *******************/
.container {
	width: 100%;
	padding-bottom: 2em;
}
.page-icon {
	width: 1.2em;
	height: 1em;
	vertical-align: middle;
}
.coord .page-icon {
	width: auto;
}
.page-body h1 {
	font-size: 2em;
}

/******************* Error Page *******************/
.error_page {
	width: max-content;
}
.error_page footer {
	padding-top: 1em;
	border-top: 1px solid var(--font-color);
}

/******************* Error Page *******************/
#blog-list .list-title,
#site-page .site-title {
	font-size: 2.55rem;
	margin: 3.5rem 0 1.8rem;
}

/******************* Articles List *******************/
.articles-list {
	list-style: none;
	padding-left: 0;
}
.articles-list li {
	margin: 1em 0;
}
.articles-list .title {
	display: inline-block;
	width: 15em;
	text-align: left;
	padding-right: 1.5em;
}
.articles-list .infos {
	display: block;
}
@media only screen and (min-width: 768px) {
	.articles-list .title {
		text-align: right;
	}
	.articles-list .infos {
		display: inline-block;
	}
}
.articles-list .title {
	font-weight: bold;
}

/******************* Paginator *******************/
.pagination {
	padding-left: 0;
	margin: auto;
	text-align: center;
}
.pagination li {
	display: inline-block;
}

/******************* Article *******************/
.container article {
	margin: 0 1em;
}
@media only screen and (max-width: 320px) {
	.container article {
		margin: 0em;
	}
}

/******************* Article Header *******************/
.container article .post-title {
	margin-bottom: 0.3em;
}
.container article .post-title a:hover {
	outline: none;
}
.container article .post-title a:active {
	border-bottom: 1px solid;
}
.post-meta>div {
	margin-bottom: 0.7em;
}
.post-meta .date span {
	display: inline-block;
}
.post-meta .posted-on {
	line-height: 2em;
}
.post-meta>:not(.date) {
	display: inline-block;
	margin-right: 1em;
}
.post-meta .header-icon {
	vertical-align: baseline;
	margin-right: 0.3em;
}
.post-header {
	margin-top: 3.5rem;
	margin-bottom: 1.8rem;
}
@media only screen and (max-width: 320px) {
	.post-header {
		margin-top: 2rem;
		margin-bottom: 1.6rem;
	}
}
.post-title {
	font-size: 3rem;
	margin: 0;
}
@media only screen and (max-width: 320px) {
	.post-title {
		font-size: 2.4rem;
	}
}

/******************* Article Body *******************/
.article-body {
	margin-bottom: 2em;
}
.article-body img {
	max-width: 100%;
}
.article-body h1 {
	font-size: 2.55rem;
	margin: 3.5rem 0 1.8rem;
}
.article-body h2 {
	font-size: 2.17rem;
	margin: 2.98rem 0 1.53rem;
}
.article-body h3 {
	font-size: 1.84rem;
	margin: 2.53rem 0 1.30rem;
}
.article-body h4 {
	font-size: 1.57rem;
	margin: 2.15rem 0 1.11rem;
}
.article-body h5 {
	font-size: 1.33rem;
	margin: 1.83rem 0 0.94rem;
}
.article-body h6 {
	font-size: 1.13rem;
	margin: 1.55rem 0 0.80rem;
}
@media only screen and (max-width: 320px) {
	.article-body h1 {
		font-size: 2.16rem;
		margin: 2rem 0 1.6rem;
	}
	.article-body h2 {
		font-size: 1.94rem;
		margin: 1.80rem 0 1.44rem;
	}
	.article-body h3 {
		font-size: 1.75rem;
		margin: 1.62rem 0 1.30rem;
	}
	.article-body h4 {
		font-size: 1.57rem;
		margin: 1.46rem 0 1.17rem;
	}
	.article-body h5 {
		font-size: 1.42rem;
		margin: 1.31rem 0 1.05rem;
	}
	.article-body h6 {
		font-size: 1.28rem;
		margin: 1.18rem 0 0.94rem;
	}
}

.anchor {
	content: '#';
	position: absolute;
	opacity: 0%;
	left: -1em;
	width: 80%;
	max-width: 600px;
	border: none;
	color: var(--font-color-em);
	text-decoration: none;
}
@media only screen and (max-width: 500px) {
	.anchor {
		left: -0.8em;
	}
}

.anchor:hover {
	opacity: 100%;
	outline: none;
	border: none;
	cursor: pointer;
}

@media only screen and (max-width: 320px) {
	.anchor:hover {
		opacity: 0%;
	}
}

/******************* Article Footer *******************/
.article-footer {
	font-style: italic;
	font-size: 0.8rem;
	margin: 2rem 0;
}
.article-footer .footer-return {
	margin-bottom: 1em;
	width: 100%;
	text-align: right;
	display: inline-block;
}

.article-footer .footer-link {
	display: block;
}
.article-footer .footer-link .spacer {
	display: none;
}
.article-footer .footer-link .label {
	display: inline-block;
	width: 8em;
}
@media only screen and (min-width: 768px) {
	.article-footer .footer-link {
		display: inline-block;
	}
	.article-footer .footer-link .label {
		width: auto;
	}
	.article-footer .footer-link .spacer {
		display: inline-block !important;
	}
}

.footnotes {
	clear: left;
}
@media only screen and (max-width: 768px) {
	.footnotes ol {
		padding-left: 1em;
	}
}

/******************* Article Figure *******************/
.article-body figure {
	margin: 1em 0;
	max-width: 100%;
	width: fit-content;
	overflow: visible;
}
.article-body figure picture,
.article-body figure figcaption {
	display: table-row;
	border-spacing: 0;
}
.article-body figure img {
	vertical-align: middle;
	min-width: calc(50% - 2 * var(--image-margin-side));
	max-height: 90vh;
}
@media only screen and (min-width: 768px) {
	.article-body figure {
		margin: 1em 2.5em;
	}
	.article-body figure.logo,
	.article-body figure.inline {
		margin: 0;
	}
	.article-body figure.border img {
		min-width: calc(100% - 2 * var(--image-margin-side)) !important;
	}
}
.article-body figure.logo {
	display: inline-block;
	min-width: auto;
}
.article-body figure.wrap {
	float: left;
	margin: 0.7em 1em;
}
.article-body figure.inline {
	display: inline-block;
	min-width: auto;
	margin-left: 1em;
	margin-right: 1em;
}
.article-body figure.half {
	width: 100%;
	max-width: 45%;
}
.article-body figure.third {
	width: 100%;
	max-width: 30%;
}
.article-body figure.logo img {
	width: 10vw;
	max-width: 100px;
	min-width: 40px;
	vertical-align: bottom;
	padding: 0;
}
.article-body figure.border img {
	padding: 0.3rem;
	border: 3px solid var(--background-color-secondary);
	min-width: 100%;
}
.article-body figure.border figcaption {
	background-color: var(--background-color-secondary);
	min-width: 100%;
	display: inline-block;
}
.article-body figure>a {
	display: block;
	margin: auto;
	outline: none;
	min-height: 100%;
	border: none;
	width: fit-content;
}
.article-body figure>a:hover {
	border: none;
}
.article-body figure>a>img:hover {
	box-shadow: 0 0 1em rgba(var(--font-color-rgb), 0.5);
}
.article-body figure figcaption p,
.article-body figure figcaption h4 {
	font-style: italic;
	font-weight: normal;
	font-size: 0.9rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	margin-left: 1rem;
	margin-right: 1rem;
}
.article-body figure figcaption .attribution {
	float: right;
}
.article-body .separator {
	margin: 0 0.2em;
}
/******************* Article Tabular *******************/
.article-body .tabular.border table {
	padding: 0.3rem;
	border: 3px solid var(--background-color-secondary);
	min-width: 100%;
}
.article-body .tabular td,
.article-body .tabular th {
	padding: 0 0.4rem;
}
.article-body .tabular th {
	border-bottom: 3px solid var(--background-color-secondary);
}
.article-body .tabular.center td {
	text-align: center;
}
.article-body .tabular.right td {
	text-align: right;
}

/******************* Article Abbreviation *******************/
abbr {
	text-decoration: none;
}
abbr[title]:after {
	content: " (" attr(title) ")";
}
@media only screen and (min-width: 768px) {
	abbr[title] {
		border-bottom: 1px dotted var(--font-color);
		cursor:help;
	}
	abbr[title]:after {
		content: none;
	}
}

/******************* Article Code *******************/
pre {
	font-size: 0.8rem;
	white-space: pre-wrap;
	padding: 0.3rem;
	margin-top: 0.5rem;
	background: repeating-linear-gradient(28deg, #1C1C1C, #1C1C1C 20px, #121212 20px, #121212 40px);
	overflow: auto;
}
:not(pre)>code, :not(details)>code {
	font-size: 1rem;
	color: var(--font-color-em);
	word-break: break-word;
}
.allowbreak code {
	word-break: break-word;
}

/******************* Article Details *******************/
details{
	overflow: auto;
}
details[open] {
	outline: 1px solid white;
	outline-offset: .3rem;
}
details summary {
	transition: box-shadow 0.2s ease, outline-offset 0.2s ease, transform 0.2s ease;
	cursor: pointer;
	padding: 0.3rem;
	background: repeating-linear-gradient(28deg, #1C1C1C, #1C1C1C 20px, #252525 20px, #252525 40px);
}
@media only screen and (min-width: 768px) {
	details summary {
		text-decoration: 1px underline dotted;
	}
	details summary:hover {
		text-decoration: 1px underline dashed;
	}
}
details summary:after {
	content: "[touche pour dérouler]";
	font-size: 0.7rem;
	margin-left: 0.5em;
	font-style: italic;
}
details[open] summary:after {
	content: "[touche pour enrouler]";
}
@media only screen and (min-width: 768px) {
	details summary:after {
		content: none;
	}
	details[open] summary:after {
		content: none;
	}
}
details[open] summary {
	background-color: var(--background-color-secondary);
}
details summary:hover {
	outline: 1px solid !important;
	outline-offset: .3rem;
}
details summary:focus {
	outline: none;
}
details[open] summary:hover {
	outline: 1px dotted !important;
	outline-offset: .3rem;
}

/******************* Article Superscript *******************/
.article-body sup {
	vertical-align: top;
	position: relative;
	top: -0.5rem;
}

/******************* Article Blockquote *******************/
blockquote {
	position: relative;
	background-color: var(--background-color-secondary);
	padding: 0.1rem 1rem;
	margin-top: 2rem;
}
.bigquote {
	padding: 1rem;
	border-radius: 1.5rem;
}
.bigquote p:first-of-type {
	margin-top: 0;
}
.bigquote footer {
	text-align: right;
}
blockquote:after {
	position: absolute;
	content: "”";
	color: var(--font-color);
	font-size: 10rem;
	line-height: 0;
	top: 2rem;
	right: 1rem;
	font-family: Arial;
}
blockquote .title {
	font-weight: bold;
}

/******************* Tabular *******************/

.tabular {
	margin-left: 0;
	margin-right: 0;
}
.tabular figcaption p {
	font-style: italic;
	font-weight: normal;
	font-size: 0.9rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	margin-left: 1rem;
	margin-right: 1rem;
}

@media only screen and (min-width: 768px) {
	.tabular {
		margin-left: default;
		margin-right: default;
	}
}

/******************* Cotations tabular *******************/
#cotationsTab table {
	border-collapse: collapse;
}
#cotationsTab tbody td:first-child {
	width: 10vh;
}
#cotationsTab td {
	border: 2px solid var(--background-color-secondary);
	padding: 0.5em 0.3em;
}
@media only screen and (min-width: 768px) {
	#cotationsTab  tbody td:first-child {
		width: 10em;
	}
}

/******************* Generic colors *******************/
.color01 {
	color: var(--color01);
}
.color01.bright {
	color: var(--color01_bright);
}
.color02 {
	color: var(--color02);
}
.color02.bright {
	color: var(--color02_bright);
}
