/*
Theme Name: GeneratePress child
Author: 
Description: Your description goes here
Version: 1.0
Template: generatepress

This is the child theme for GeneratePress theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
/* Style pour la section des catégories */
#categories-section {
    padding: 20px 0; /* Espacement en haut et en bas */
}

/* Style pour chaque catégorie */
body{
	background-color:#fff;
	font-family: roboto;
}

.site-content .content-area {
    width: 100% !important;
}

.grid-container {
	max-width: 1300px !important;
}

/* heading*/
h1 {
    font-family: inherit;
    font-weight: 700;
    font-size: 32px;
}

p a {
	font-style: italic;
}

header.page-header {
	margin: 0;
	padding: 20px !important;
}

.mobile-menu-control-wrapper .menu-toggle, 
.mobile-menu-control-wrapper .menu-toggle:hover, 
.mobile-menu-control-wrapper .menu-toggle:focus{
	background-color: #f4f4e9;
}

span.gp-icon.icon-menu-bars {
    color: #93b6c7;
    font-size: 30px;
}

.category-wrapper {
    margin-bottom: 40px; /* Espacement entre chaque catégorie */
    margin-top: 40px;
}

.category-wrapper h2 a {
    font-size: 27px;
    text-decoration: none;
    margin: 20px 0 40px 0;
    background: #dbaba9;
    border-radius: 10px;
    padding: 5px 10px;
    color: #fff;
	font-weight:700;
}

/* Style pour les colonnes des articles */
.category-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px; /* Compensation de la marge négative */
    margin-right: -15px; /* Compensation de la marge négative */
    border-bottom: 2px solid #f0f0f0;
}

.category-wrapper .easy-post {
    flex: 0 0 33.333%; /* Chaque colonne prend 1/3 de la largeur */
    max-width: 33.333%;
    padding-left: 15px; /* Espacement à gauche */
    padding-right: 15px; /* Espacement à droite */
    margin-bottom: 30px; /* Espacement entre les colonnes */
}

@media(max-width: 991px) {
	.category-wrapper .easy-post {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media(max-width: 767px) {
	.category-wrapper .easy-post {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Style pour le titre des articles */
#categories-section .post-item h2 {
    font-size: 18px;
    margin-top: 6px;
    margin-bottom: 6px;
	text-transform: capitalize;
    color: #161718;
    font-weight: 700;
}

#categories-section .post-item h2:hover {
    color: #dbaba9 !important;
}

/* Style pour l'image à la une */
#categories-section .post-item .post-thumbnail {
    margin-bottom: 7px; /* Espacement en dessous de l'image */
}

#categories-section .post-item .post-thumbnail img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    overflow: hidden;
	height: 205px;
}

@media(max-width: 767px) {
	#categories-section .post-item .post-thumbnail img {
		height: auto;
	}
}

#categories-section span.post-date {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding-left: 6px;
    margin-bottom: 12px;
    margin-left: 6px;
    border-left: 2px solid #222222;
}

#categories-section .post-contents {
    padding: 12px 18px 18px;
    background-color: #f7f8f9;
    min-height: 270px;
    height: 100%;
}

#categories-section .post-link {
    height: 100%;
    display: block;
    margin-bottom: 40px;
}

#categories-section .post-excerpt {
    font-size: 15px;
}

#categories-section .post-item {
    box-sizing: border-box;
    padding-bottom: 40px;
}

#categories-section .post-contents a{
	text-decoration: none;
}

/* single post */
h1.entry-title {
    background-color: #fff!important;
    font-size: 17px!important;
    border-radius: 15px;
    padding: 10px 20px;
    border: none!important;
    box-shadow: 0 0 12px 1px #e5e5e5;
    text-align: center;
    margin-bottom: 7px;
    margin-top: 7px!important;
}

.page-header-image-single img {
    border-radius: 20px;
    overflow: hidden;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
    clear: both;
    contain: content;
    aspect-ratio: 1 / 1.3;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background-color: var(--contrast);
    padding: 1.25em;
    border-radius: 20px;
    max-height: 240px;
}

a.wp-block-latest-posts__post-title {
    z-index: 1;
    text-wrap: balance;
    font-family: inherit;
    color: inherit;
    font-size: 1.2rem !important;
    line-height: 1.9rem;
    font-weight: 700;
    color: var(--base-3);
}

time.wp-block-latest-posts__post-date {
    z-index: 1;
    display: inline-block;
    color: var(--base) !important;
    font-size: .9rem !important;
    margin-top: .75rem !important;
    line-height: 1rem;
}

.wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: .95;
    -webkit-mask-image: -webkit-gradient(linear, left top, left 90%, from(rgba(0, 0, 0, .8)), to(rgba(0, 0, 0, .05)));
    mask-image: linear-gradient(to 90%, rgba(0, 0, 0, .8), rgba(0, 0, 0, .05));
}


header#masthead {
    background: #f4f4e9;
}

div#primary-menu{
	  background: #f4f4e9;
}

header.entry-header {
    display: none;
}

.copyright-bar {
    display: none;
}

.footer-bar {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-widget-2 {
    text-align: center;
}

.site-footer {
    background: #93b6c7;
}

div#footer-widgets {
    background: #93b6c7;
}

footer.site-info {
    background: #93b6c7;
}

