/* ==================================================
   FORCE FULL WIDTH – BLOG TEMPLATE
================================================== */

.page-template-page-blog .site-main {
	width: 100%;
	max-width: 100%;
}

.page-template-page-blog .content-area {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	float: none;
}

.page-template-page-blog .site-content,
.page-template-page-blog #content {
	display: block;
	width: 100%;
	max-width: 100%;
}
.page-template-page-blog .site-content {
	display: flex;
}

.page-template-page-blog .content-area {
	flex: 0 0 100%;
}


/* ==================================================
   WRAPPER GLOBAL (IMPORTANT)
================================================== */

.myd-blog {
	background: #fff;
}




/* ===============================
   CONTAINER BLOG FORCE
================================ */

.myd-blog .container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	float: none !important;
}

/* ===============================
   CENTRAGE FILTRES
================================ */

.myd-blog-filters .container {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .75rem;
}

/* ===============================
   CENTRAGE ARTICLE A LA UNE
================================ */

.myd-blog-featured .container {
	display: flex;
	justify-content: center;
}

.myd-featured-card {
	width: 100%;
	max-width: 1200px;
}

























/* ==================================================
   HERO
================================================== */

.myd-blog-hero {
	position: relative;
	padding: 8rem 1rem;
	text-align: center;
	overflow: hidden;
}

.myd-blog-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg,#eff6ff,#f3e8ff,#fce7f3);
	z-index: -1;
}

.myd-blog-title span {
	font-size: clamp(3rem,6vw,4.5rem);
	background: linear-gradient(90deg,#2563eb,#7c3aed,#db2777);
	-webkit-background-clip: text;
	color: transparent;
}

.myd-blog-subtitle {
	max-width: 720px;
	margin: 1.5rem auto 2.5rem;
	font-size: 1.15rem;
	color: #475569;
}

.myd-blog-search input {
	width: 100%;
	max-width: 520px;
	padding: 1rem 1.5rem;
	border-radius: 14px;
	border: 2px solid #e5e7eb;
	font-size: 1rem;
}

/* ==================================================
   A LA UNE
================================================== */

.myd-blog-featured {
	margin: 5rem 0;
}

.myd-featured-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0,0,0,.08);
}

.myd-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.myd-featured-content {
	padding: 4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 900px) {
	.myd-featured-card {
		grid-template-columns: 1fr;
	}
}









/* ==================================================
   FILTRES
================================================== */

.myd-blog-filters {
	padding: 2rem 0;
	text-align: center;
}

.myd-blog-filters .container {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
}

.myd-blog .myd-filter {
	padding: .75rem 1.5rem;
	border-radius: 999px;
	border: 2px solid #e5e7eb;
	background: #fff;
	color: #0f172a;
	cursor: pointer;
	font-weight: 500;
	transition: all .3s ease;
}

.myd-blog .myd-filter:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.myd-blog .myd-filter.active {
	background: linear-gradient(90deg,#2563eb,#7c3aed);
	color: #fff;
	border-color: transparent;
}

/* ==================================================
   GRID
================================================== 

/* ===============================
   WRAPPER GRID BLOG
================================ */

.myd-blog-grid {
	padding: 4rem 0;
}

.myd-blog-grid .container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ===============================
   GRID ARTICLES (LA VRAIE)
================================ */

.myd-blog .myd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
	.myd-blog .myd-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.myd-blog .myd-grid {
		grid-template-columns: 1fr;
	}
}








/* Limite affichage initial */
.myd-post-card {
	display: none;
}

.myd-post-card.myd-visible {
	display: block;
}




.myd-blog-featured .container {
	max-width: 1200px;
}

.myd-featured-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.myd-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.myd-featured-content {
	padding: 4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 900px) {
	.myd-featured-card {
		grid-template-columns: 1fr;
	}
}



/* ===============================
   ANTI OVERFLOW – MOBILE FIRST
================================ */

html, body {
	max-width: 100%;
	overflow-x: hidden;
}



















/* ==================================================
   CARD BLOG – VERSION PREMIUM
================================================== */

.myd-blog .myd-post-card {
	position: relative;
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(37,99,235,0.08);
	transition:
		transform .35s ease,
		box-shadow .35s ease,
		border-color .35s ease;
}

.myd-blog .myd-post-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 22px;
	border: 2px solid transparent;
	background: linear-gradient(135deg,#2563eb,#7c3aed) border-box;
	-webkit-mask:
		linear-gradient(#fff 0 0) padding-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
}

.myd-blog .myd-post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(0,0,0,.12);
	border-color: transparent;
}

.myd-blog .myd-post-card:hover::before {
	opacity: 1;
}

/* ==================================================
   MEDIA
================================================== */

