:root {
	--font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Cantarell, Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
	--accent-color-dark: #3b5bdb;
	--accent-color-dark-hover: #4263eb;
	--accent-color-light: #bac8ff;
	--accent-color-light-hover: rgb(203, 216, 225);
	--header-color: #bac8ff;
	--text-color: #212529;
	--border-color: rgba(0, 0, 0, 0.15);
	--hover-color: rgba(0, 0, 0, 0.05);
	--background-color: #f8f9fa;
	--well-color: #e9ecef;
	--card-color: white;
	--alert-background: #ffe3e3;
	--alert-text: #c92a2a;
	--accent-color: var(--accent-color-dark);
	--accent-color-back: var(--accent-color-light);
	--accent-color-hover: var(--accent-color-dark-hover);
	--border-radius: 9px;
	--border-radius-cards: 18px;
	--border-radius-buttons: 12px;
}

@media(prefers-color-scheme: dark) {
	:root {
		--text-color: #e9ecef;
		--background-color: #212529;
		--well-color: #343a40;
		--card-color: #343a40;
		--header-color: #4263eb;
		--alert-background: #c92a2a;
		--alert-text: #ffe3e3;
		--accent-color: var(--accent-color-light);
		--accent-color-back: var(--accent-color-dark);
		--accent-color-hover: var(--accent-color-light-hover);
		--border-color: rgba(255, 255, 255, 0.2);
		--hover-color: rgba(255, 255, 255, 0.1)
	}
}


html {
	font-family: var(--font-family);
	text-align: left;
	font-size: 17px;
	background-color: var(--background-color);
	accent-color: var(--accent-color);
	line-height: 1.6rem
}

body {
	color: var(--text-color);
	font-weight: 400;
	margin: auto;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#wrapper {
	margin-top: 1rem;
	flex-grow: 1;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	padding: 6px;
	background-color: var(--card-color);
	box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.3);
	border-radius: var(--border-radius-cards);
}

nav ul li {
	list-style-type: none;
	margin: 0
}

nav ul li a,
nav ul li span {
	padding: .25rem .5rem;
	display: block;
	border-radius: var(--border-radius-buttons);
}

