/* =========================================================
   JOORNEE BLOG — GeneratePress
   Homepage / Archives / Articles
   ========================================================= */


/* ---------------------------------------------------------
   1. VARIABLES JOORNEE
   --------------------------------------------------------- */

:root {
	--joorn-bg: #f8f8fb;
	--joorn-card: #ffffff;
	--joorn-text: #202124;
	--joorn-muted: #6f7280;
	--joorn-border: rgba(25, 25, 35, 0.08);

	--joorn-coral: #ff746c;
	--joorn-peach: #ff9b78;
	--joorn-purple: #8b67d8;

	--joorn-gradient: linear-gradient(
		135deg,
		var(--joorn-coral) 0%,
		var(--joorn-peach) 48%,
		var(--joorn-purple) 100%
	);

	--joorn-radius: 18px;
	--joorn-radius-small: 12px;

	--joorn-shadow:
		0 8px 30px rgba(28, 28, 40, 0.06),
		0 2px 8px rgba(28, 28, 40, 0.035);

	--joorn-shadow-hover:
		0 16px 42px rgba(28, 28, 40, 0.10),
		0 4px 12px rgba(28, 28, 40, 0.05);
}


/* ---------------------------------------------------------
   2. ZONE DE CONTENU
   Homepage + archives + articles
   --------------------------------------------------------- */

body.home.blog .site-content,
body.archive .site-content,
body.search .site-content,
body.single-post .site-content {
	padding-top: 42px;
	padding-bottom: 72px;
}

body.home.blog .content-area,
body.archive .content-area,
body.search .content-area,
body.single-post .content-area {
	width: 100%;
}


/* =========================================================
   3. HOMEPAGE + ARCHIVES : CARTES ARTICLES
   ========================================================= */

body.home.blog .site-main,
body.archive .site-main,
body.search .site-main {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}


/* Chaque article devient une carte */

body.home.blog .site-main > article,
body.archive .site-main > article,
body.search .site-main > article {
	margin: 0;
	min-width: 0;
}

body.home.blog article .inside-article,
body.archive article .inside-article,
body.search article .inside-article {
	height: 100%;
	padding: 0 0 26px;
	background: var(--joorn-card);
	border: 1px solid var(--joorn-border);
	border-radius: var(--joorn-radius);
	box-shadow: var(--joorn-shadow);
	overflow: hidden;

	display: flex;
	flex-direction: column;

	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease;
}


/* Hover discret */

@media (hover: hover) {

	body.home.blog article .inside-article:hover,
	body.archive article .inside-article:hover,
	body.search article .inside-article:hover {
		transform: translateY(-4px);
		box-shadow: var(--joorn-shadow-hover);
		border-color: rgba(139, 103, 216, 0.14);
	}

}


/* ---------------------------------------------------------
   4. IMAGES DES CARTES
   --------------------------------------------------------- */

body.home.blog article .post-image,
body.archive article .post-image,
body.search article .post-image {
	margin: 0 0 24px;
	width: 100%;
	overflow: hidden;
}

body.home.blog article .post-image a,
body.archive article .post-image a,
body.search article .post-image a {
	display: block;
	width: 100%;
}

body.home.blog article .post-image img,
body.archive article .post-image img,
body.search article .post-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0;

	transition: transform 0.35s ease;
}

@media (hover: hover) {

	body.home.blog article:hover .post-image img,
	body.archive article:hover .post-image img,
	body.search article:hover .post-image img {
		transform: scale(1.025);
	}

}


/* ---------------------------------------------------------
   5. CONTENU DES CARTES
   --------------------------------------------------------- */

body.home.blog article .entry-header,
body.archive article .entry-header,
body.search article .entry-header,
body.home.blog article .entry-summary,
body.archive article .entry-summary,
body.search article .entry-summary,
body.home.blog article .entry-content,
body.archive article .entry-content,
body.search article .entry-content,
body.home.blog article footer.entry-meta,
body.archive article footer.entry-meta,
body.search article footer.entry-meta {
	padding-left: 26px;
	padding-right: 26px;
}


/* Titre */