.myd-blog .myd-post-media {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.myd-blog .myd-post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.myd-blog .myd-post-card:hover img {
	transform: scale(1.08);
}

.myd-blog .myd-post-cat {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	background: rgba(255,255,255,.9);
	color: #2563eb;
	font-size: .75rem;
	padding: .35rem .75rem;
	border-radius: 999px;
	font-weight: 600;
}

/* ==================================================
   CONTENT
================================================== */

.myd-blog .myd-post-content {
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	/*height: 100%;*/
}

.myd-blog .myd-post-content p {
	flex-grow: 1;
}


.myd-blog .myd-post-content h3 {
	font-size: 1.2rem;
	margin-bottom: .75rem;
}

.myd-blog .myd-post-content p {
	color: #64748b;
	font-size: .95rem;
	line-height: 1.6;
	margin-bottom: auto;
}

.myd-blog .myd-post-meta {
	display: flex;
	justify-content: space-between;
	font-size: .8rem;
	color: #94a3b8;
	margin: 1rem 0;
}

/* ==================================================
   BOUTONS
================================================== */

.myd-blog .myd-btn-outline {
	display: inline-block;
	text-align: center;
	padding: .65rem 1rem;
	border-radius: 999px;
	border: 2px solid #e5e7eb;
	color: #0f172a;
	font-weight: 500;
	transition: all .3s ease;
}

.myd-blog .myd-btn-outline:hover {
	background: linear-gradient(90deg,#2563eb,#7c3aed);
	color: #fff;
	border-color: transparent;
}

/* ==================================================
   HIDE (FILTRES)
================================================== */

.myd-blog .myd-post-card.myd-hide {
	opacity: 0;
	transform: scale(.96);
	pointer-events: none;
}













/* ==================================================
   ARTICLE SEUL
================================================== */


.myd-article-sidebar {
	position: sticky;
	/*top: 120px;*/
}

.myd-article-toc {
	background: #f8fafc;
	padding: 1.5rem;
	border-radius: 16px;
	margin-bottom: 3rem;
}

.myd-article-toc h4 {
	margin-bottom: 1rem;
	font-size: 1rem;
}

.myd-article-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.myd-article-toc li {
	margin: .5rem 0;
	font-size: .9rem;
}

.myd-article-toc li.sub {
	padding-left: 1rem;
	opacity: .85;
}

.myd-article-toc a {
	color: #2563eb;
	text-decoration: none;
}

.myd-article-toc a:hover {
	text-decoration: underline;
}
/* ===== SOMMAIRE ARTICLE ===== */

.myd-article-toc {
	background: #f8fafc;
	padding: 1.5rem;
	border-radius: 18px;
	margin-bottom: 2.5rem;
	border: 1px solid #e5e7eb;
}

.myd-article-toc h4 {
	font-size: .95rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.myd-article-toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.myd-article-toc li {
	margin: .4rem 0;
	font-size: .9rem;
}

.myd-article-toc li.sub {
	padding-left: 1rem;
	opacity: .85;
}

.myd-article-toc a {
	color: #475569;
	text-decoration: none;
	transition: color .2s ease;
}

.myd-article-toc a:hover,
.myd-article-toc a.active {
	color: #2563eb;
	font-weight: 600;
}

.myd-article .myd-toc,
.sidebar .myd-toc {
	position: sticky;
	/*top: 120px;*/
}



.myd-code-block {
	margin: 3rem 0;
	border-radius: 16px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.myd-code-title {
	padding: .75rem 1.25rem;
	background: linear-gradient(90deg,#2563eb,#7c3aed);
	color: #fff;
	font-size: .85rem;
	font-weight: 600;
}

.myd-code-block pre {
	margin: 0;
	padding: 1.5rem;
	font-size: .9rem;
	line-height: 1.7;
	overflow-x: auto;
}





.myd-code-wrapper {
	margin: 2rem 0;
	border-radius: 14px;
	overflow: hidden;
	background: #0b0f1a;
	box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.myd-code-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
}

.myd-copy-btn {
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
}

.myd-copy-btn:hover {
	background: rgba(255,255,255,.25);
}

.myd-code-wrapper pre {
	margin: 0;
	padding: 20px;
	background: transparent !important;
	overflow-x: auto;
}

.myd-code-wrapper code {
	font-size: 14px;
	line-height: 1.6;
}


/*PERSON. ARTICLE TITRE*/
/* TITRE PRINCIPAL ARTICLE */
./* ===============================
   TITRES ARTICLE – STYLE HOME
================================ */

/* ===============================
   TITRES ARTICLE – DÉGRADÉ PREMIUM
   (FORCE TRANSPARENCE TEXTE)
================================ */

.myd-article h1,
.myd-article h2,
.myd-article h3 {
	/* FORCE LE DEGRADÉ */
	background-image: linear-gradient(
		to right,
		#2563eb,
		#7c3aed,
		#db2777
	) !important;

	-webkit-background-clip: text !important;
	background-clip: text !important;

	/* OBLIGATOIRE */
	color: transparent !important;
	-webkit-text-fill-color: transparent;

	font-weight: 800;
	letter-spacing: -0.02em;

	/* animation */
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.9s ease,
		transform 0.9s ease;
}

/* tailles */
.myd-article h1 {
	font-size: clamp(2.4rem, 4.5vw, 3.4rem);
	margin-bottom: 1.5rem;
}

.myd-article h2 {
	font-size: clamp(1.9rem, 3.2vw, 2.5rem);
	margin: 3rem 0 1rem;
}

.myd-article h3 {
	font-size: 1.4rem;
	margin: 2rem 0 0.75rem;
}

/* visible au scroll */
.myd-article h1.is-visible,
.myd-article h2.is-visible,
.myd-article h3.is-visible {
	opacity: 1;
	transform: translateY(0);
}






@media (max-width: 640px) {

	.myd-article-content .container {
		max-width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
		box-sizing: border-box;
	}
	.myd-article-main {
    max-width: 420px!important;
	margin-inline: auto;
		padding-inline: 1rem;
	}
}

@media (max-width: 640px) {

	.myd-article-layout,
	.myd-article-grid {
		display: block !important;
	}
}
@media (max-width: 640px) {

	.myd-article-toc,
	.myd-toc,
	.myd-article-sidebar {
		display: none !important;
	}
}

@media (max-width: 640px) {

	pre {
		max-width: 100%;
		overflow-x: auto;
	}

	pre code {
		white-space: pre;
	}

	.myd-code-wrapper {
		margin-left: -1rem;
		margin-right: -1rem;
		border-radius: 0;
	}
}
@media (max-width: 640px) {

	.myd-sticky-slider,
	.myd-sticky-track {
		max-width: 100%;
		overflow-x: hidden;
	}
}