nav ul li.separator {
	margin-right: auto
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
hr,
table,
details main,
.p,
input,
textarea,
select,
hgroup,
article,
section {
	padding: 0;
	margin: 0 0 1rem 0
}

p:last-child {
	margin-bottom: 0
}

a {
	color: var(--accent-color);
	text-decoration: none;
	border-radius: 3px;
	padding: 1px
}

a:hover {
	background-color: var(--hover-color)
}

:is(ul, ol)>:is(ul, ol) {
	margin-bottom: 0
}

li {
	margin-left: 1rem
}

::selection,
::-moz-selection {
	background: var(--accent-color-back);
	color: var(--text-color)
}

hr {
	border: 0;
	border-bottom: 1px solid var(--border-color)
}

code,
mark {
	background-color: var(--well-color);
	padding: 5px;
	border-radius: 3px
}

mark {
	background-color: var(--accent-color-back);
	color: currentColor
}

pre,
code {
	font-family: var(--font-family-monospace)
}

p>img:only-child,
figure img {
	display: block;
	max-width: 100%;
	margin: auto
}

figcaption {
	text-align: center;
	font-size: 0.9em;
	font-style: italic;
}

hgroup>:is(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 0
}

hgroup {
	font-weight: 700
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-align: left;
	line-height: 1;
	font-weight: 700
}

h1 {
	font-size: 3rem
}

h2 {
	font-size: 2.33rem
}

h3 {
	font-size: 1.75rem
}

h4 {
	font-size: 1.5rem
}

h5 {
	font-size: 1.25rem
}

h6 {
	font-size: 1rem;
	font-weight: 800
}

blockquote,
pre,
details {
	border: 0;
	border-radius: 6px;
	margin: 0 0 1rem 0;
	padding: .75rem;
	max-width: 100%;
	background-color: var(--well-color);
	border: 0;
	border-left: 6px solid var(--accent-color)
}

pre code {
	padding: 0
}

pre {
	overflow: scroll
}

summary {
	font-weight: 700;
	font-size: .9em
}

summary:hover {
	background-color: var(--hover-color)
}

a,
button,
input {
	outline-color: var(--accent-color);
	outline-style: none;
	outline-width: 2px
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline-style: dashed
}

input,
textarea,
select {
	display: block;
	background-color: var(--background-color);
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	outline-offset: 2px;
	padding: .5rem;
	color: var(--text-color);
	max-width: 100%;
	overflow: scroll
}

input:hover,
textarea:hover,
select:hover {
	background-color: var(--hover-color)
}

label {
	font-size: .9rem;
	font-weight: bolder
}

textarea {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 1rem
}

input[type=checkbox],
input[type=radio] {
	display: inline-block;
	appearance: none;
	aspect-ratio: 1;
	font-size: 1rem;
	height: 1em;
	width: 1em;
	box-sizing: border-box;
	line-height: 1;
	padding: 0;
	margin: 0 .25em;
	border-radius: 3px;
	border: 1px solid var(--border-color);
	content: "";
	position: relative;
	top: .2rem
}

input[type=checkbox]:checked,
input[type=radio]:checked {
	background-color: var(--accent-color);
	box-shadow: inset 0px 0px 0px 3px var(--background-color)
}

input[type=checkbox]:checked:hover,
input[type=radio]:checked:hover {
	background-color: var(--accent-color-hover);
	box-shadow: inset 0px 0px 0px 3px color-mix(in srgb, var(--background-color) 90%, currentColor)
}

input[type=radio] {
	border-radius: 9999px
}

button,
.button,
input[type=submit],
input[type=reset],
input[type=button] {
	background-color: var(--accent-color);
	color: var(--background-color);
	border: none;
	padding: .33rem 1rem;
	display: block;
	border-radius: var(--border-radius-buttons);
	outline-offset: 2px;
	display: inline-block
}

button:hover,
.button:hover,
input[type=submit]:hover,
input[type=reset]:hover,
input[type=button]:hover {
	background-color: var(--accent-color-hover)
}

.responsive-table {
	width: 100%;
	overflow: scroll
}

table {
	border-collapse: separate;
	width: 100%;
	border: 0;
	border-spacing: 3px
}

caption {
	font-weight: bolder
}

table.centered th,
table.centered td {
	text-align: center
}

tr,
th,
td {
	border: 0
}

th,
td {
	background-color: var(--well-color);
	padding: .33rem .66rem
}

table:not(:has(thead)) tr:first-child td:first-child,
table:not(:has(thead)) tr:first-child th:first-child,
table>tr:first-child td:first-child,
table>tr:first-child th:first-child,
table thead tr:first-child td:first-child,
table thead tr:first-child th:first-child {
	border-top-left-radius: var(--border-radius)
}

table:not(:has(thead)) tr:first-child td:last-child,
table:not(:has(thead)) tr:first-child th:last-child,
table>tr:first-child td:last-child,
table>tr:first-child th:last-child,
table thead tr:first-child td:last-child,
table thead tr:first-child th:last-child {
	border-top-right-radius: var(--border-radius)
}

table>tr:last-child td:first-child,
table>tr:last-child th:first-child,
table tbody tr:last-child td:first-child,
table tbody tr:last-child th:first-child {
	border-bottom-left-radius: var(--border-radius)
}

table>tr:last-child td:last-child,
table>tr:last-child th:last-child,
table tbody tr:last-child td:last-child,
table tbody tr:last-child th:last-child {
	border-bottom-right-radius: var(--border-radius)
}

.flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between
}

.grid {
	display:grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	grid-auto-rows: minmax(100px, auto);
	margin-bottom: 2rem;
}

.card {
	background-color: var(--card-color);
	border-radius: var(--border-radius-cards);
	padding: 1rem;
	box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.3);
}

.center {
	text-align: center;
}

.feature h3 {
	font-size: 1.2rem;
	text-align: center;
}

.feature .emoji-feature {
	font-size: 2.5rem;
	display: block;
	padding: 0.5rem;
}

.separator-left {
	margin-left: auto;
}

.container {
	max-width: 800px;
	margin: auto;
}

#main-header {
	background: var(--header-color) url("data:image/svg+xml,%3Csvg width='800' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='420' cy='440' r='300' fill='%23f8f9fa' /%3E%3Ccircle cx='700' cy='510' r='300' fill='%23f8f9fa' /%3E%3Ccircle cx='-100' cy='510' r='300' fill='%23f8f9fa' /%3E%3Ccircle cx='150' cy='380' r='150' fill='%23f8f9fa' /%3E%3C/svg%3E");
	background-position: bottom center;
  	background-repeat: repeat-x;
	padding-top: 1rem;
	margin-bottom: 6rem;
}

.illustration {
	margin-bottom: -6rem;
}

#main-header hgroup {
	padding: 1.5rem 0rem 1.5rem 0rem;
}