body.home.blog article .entry-title,
body.archive article .entry-title,
body.search article .entry-title {
	font-size: clamp(1.2rem, 1.5vw, 1.42rem);
	line-height: 1.28;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 10px;
}

body.home.blog article .entry-title a,
body.archive article .entry-title a,
body.search article .entry-title a {
	color: var(--joorn-text);
	text-decoration: none;
	transition: color 0.18s ease;
}

body.home.blog article .entry-title a:hover,
body.archive article .entry-title a:hover,
body.search article .entry-title a:hover {
	color: var(--joorn-purple);
}


/* Métadonnées */

body.home.blog article .entry-meta,
body.archive article .entry-meta,
body.search article .entry-meta {
	color: var(--joorn-muted);
	font-size: 0.82rem;
	line-height: 1.4;
	margin-bottom: 15px;
}

body.home.blog article .entry-meta a,
body.archive article .entry-meta a,
body.search article .entry-meta a {
	color: inherit;
	text-decoration: none;
}


/* Extrait */

body.home.blog article .entry-summary,
body.archive article .entry-summary,
body.search article .entry-summary {
	color: var(--joorn-muted);
	font-size: 0.98rem;
	line-height: 1.65;
	margin-top: 3px;

	flex-grow: 1;
}

body.home.blog article .entry-summary p:last-child,
body.archive article .entry-summary p:last-child,
body.search article .entry-summary p:last-child {
	margin-bottom: 0;
}


/* "Lire la suite" */

body.home.blog .read-more,
body.archive .read-more,
body.search .read-more {
	display: inline-flex;
	align-items: center;
	margin-top: 18px;

	font-weight: 600;
	color: var(--joorn-purple);
	text-decoration: none;
}

body.home.blog .read-more::after,
body.archive .read-more::after,
body.search .read-more::after {
	content: " →";
	margin-left: 5px;
	transition: transform 0.18s ease;
}

body.home.blog .read-more:hover::after,
body.archive .read-more:hover::after,
body.search .read-more:hover::after {
	transform: translateX(3px);
}


/* =========================================================
   6. TITRES DES ARCHIVES / CATÉGORIES
   ========================================================= */

body.archive .page-header,
body.search .page-header,
body.home.blog .page-header {
	grid-column: 1 / -1;

	background: transparent;
	padding: 0 0 16px;
	margin: 0;
	border: 0;
	box-shadow: none;
}

body.archive .page-header h1,
body.search .page-header h1,
body.home.blog .page-header h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
	margin-bottom: 10px;
}

body.archive .page-header .taxonomy-description,
body.archive .page-header .taxonomy-description p {
	color: var(--joorn-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}


/* =========================================================
   7. PAGINATION
   ========================================================= */

body.blog .paging-navigation,
body.archive .paging-navigation,
body.search .paging-navigation {
	grid-column: 1 / -1;

	margin-top: 18px;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
	text-align: center;
}

.paging-navigation .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	margin: 3px;

	background: #fff;
	border: 1px solid var(--joorn-border);
	border-radius: 12px;
	color: var(--joorn-text);
	text-decoration: none;
}

.paging-navigation .page-numbers.current {
	background: var(--joorn-gradient);
	color: #fff;
	border-color: transparent;
}

.paging-navigation a.page-numbers:hover {
	border-color: rgba(139, 103, 216, 0.28);
}


/* =========================================================
   8. ARTICLE INDIVIDUEL
   ========================================================= */

body.single-post .site-main {
	max-width: 940px;
	margin-left: auto;
	margin-right: auto;
}

body.single-post article.post .inside-article {
	background: var(--joorn-card);
	border: 1px solid var(--joorn-border);
	border-radius: 22px;
	box-shadow: var(--joorn-shadow);

	padding: 54px 64px 64px;
	overflow: hidden;
}


/* ---------------------------------------------------------
   9. HEADER DE L'ARTICLE
   --------------------------------------------------------- */