.footer-widgets-container {
    padding: 30px 0px 0px 0px;
	position: relative;
}

.site-footer.footer-bar-active.footer-bar-align-right {
    position: relative;
}

.site-footer.footer-bar-active.footer-bar-align-right::before {
    content: '';
    background-image: url(http://todo.tsarajoro.dev/wp-content/uploads/2024/07/bg-shape.png);
    width: 100%;
    height: 40px;
    display: block;
    position: absolute;
    top: -15px;
	background-repeat: no-repeat;
}

@media (max-width:575px) {
	.site-footer.footer-bar-active.footer-bar-align-right::before {
		background-image: url(http://todo.tsarajoro.dev/wp-content/uploads/2024/07/gp-shape-mobile.png);
    	background-repeat: no-repeat;
	}
}

ul#menu-footer li a {
    text-decoration: none;
    color: #000;
}

ul#menu-footer li a:hover {
    color: #fff;
}

/*Archive custom*/

.list-category .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media(max-width: 1329px) {
	.single .grid-container.hfeed,
	.list-category .grid-container {
		padding: 0 20px;
	}
}

.list-category .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.list-category .grid-thumbnail {
    position: relative;
    height: 380px; /* Hauteur de l'image */
    background-size: cover;
    background-position: center;
	border-radius:30px;
}

.list-category .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
    border-radius: 30px;
/* 	padding: 1.25em; */
}

.list-category .nav-links {
    text-align: center;
    padding: 30px;
}

.list-category .grid-title {
    background-color: rgb(0 0 0 / 0%);
    color: #fff;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    font-size: 25px;
    border-radius: 0px 0px 30px 30px;
    margin: 0;
    font-size: 18px;
    line-height: 30px;
    font-weight: 900;
	padding: 0 30px;
}

.list-category .grid-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.content-grids {
    margin-bottom: 30px;
	width: 100%;
}

.content-grids span {
    color: #fff;
    padding: 0px 30px;
}

.related-posts-list {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
}

.list-category .related-posts-list .grid-thumbnail {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
}

section.related-posts h2 {
    color: #dbaba9;
    font-size: 27px;
    font-weight: 700;
    margin-top: 20px;
}

section.related-posts.list-category {
    border-top: 1px solid #eee;
    margin-top: 50px;
}

h1.entry-title-c {
    font-size: 32px;
    font-weight: 900;
    line-height: 32px;
}

.single div#primary {
    margin: 50px 0px;
}

.comment-single {
    margin-top: 50px;
}

img.single-post-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 30px;
}

.thumbs h2, h3 {
    color: #dbaba9;
    font-size: 27px;
    font-weight: 700;
}

section.related-posts.list-category h2 a {
    color: #dbaba9;
    text-decoration: none;
}

div#comments h3 {
    color: #000;
}

.entry-meta a {
    background: #93b6c7;
    font-size: 13px !important;
    border-radius: 104px;
    padding: 4px 11px 4px 10px;
    border: none !important;
    text-align: center;
    margin-bottom: 7px;
    margin-top: 7px !important;
    color: #fff;
    text-decoration:none;
}

.content-post {
    margin-top: 175px;
}

span.toc-counter {
    background: #93b6c7;
    padding: 8px 13px;
    border-radius: 20%;
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
}

@media (max-width: 575px) {
	span.toc-counter {
		padding: 3px 7px;
		margin-right: 0;
	}
}

ul.toc-list {
    margin: 0;
}

ul.toc-list li {
    list-style: none;
    margin: 17px 0px;
    border-bottom: 1px solid #eee;
    padding: 0px 0px 20px 0px;
}

ul.toc-list a {
    color: #93b6c7;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 575px) {
	ul.toc-list a {
		font-size: 14px;
	}
}

ul.toc-list a:hover{
	color:#f4f4e9;
}

ul.toc-list li:hover .toc-counter {
    padding: 10px 13px;
}

.table-of-contents {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 30px;
	margin-top: 60px;
}


.table-of-contents h2 {
    font-size: 24px;
    text-transform: uppercase;
    color: #dbaba9;
    font-weight: 600;
    margin-bottom: 40px;
}

.inside-navigation li.menu-item a svg{
	fill: currentColor;
	margin-right: .4em;
	width: 30px;
    height: 30px;
}

.inside-navigation li.menu-item a svg path {
    stroke: currentColor !important;
}

.inside-navigation li.menu-item a .sketchy_een {
    fill: currentColor !important;
}

.inside-navigation .sf-menu li.menu-item a {
	display: flex;
    align-items: center;
    font-family: 'Cookie', handwriting, sans-serif;
    font-weight: 400;
    text-transform: initial;
    font-style: normal;
    transition: line-height .3s ease;
    font-size: 35px;
    line-height: 50px;
    color: #93b6c7;
    padding-left: 27px;
    padding-right: 27px;
}

ul#menu-main-menu li a:hover {
    color: #dbaba9;
}

.list-category .grid-link,
.related-post .grid-link {
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.list-category .grid-link:hover,
.related-post .grid-link:hover {
    transform: scale(1.1);
	overflow: hidden;
}

/* Pour les écrans entre 768px et 1023px */
@media (max-width: 1023px) {
    .related-posts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pour les écrans jusqu'à 767px */
@media (max-width: 767px) {
    .related-posts-list {
        grid-template-columns: 1fr;
    }
}