@media(prefers-color-scheme: dark) {
	#main-header {
		background: var(--header-color) url("data:image/svg+xml,%3Csvg width='800' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='420' cy='440' r='300' fill='%23212529' /%3E%3Ccircle cx='700' cy='510' r='300' fill='%23212529' /%3E%3Ccircle cx='-100' cy='510' r='300' fill='%23212529' /%3E%3Ccircle cx='150' cy='380' r='150' fill='%23212529' /%3E%3C/svg%3E");
		background-position: bottom center;
  		background-repeat: repeat-x;
	}
}

#main-footer {
	background-color:#343a40;
	color:#e9ecef;
	--text-color: #e9ecef;
	--accent-color: var(--accent-color-light);
	--accent-color-back: var(--accent-color-dark);
	--accent-color-hover: var(--accent-color-light-hover);
	--border-color: rgba(255, 255, 255, 0.2);
	--hover-color: rgba(255, 255, 255, 0.1);
	padding-top: 1rem;
	padding-bottom: 1rem;
}

#main-footer p {
	margin:0;
}

.article-list {
	margin-bottom: 2rem;
}

.article-list article:not(:last-child) {
	border-bottom: 1px solid var(--border-color);
}

.article-list article:last-child,
.article-list article:last-child .article-metadata {
	margin-bottom: 0;
}

.article-list article .title {
	margin: 0;
}

.article-list article .entry-summary {
	font-style: italic;
}

.alert {
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: var(--border-radius-cards);
	background-color: var(--alert-background);
	color: var(--alert-color);
}

.secondary {
    --accent-color-dark: #343a40; /* valeur 8 */
	--accent-color-dark-hover: #212529; /* valeur 9 */
	--accent-color-light: #f1f3f5; /* valeur 1 */
	--accent-color-light-hover: #f8f9fa; /* valeur 0 */
	--accent-color: var(--accent-color-dark);
	--accent-color-back: var(--accent-color-light);
	--accent-color-hover: var(--accent-color-dark-hover);
}

img.screenshot {
	border-radius: 1rem;
	box-shadow: 0px 2px 12px 0px rgba(0,0,0,0.3);
	margin-bottom: 5px;
}

.download {
	padding-bottom: 2rem;
}

figure.hidden {
	display: none;
}

.screenbtn {
	margin: 6px;
	padding: 0;
	background: none!important;
	display:inline-block;
	border-radius: 0.33rem;
}

.screenbtn:hover {
	outline-style: solid;
	outline-color: var(--accent-color);
	outline-offset: 3px;
	outline-width: 3px;
}


.screenbtn.active {
	outline-style: solid;
	outline-color: var(--accent-color-back);
	outline-offset: 3px;
	outline-width: 3px;
}

.screenbtn img {
	height: 64px;
	width: auto;
	border-radius: 0.33rem;
	margin: 0;
	padding: 0;
	display:block;
	box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.3);
}

section {
	margin-bottom: 2rem;
}

#main-header.page-header {
	padding-bottom: 8rem;
	margin-bottom: -1rem;
}


.cover-image {
	display: block;
	border-radius: 16px;
	margin: auto;
	max-height:200px;
	width: 100%;
	object-fit: cover;
	margin-bottom: 1rem;
}

.article-metadata {
	font-style: italic;
}

.author-identity {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

ul.author-links {
	list-style: none;
	margin: 0;
	text-align: center;
	li {
		display: inline-block;
		padding: 0;
		margin: 0;
	}
	li:not(:first-child)::before {
		content:" ⋅ "
	}
}

.avatar {
	border-radius: 9999px;
	margin-right: 1rem;
}

.flat-list li {
	display: inline-block;
	margin: 0;
	margin-right: 0.33rem;
}

span.emoji-span {
	width: 1.6rem;
	height: 1.6rem;
	vertical-align: -.3rem;
	transform-origin: 50%;
	z-index: 10;
	transition: transform .66s ease-out;
	display: inline-block;
	position: relative;
	transform: scale(1);
}

p > span.emoji-span:only-child {
	width: auto;
	height: auto;
}

p > span.emoji-span:only-child:hover {
	transform: scale(1);
}

span.emoji-span:hover {
	transform: scale(2);
}

img.emoji {
	width:auto;
	height:100%;
}

.markdown-alert {
	--well-color: var(--accent-color-back);
	color: var(--accent-color-text);
}

.markdown-alert p {
	margin: 0;
	padding: 0;
}

.markdown-alert-title {
	font-weight: bold;
}

#paginator {
	ul {
		list-style: none;
		display: flex;
		a,
		.current-page {
			padding: .5rem .5rem;
			border: none;
			border-radius: var(--border-radius);
			outline-offset: 2px;
		}
		.current-page {
			background-color: var(--accent-color);
			color: var(--background-color);
		}
	}
}