@charset "utf-8";

:root {
	--body-bg-color: #ffffff; /*  var(--body-bg-color)  */
	--card-bg-color: #ffffff; /*  var(--card-bg-color)  */
	--body-txt-color: #333333;  /*  var(--body-txt-color)  */
	--body-strong-txt-color: #000000;  /*  var(--body-strong-txt-color)  */
	--card-link-txt-color: inherit;  /*  var(--card-link-txt-color)  */
	--card-accent-color: #0099ff;  /*  var(--card-accent-color)  */
}

::selection {
	color: white;
	background: var(--card-accent-color);
}

/* GLOBAL 
------------------------------------------------------------ */

html, body {
	margin: 0;
	box-sizing: border-box;
	font-family: 'trebuchet MS', helvetica, arial, sans-serif;
	color: var(--body-txt-color);
	padding: 0;
	font-size: 16px;
}

body {
	background-color: var(--body-bg-color);
	background-repeat: no-repeat;
	padding: 40px;
}

a {
	text-decoration: none;
	color: var(--card-link-txt-color);
}

a:hover {
	text-decoration: underline;
}

article .content a:visited {
	color: #c0a3f5;
}

article .content a {
	text-decoration: underline;
	color: rgb(100, 199, 229);
}

/* HEADER
------------------------------------------------------------ */
body > header a,
body > header a:visited {
	color: inherit;
}

h1 {
	font: bold 3.6em 'trebuchet MS', helvetica, arial, sans-serif;
	margin: 0 0 30px 0;
	text-shadow: 2px 2px 4px rgba(119, 119, 119, .9);
	margin-left: auto;
	margin-right: auto;
	max-width: 1100px;
}

#main_logo {
	vertical-align: middle;
	margin-right: 20px;
	border-radius: 4px;
	box-shadow: 1px 1px 0px #5a5a5a inset, 2px 2px 4px rgba(119, 119, 119, .9);
}

#menu-wrap {
	max-width: 1100px;
	box-shadow: 1px 1px 0px #5a5a5a inset, 2px 2px 4px rgba(119, 119, 119, .9);
	border: 1px solid #000;
	border-radius: 4px;
	padding: 5px;
	font-size: .95em;
	display: flex;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	background: #3a3a3a;
	color: #eee;
}

#menu {
	flex: 1 0 auto;
	display: flex;
	padding: 0;
	margin: 0;
	align-items: center;
}

#menu a {
	margin: 0 10px;
}

#search {
	background: var(--body-bg-color);
	border-radius: 3px;
	width: 280px;
	display: flex;
	align-items: stretch;
}

#search input {
	color: var(--body-txt-color);
	background: transparent;
	border: none;
	padding: 10px;
	flex: 1 1 auto;
	min-width: 0;
}

#search button {
	flex: 0 0 40px;
	overflow: hidden;
	padding: 0 0 0 40px;
	background: no-repeat 8px -189px url(imgs/format.png);
	border: 0;
}

#search label {
	display: none;
}

/* Partie centrale : posts ============================ */

#wrapper {
	max-width: 1100px;
	margin-top: 40px;
	margin-left: auto;
	margin-right: auto;
}

/* mode "liste tous les articles" */
#liste-all-articles {
	max-width: 1100px;
	border: 1px solid #000;
	margin-bottom: 30px;
	border-radius: 2px;
	background-color: var(--card-bg-color);
	padding: 20px;
	list-style-type: none;
	box-shadow: 1px 1px 0px #5a5a5a inset;
}

#liste-all-articles li {
	border-bottom: 1px solid #666;
	padding: 15px 0;
}

#liste-all-articles li time {
	margin-right: 15px;
}

