@font-face {
    font-family: 'PlayfairDisplay';
    src: url('fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RobotoMono';
    src: url('fonts/RobotoMono/RobotoMono-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
	margin: 0;
	background-color: #111111;
	font-family: 'PlayfairDisplay', serif;
	color: #dbd7d7;
}

header {
	overflow: hidden;
	padding-right: 20px;
	background-color: #2f2d2d;
	#background-color: #32352d;
}

header h1 {
	float: left;
	margin: 9.5px 10px 9.5px 20px;
	color: white;
	font-size: 25px;
	font-family: 'PlayfairDisplay', serif;
}

footer {
	width: 100%;
	height: fit-content;
	padding-top: 15px;
	padding-bottom: 15px;
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: #2f2d2d;
}

.footer-search-line {
	text-align: center;
	margin-top: 19px;
	margin-bottom: 19px;
}

footer hr {
	width: 20%;
}

.footer-copyright-line {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.footer-copyright-line h3 {
	text-align: center;
	color: #648595;
}

.footer-copyright-line h4 {
	color: #9fafb7;
}

/* menu icon */

.menu-icon {
        cursor: pointer;
        #float: left;
	float: right;
        padding: 28px 20px;
        position: relative;
        user-select: none;
        z-index: 3;
}

@media screen and (min-width: 590px) {
        .menu-icon {
                display: none;
        }
}

.menu-icon .navicon {
        background: white;
        display: block;
        height: 2px;
        position: relative;
        transition: background .2s ease-out;
        width: 18px;
}

.menu-icon .navicon:before,
.menu-icon .navicon:after {
        background: white;
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 100%;
}

.menu-icon .navicon:before {
        top: 5px;
}

.menu-icon .navicon:after {
        top: -5px;
}

/* menu btn */

.menu-btn {
        display: none;
}

.menu-btn:checked ~ .main-menu {
        display: block;
}

.menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
        top: 0;
}

.main-menu {
	display: none;
	float: right;
	overflow: hidden;
}

@media screen and (min-width: 590px) {
	.main-menu {
		display: block;
	}
}

.main-menu .navbar-menu {
	display: block;
	float: right;
	margin: 0;
	font-size: 0px; /* Afin d'éviter le whitespace entre les li */
}

.main-menu .navbar-menu li {
	width: fit-content;
	height: fit-content;
	margin-right: 25px;
	display: inline-block;
	text-align: center;
	font-size: 17px;
}

.main-menu .navbar-menu li a {
	width: 100%;
	height: fit-content;
	padding-top: 15px;
	padding-bottom: 15px;
	display: inline-block;
	text-decoration: none;
	color: white;
	transition: color 0.25s ease;
}

.main-menu .navbar-menu li a:hover {
	color: #87868f;
}

.navbar-menu .current-menu-item a { /* Affecte le style de la page en cours sur le menu */
	font-weight: bold;
}

.homepres {
	height: 345px;
	background-color: #181a18;
	background-position: center;
	display: grid;
	align-items: center;
}

.homepres h1 {
	color: #fff;
	text-align: center;
	font-size: 30px;
}

.articles {
	display: flex;
	flex-wrap: wrap;
	#justify-content: center;
	gap: 20px;
	margin-left: 20px;
	margin-right: 20px;
}

.article-item {
	width: 600px;
	#height: 350px;
	height: fit-content;
	background-color: #1c1b1b;
	color: #fff;
	transition: transform 0.3s ease;
}

.article-item:hover {
	transform: scale(1.014);
}

.article-item * {
	text-decoration: none;
	color: #b4b4b4;
}

.article-item h3, .article-item p {
	width: 93%;
	height: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.article-item .div-thumbnail {
	margin: auto;
	max-width: 100%;
	#height: 60%;
	height: 220px;
	background-color: #141920;
}

.article-item .div-thumbnail img {
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
        object-position: top;
	overflow: hidden;
}

.pagination {
	margin-top: 25px;
}

.pagination a {
	color: #ffffff;
	font-family: Arial, 'Sans Serif';
}

.singlepost-article {
	width: 80%;
	margin: auto;
	#color: #ffffff;
	font-size: 13px;
}

.singlepost-article .topbar {
	margin-top: 25px;
	margin-bottom: 30px;
	padding-left: 15px;
	padding-right: 15px;
	width: auto;
	overflow: hidden;
	background-color: #32352d;
}

.singlepost-article .topbar h1 {
	float: left;
	font-size: 30px;
}

.singlepost-article .topbar .infos-article {
	float: right;
}

.singlepost-article .singlepost-thumbnail-box {
	width: fit-content;
	margin: auto;
	margin-bottom: 48px;
	border: 20px solid #32352d;
}

.singlepost-article .singlepost-thumbnail-box img {
	display: block;
	object-fit: cover;
	object-position: top;
	width: 100%;
	max-height: 100%;
}

@media screen and (min-width: 800px) {
	.singlepost-article .singlepost-thumbnail-box img {
        	max-height: 20vw;
	}
}

.singlepost-article .thecontent {
	width: 95%;
	margin: auto;
	font-size: 16px;
	font-family: 'RobotoMono', serif;
	font-size: 15px;
}

.singlepost-article .thecontent a {
	color: #b59494;
}

.singlepost-article .thecontent a:hover {
	color: #b38181;
}

.singlepost-article .thecontent img {
	max-width: 300px;
}