body.single-post .entry-header {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

body.single-post .entry-title {
	font-size: clamp(2.15rem, 5vw, 3.35rem);
	line-height: 1.08;
	font-weight: 750;
	letter-spacing: -0.045em;
	margin-bottom: 18px;
	color: var(--joorn-text);
}

body.single-post .entry-header .entry-meta {
	color: var(--joorn-muted);
	font-size: 0.9rem;
	margin-bottom: 34px;
}

body.single-post .entry-header .entry-meta a {
	color: inherit;
	text-decoration: none;
}


/* ---------------------------------------------------------
   10. IMAGE PRINCIPALE ARTICLE
   --------------------------------------------------------- */

body.single-post .post-image {
	margin: 0 auto 44px;
	max-width: 100%;
}

body.single-post .post-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--joorn-radius);
	box-shadow: 0 8px 28px rgba(25, 25, 35, 0.07);
}


/* ---------------------------------------------------------
   11. LARGEUR ET TYPOGRAPHIE DU CONTENU
   --------------------------------------------------------- */

body.single-post .entry-content {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;

	color: var(--joorn-text);
	font-size: 1.08rem;
	line-height: 1.78;
}

body.single-post .entry-content p {
	margin-bottom: 1.45em;
}


/* H2 */

body.single-post .entry-content h2 {
	font-size: clamp(1.65rem, 3vw, 2.05rem);
	line-height: 1.22;
	font-weight: 700;
	letter-spacing: -0.025em;

	margin-top: 2.3em;
	margin-bottom: 0.8em;

	color: var(--joorn-text);
}


/* Petit accent Joornee devant les H2 */

body.single-post .entry-content h2::before {
	content: "";
	display: block;
	width: 42px;
	height: 4px;
	margin-bottom: 15px;

	border-radius: 99px;
	background: var(--joorn-gradient);
}


/* H3 */

body.single-post .entry-content h3 {
	font-size: clamp(1.3rem, 2.2vw, 1.5rem);
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.015em;

	margin-top: 2em;
	margin-bottom: 0.7em;

	color: var(--joorn-text);
}


/* ---------------------------------------------------------
   12. LIENS DANS LES ARTICLES
   --------------------------------------------------------- */