article {
	margin-bottom: 30px;
	border-radius: 2px;
	box-shadow:
		0 0 5.2px rgba(0, 0, 0, 0.1),
		0 6.7px 5.3px rgba(0, 0, 0, 0.048),
		0 12.5px 10px rgba(0, 0, 0, 0.06);
	background-color: var(--card-bg-color);
	position: relative;
	padding: 20px;
	line-height: 1.7em;
	word-break: break-word;
}

article::before, article::after {
	z-index: -1;
	position: absolute;
	content: "";
	bottom: 15px;
	left: 10px;
	width: 50%;
	max-width:300px;
	box-shadow: 0 15px 10px #777;
	transform: rotate(-3deg);
	height: 20px;
}

article::after {
	transform: rotate(3deg);
	right: 10px;
	left: auto;
}

article header > h2 {
	margin: 0;
}

article header .meta {
	padding: 10px;
	border-radius: 2px;
	background: rgba(140, 127, 127, .2);
	margin: 20px 0;
	display: flex;
	flex-wrap: wrap;
}

article .content p:last-child {
	margin-bottom: 0;
}
article .content a.read-more {
	font-weight: bold;
	text-transform: uppercase;
	color: var(--card-accent-color);
	padding: 5px 10px;
	border-radius: 2px;
	background: rgba(140, 127, 127, .2);
	display: inline-block;
	transition: background-color .5s;
	text-decoration: none;
}

article .content a.read-more:hover {
	background: var(--card-accent-color);
	color: var(--body-txt-color);

}


article .content h2,
article .content h3 {
	color: var(--body-strong-txt-color);
	line-height: 2em;
	margin-top: 1.8em;
	font-size: 1.6em;
	font-family: 'trebuchet MS', helvetica, arial, sans-serif;
}

article .content h3 {
	font-size: 1.4em;
}

article img {
	max-width: 100%;
	height: auto;
}

article > header .entry-illustration {
	margin-bottom: 20px
}
article > header .entry-illustration:not(:has(.imgcover)) {
	display: none;
}

article > .content img.imgcover {
	display: none;
	margin-bottom: 15px;
	border-radius: 2px;
	width: 100%;
}

article header {
	font-weight: bold;
	font-family: 'trebuchet MS', helvetica, arial, sans-serif;
}

article header a {
	color: inherit;
}

article.post > header > h2 > a+a {
	float: right;
}
article header .tags,
article footer .tags {
	text-align: right;
	font-style: italic;
	flex: 1 1 auto;
}

article header .tags a::before,
article footer .tags a::before {
	content: '#';
}

article header .tags a,
article footer .tags a {
	margin-left: 10px;
	background: rgba(127, 127, 127, .3);
	padding: 5px 10px;
	border-radius: 5px;
	font-size: .8em;
}

article figure {
	margin: 10px 0;
	text-align: center;
}

article figure > figcaption {
	font-style: italic;
}

article hr {
	border: 0;
	text-align: center;
	margin: 50px;
}

article hr::after {
	content: "***";
}

article blockquote {
	border-left: 3px solid var(--card-accent-color);
	padding: 0 20px;
	margin: 20px;
	font-style: italic;
	opacity: .8;
}

article code {
	border-radius: 5px;
	padding: 2px 5px;
	margin: auto 3px;
	background: rgba(0, 0, 0, .2);
}

article pre {
	font-family: monospace;
	padding: 20px;
	direction: ltr;
	border-radius: 5px;
	tab-size: 4;
	background: rgba(0, 0, 0, .3);
	overflow-x: auto;
}

article pre > code {
	background: transparent;
	padding: 0;
	margin: 0;
	color: inherit;
}

article table {
	margin: 20px auto;
	border-collapse: collapse;
}

article table tr {
	border: 1px solid silver;
}

article table td {
	padding: 8px 10px;
}

article table th,
article table thead td {
	color: var(--body-txt-color);
	background-color: var(--card-bg-color);
	font-weight: bold;
	padding: 10px;
}

article table tr:nth-of-type(odd) {
	background-color: rgba(127, 127, 127, .2);
}