body.single-post .entry-content a:not(.wp-block-button__link) {
	color: var(--joorn-purple);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.single-post .entry-content a:not(.wp-block-button__link):hover {
	color: var(--joorn-coral);
}


/* ---------------------------------------------------------
   13. LISTES
   --------------------------------------------------------- */

body.single-post .entry-content ul,
body.single-post .entry-content ol {
	margin-top: 1.1em;
	margin-bottom: 1.6em;
	padding-left: 1.5em;
}

body.single-post .entry-content li {
	margin-bottom: 0.55em;
	padding-left: 0.25em;
}

body.single-post .entry-content li::marker {
	color: var(--joorn-purple);
}


/* ---------------------------------------------------------
   14. IMAGES DANS LE CORPS DE L'ARTICLE
   --------------------------------------------------------- */

body.single-post .entry-content img {
	border-radius: var(--joorn-radius);
}

body.single-post .entry-content figure {
	margin-top: 2em;
	margin-bottom: 2em;
}

body.single-post .entry-content figcaption {
	color: var(--joorn-muted);
	font-size: 0.85rem;
	line-height: 1.45;
	text-align: center;
	margin-top: 9px;
}


/* ---------------------------------------------------------
   15. CITATIONS
   --------------------------------------------------------- */

body.single-post .entry-content blockquote,
body.single-post .entry-content .wp-block-quote {
	position: relative;

	margin: 2.2em 0;
	padding: 24px 28px;

	background: linear-gradient(
		135deg,
		rgba(255, 116, 108, 0.06),
		rgba(139, 103, 216, 0.06)
	);

	border: 0;
	border-left: 4px solid var(--joorn-purple);
	border-radius: 0 var(--joorn-radius-small) var(--joorn-radius-small) 0;

	font-size: 1.05em;
}


/* ---------------------------------------------------------
   16. TABLEAUX
   --------------------------------------------------------- */

body.single-post .entry-content table {
	width: 100%;
	margin: 2em 0;

	border-collapse: separate;
	border-spacing: 0;

	border: 1px solid var(--joorn-border);
	border-radius: var(--joorn-radius-small);
	overflow: hidden;

	font-size: 0.94rem;
}

body.single-post .entry-content th {
	background: #f5f4f8;
	font-weight: 650;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
	padding: 13px 15px;
	border-color: var(--joorn-border);
}


/* ---------------------------------------------------------
   17. BOUTONS GUTENBERG
   --------------------------------------------------------- */

body.single-post .wp-block-button__link {
	background: var(--joorn-gradient);
	color: #fff;

	border-radius: 999px;

	padding: 13px 24px;

	font-weight: 650;
	text-decoration: none;

	box-shadow: 0 6px 18px rgba(139, 103, 216, 0.18);

	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

@media (hover: hover) {

	body.single-post .wp-block-button__link:hover {
		transform: translateY(-2px);
		box-shadow: 0 9px 24px rgba(139, 103, 216, 0.25);
		color: #fff;
	}

}


/* ---------------------------------------------------------
   18. FOOTER META DE L'ARTICLE
   --------------------------------------------------------- */

body.single-post footer.entry-meta {
	max-width: 760px;
	margin: 42px auto 0;

	padding-top: 24px;
	border-top: 1px solid var(--joorn-border);

	color: var(--joorn-muted);
	font-size: 0.85rem;
}

body.single-post footer.entry-meta a {
	color: var(--joorn-purple);
	text-decoration: none;
}


/* ---------------------------------------------------------
   19. NAVIGATION ARTICLE PRÉCÉDENT / SUIVANT
   --------------------------------------------------------- */

body.single-post .post-navigation {
	max-width: 940px;
	margin: 24px auto 0;
}

body.single-post .post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
	background: #fff;
	border: 1px solid var(--joorn-border);
	border-radius: var(--joorn-radius);
	padding: 20px;

	box-shadow: 0 4px 18px rgba(28, 28, 40, 0.04);
}


/* =========================================================
   20. TABLETTE
   ========================================================= */

@media (max-width: 1024px) {

	body.home.blog .site-main,
	body.archive .site-main,
	body.search .site-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	body.single-post article.post .inside-article {
		padding: 44px 42px 52px;
	}

}


/* =========================================================
   21. MOBILE
   ========================================================= */

@media (max-width: 700px) {

	body.home.blog .site-content,
	body.archive .site-content,
	body.search .site-content,
	body.single-post .site-content {
		padding-top: 24px;
		padding-bottom: 42px;
	}

	body.home.blog .site-main,
	body.archive .site-main,
	body.search .site-main {
		grid-template-columns: 1fr;
		gap: 20px;
	}


	/* Cartes */

	body.home.blog article .inside-article,
	body.archive article .inside-article,
	body.search article .inside-article {
		border-radius: 16px;
		padding-bottom: 22px;
	}

	body.home.blog article .entry-header,
	body.archive article .entry-header,
	body.search article .entry-header,
	body.home.blog article .entry-summary,
	body.archive article .entry-summary,
	body.search article .entry-summary,
	body.home.blog article .entry-content,
	body.archive article .entry-content,
	body.search article .entry-content,
	body.home.blog article footer.entry-meta,
	body.archive article footer.entry-meta,
	body.search article footer.entry-meta {
		padding-left: 20px;
		padding-right: 20px;
	}


	/* Article individuel */

	body.single-post article.post .inside-article {
		padding: 30px 20px 38px;

		border-left: 0;
		border-right: 0;

		border-radius: 16px;
	}

	body.single-post .entry-header {
		text-align: left;
	}

	body.single-post .entry-title {
		font-size: 2.05rem;
		line-height: 1.1;
	}

	body.single-post .entry-header .entry-meta {
		margin-bottom: 25px;
	}

	body.single-post .post-image {
		margin-bottom: 32px;
	}

	body.single-post .entry-content {
		font-size: 1.025rem;
		line-height: 1.72;
	}

	body.single-post .entry-content h2 {
		margin-top: 2em;
	}

	body.single-post .post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

}

/* =========================================================
   JOORNEE — CORRECTIONS META + CENTRAGE ARTICLES
   ========================================================= */


/* ---------------------------------------------------------
   1. HOME / ARCHIVES
   Supprimer date + auteur sous le titre
   --------------------------------------------------------- */

body.home.blog article .entry-header .entry-meta,
body.archive article .entry-header .entry-meta,
body.search article .entry-header .entry-meta {
	display: none !important;
}


/* ---------------------------------------------------------
   2. HOME / ARCHIVES
   Supprimer la catégorie en bas des cartes
   --------------------------------------------------------- */

body.home.blog article footer.entry-meta .cat-links,
body.archive article footer.entry-meta .cat-links,
body.search article footer.entry-meta .cat-links {
	display: none !important;
}


/* ---------------------------------------------------------
   3. ARTICLE
   Supprimer uniquement l'auteur
   Conserver la date de publication
   --------------------------------------------------------- */

body.single-post .entry-header .byline {
	display: none !important;
}


/* ---------------------------------------------------------
   4. ARTICLE
   Supprimer la catégorie en bas de page
   --------------------------------------------------------- */

body.single-post footer.entry-meta .cat-links {
	display: none !important;
}


/* ---------------------------------------------------------
   5. ARTICLE
   Forcer GeneratePress à utiliser toute la largeur disponible
   et recentrer réellement la carte article
   --------------------------------------------------------- */

body.single-post .site-content {
	display: block !important;
}

body.single-post #primary,
body.single-post .content-area {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.single-post .site-main {
	width: 100% !important;
	max-width: 940px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}


/* ---------------------------------------------------------
   6. ARTICLE
   Centrer précisément le contenu rédactionnel
   --------------------------------------------------------- */

body.single-post .entry-content {
	display: block;
	width: 100%;
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	box-sizing: border-box;
}


/* Même centrage pour les métadonnées de fin d'article */

body.single-post footer.entry-meta {
	width: 100%;
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* =========================================================
   JOORNEE — CENTRAGE IMAGE MISE EN AVANT ARTICLE
   ========================================================= */

body.single-post .post-image {
	width: 100%;
	text-align: center;
}

body.single-post .post-image a {
	display: block;
	width: 100%;
}

body.single-post .post-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-left: auto !important;
	margin-right: auto !important;
}
.featured-image {
	display: flex;
	justify-content: center;
}
.featured-image img {
	border-radius: var(--joorn-radius);
	box-shadow: -15px 15px 20px lightgrey;
}

/* =========================================================
   JOORNEE — AJUSTEMENTS MOBILE
   ========================================================= */

@media (max-width: 768px) {

	/* -----------------------------------------------------
	   1. MARGES LATÉRALES DU CONTENU
	   Home / archives / articles
	   ----------------------------------------------------- */

	body.home.blog .site-content,
	body.archive .site-content,
	body.search .site-content,
	body.single-post .site-content {
		padding-left: 14px !important;
		padding-right: 14px !important;
		box-sizing: border-box;
	}


	/* -----------------------------------------------------
	   2. HEADER MOBILE PLUS COMPACT
	   Remplace le padding actuel 20px 40px
	   ----------------------------------------------------- */

	.site-header .inside-header {
		padding: 12px 18px !important;
	}


	/* -----------------------------------------------------
	   3. BOUTON BURGER ROND AVEC BORDURE
	   ----------------------------------------------------- */

	.mobile-menu-control-wrapper .menu-toggle,
	.main-navigation .menu-toggle {
		width: 44px;
		height: 44px;

		padding: 0 !important;

		display: flex;
		align-items: center;
		justify-content: center;

		background: #ffffff !important;

		border: 1px solid rgba(25, 25, 35, 0.14) !important;
		border-radius: 50% !important;

		box-shadow: 0 3px 10px rgba(28, 28, 40, 0.05);

		box-sizing: border-box;
	}


	/* Taille de l'icône burger */

	.mobile-menu-control-wrapper .menu-toggle .gp-icon,
	.main-navigation .menu-toggle .gp-icon {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.mobile-menu-control-wrapper .menu-toggle svg,
	.main-navigation .menu-toggle svg {
		width: 19px;
		height: 19px;
	}


	/* -----------------------------------------------------
	   4. ÉVITER QUE LES CARTES REVIENNENT COLLÉES AUX BORDS
	   ----------------------------------------------------- */

	body.home.blog article .inside-article,
	body.archive article .inside-article,
	body.search article .inside-article,
	body.single-post article.post .inside-article {
		width: 100%;
		box-sizing: border-box;
	}

}