article .small {
	font-size: .8em;
	text-align: center;
	color: gray;
}

article .small a {
	color: inherit;
}

article .centrerinline {
	display: block;
	text-align: center;
	margin: auto;
}

/* articles de blog ==== */
.post .one {
	margin: auto auto 10px 10px;
	float: right;
}

/* liens */

article.link > header > h2 {
	font-size: 1.2em;
	margin-bottom: 0;
}

article.link .hardlink {
	font-size: .8em;
	opacity: .5;
}

article.link time {
	font-size: .8em;
	flex: 1 1 99%;
}


/* liens de ?page=2 */
.pagination {
	text-align: center;
	margin: 60px auto;
	box-shadow: 1px 1px 0px #5a5a5a inset;
	border: 1px solid #000;
	border-radius: 4px;
	padding: 15px;
	box-sizing: border-box;
	justify-content: space-around;
	background: #3a3a3a;
	color: #eee;
	display: flex;
}

.pagination:empty {
	display: none;
}

.pagination a {
	color: inherit;
}


.pagination a[rel="prev"]::before {
	content: '⮪ ';
}

.pagination a[rel="next"]::after {
	content: ' ⮫';
}

/* Footer ============================== */

body > footer {
	background:
		linear-gradient(to right, var(--body-bg-color), var(--body-bg-color)) 0 1px no-repeat,
		linear-gradient(to right, transparent 10%, #777, transparent 90% ) 0 0px no-repeat;
	height: 80px;
	padding: 30px 10px 0;
	margin: 40px 20px 30px;
	font-size: .9em;
	text-align: center;
}

/* Responsive Desing */

/* MEDIA QUERY ===================================
adaptative styles for the width of the visitor's screen */



@media (max-width: 900px) {
	body {
		padding: 3.5vw;
	}

	h1 {
		font-size: 6.4vw; /* base size of page is 16px ; size of title is 3.6em, which == 57,6 px ; and 57,6 is 64% of 900px, 100vw */
		margin-bottom: 20px;
	}

	body > header img {
		width: 10vw;
		height: 10vw;
	}

	#menu-wrap {
		flex-direction: column-reverse;
		align-items: center;
	}

	#menu {
		display: block;
		text-align: center;
		margin: 10px;
	}

	#menu a {
		margin: 0;
		padding: 10px 20px;
		display: inline-block;
	}

	#search {
		margin: 10px;
		width: 80%;
	}

	article {
		padding: 10px;
	}

	article header h2 {
		font-size: 1.2em;
	}

	article header .meta {
		margin-top: 10px;
		margin-bottom: 10px;
	}

}

/* very little screens (less than 640 px) */
@media (max-width: 640px) {
	body {
		padding: 5px;
	}

	.post .one {
		float: none;
		display: block;
		margin: 5px auto;
	}

	article blockquote {
		margin: 0;
		padding: 0 10px;
	}
}



@media (prefers-color-scheme: dark) {
	:root {
		--body-bg-color: #212121; 
		--card-bg-color: #3a3a3a; 
		--body-txt-color: #ddd;
		--body-strong-txt-color: #ffffff;
		--card-link-txt-color: rgb(100, 199, 229);
		--card-accent-color: rgb(0, 149, 199);
	}

	body {
		background-image: radial-gradient( circle at 50px 50px, #444, transparent 300px);
		background-repeat: no-repeat;
	}

	#menu-wrap {
		box-shadow: 1px 1px 0px #5a5a5a inset;
	}

	article {
		box-shadow: 0 0 0 1px #5a5a5a, 0 0 0 2px #000;
		background-color: var(--card-bg-color);
	}

	article img.imgcover {
		/*filter: brightness(50%) saturate(1.3);*/
	}

	article::before, article::after {
		content: none;
	}

	article header,
	article h1, article h2, article h3 {
		text-shadow: 0 1px 1px #000;
	}

}