/* Articles de blog — avocat-montreal.ca (mu-plugin am-articles) */
body.single-post .post-single {
	--am-bleu: #0a6bb5; --am-bleu-fonce: #08568f; --am-marine: #0f1f3a; --am-texte: #2f3a4b; --am-gris: #6b7587;
	--am-pale: #eef5fc; --am-bord: #e6ebf2;
}
body.single-post .single-blog { background: #fff; padding-bottom: 40px; }
body.single-post .single-blog .col-md-8 { max-width: 760px; flex: 0 0 100%; margin: 0 auto; }

/* ---------- Image, méta ---------- */
body.single-post .post-thumbnail { margin: 32px 0 22px; }
body.single-post .post-thumbnail img { width: 100%; height: auto; border-radius: 18px; display: block; }
body.single-post .post-meta ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; padding: 0; list-style: none; }
body.single-post .post-meta li { display: inline-flex !important; align-items: center; flex-wrap: wrap; padding-left: 0 !important; font-size: 0 !important; color: var(--am-gris); }
body.single-post .post-meta li > *, body.single-post .post-meta li a { font-size: 14px !important; }
body.single-post .post-meta li::before { font-size: 14px !important; color: var(--am-gris) !important; margin-right: 5px !important; font-family: var(--am-police, inherit) !important; background: none !important; width: auto !important; height: auto !important; position: static !important; border: 0 !important; transform: none !important; display: inline !important; }
body.single-post .post-meta li:first-child::before { content: "Par" !important; }
body.single-post .post-meta li:nth-child(2)::before { content: "Dans" !important; }
body.single-post .post-meta li:nth-child(2) a { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--am-pale); color: var(--am-bleu) !important; font-weight: 600; text-decoration: none; }
body.single-post .post-meta a { color: var(--am-marine) !important; font-weight: 600; text-decoration: none; }
body.single-post .post-meta li::after { display: none !important; }

/* ---------- Texte ---------- */
body.single-post .post-body { color: var(--am-texte); font-size: 17px; line-height: 1.8; }
body.single-post .post-body p { margin: 0 0 1.15em; }
body.single-post .post-body strong, body.single-post .post-body b { color: var(--am-marine); font-weight: 650; }
body.single-post .post-body a { color: var(--am-bleu); text-decoration: underline; text-decoration-color: rgba(10, 107, 181, .35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .15s; }
body.single-post .post-body a:hover { text-decoration-color: currentColor; }

/* ---------- Titres ---------- */
body.single-post .post-body h1 { color: var(--am-marine); font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 26px; }
body.single-post .post-body h2 {
	color: var(--am-marine); font-size: 28px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; margin: 2.1em 0 .7em; position: relative; padding-top: 18px;
}
body.single-post .post-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--am-bleu), #5fb0ea); }
body.single-post .post-body h3 { color: var(--am-bleu-fonce); font-size: 21px; line-height: 1.35; font-weight: 700; margin: 1.7em 0 .55em; }
body.single-post .post-body h4 { color: var(--am-marine); font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; }

/* ---------- Listes à puces ---------- */
body.single-post .post-body ul:not([class]) { list-style: none; margin: 0 0 1.3em; padding: 0; }
body.single-post .post-body ul:not([class]) > li { position: relative; padding-left: 28px; margin: 0 0 .55em; }
body.single-post .post-body ul:not([class]) > li::before {
	content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--am-bleu); transform: rotate(45deg);
}
body.single-post .post-body li ul:not([class]) { margin: .5em 0 .2em; }
body.single-post .post-body li ul:not([class]) > li::before { width: 8px; height: 8px; border-radius: 50%; transform: none; background: transparent; border: 2px solid var(--am-bleu); top: .65em; }

/* ---------- Listes numérotées ---------- */
body.single-post .post-body ol:not([class]) { list-style: none; counter-reset: am-num; margin: 0 0 1.4em; padding: 0; }
body.single-post .post-body ol:not([class]) > li { counter-increment: am-num; position: relative; padding-left: 46px; margin: 0 0 .9em; min-height: 30px; }
body.single-post .post-body ol:not([class]) > li::before {
	content: counter(am-num); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%;
	background: var(--am-pale); color: var(--am-bleu); font-size: 14px; font-weight: 700; line-height: 30px; text-align: center;
}

/* ---------- Citations, images, tableaux ---------- */
body.single-post .post-body blockquote {
	margin: 1.6em 0; padding: 20px 24px; background: var(--am-pale); border: 0; border-left: 4px solid var(--am-bleu);
	border-radius: 0 14px 14px 0; color: var(--am-marine); font-style: normal; font-size: 16px;
}
body.single-post .post-body blockquote p:last-child, body.single-post .post-body blockquote ol:last-child, body.single-post .post-body blockquote ul:last-child { margin-bottom: 0; }
body.single-post .post-body blockquote ol:not([class]) > li::before { background: #fff; }
body.single-post .post-body figure, body.single-post .post-body img { max-width: 100%; height: auto; }
body.single-post .post-body figure img, body.single-post .post-body p > img { border-radius: 14px; }
body.single-post .post-body figure { margin: 1.8em auto; }
body.single-post .post-body figcaption { font-size: 14px; color: var(--am-gris); text-align: center; margin-top: 8px; }
body.single-post .post-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; border: 1px solid var(--am-bord); border-radius: 12px; overflow: hidden; }
body.single-post .post-body th { background: var(--am-marine); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
body.single-post .post-body td { padding: 12px 14px; border-top: 1px solid var(--am-bord); vertical-align: top; }
body.single-post .post-body tr:nth-child(even) td { background: #f8fafd; }
body.single-post .post-body hr { border: 0; border-top: 1px solid var(--am-bord); margin: 2.2em 0; }

/* ---------- Sommaire (Easy Table of Contents) ---------- */
body.single-post #ez-toc-container {
	width: 100% !important; box-sizing: border-box; background: #f7f9fc !important; border: 1px solid var(--am-bord) !important;
	border-radius: 16px; box-shadow: none !important; padding: 20px 24px !important; margin: 0 0 2em !important;
}
body.single-post #ez-toc-container .ez-toc-title { color: var(--am-marine); font-size: 15px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
body.single-post #ez-toc-container ul { margin-top: 10px !important; }
body.single-post #ez-toc-container li { margin: 4px 0 !important; padding: 0 !important; font-size: 15px; line-height: 1.5; }
body.single-post #ez-toc-container li::before { display: none !important; }
body.single-post #ez-toc-container a { color: var(--am-texte) !important; text-decoration: none !important; }
body.single-post #ez-toc-container a:hover { color: var(--am-bleu) !important; }
body.single-post #ez-toc-container .ez-toc-list-level-1 > li > a { font-weight: 600; color: var(--am-marine) !important; }

/* ---------- Partage, auteur, articles liés ---------- */
body.single-post .social-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2.2em 0 0; padding-top: 22px; border-top: 1px solid var(--am-bord); }
body.single-post .social-share > span { font-size: 0 !important; }
body.single-post .social-share > span::before { content: "Partager :"; font-size: 15px; font-weight: 600; color: var(--am-gris); }
body.single-post .social-share__list { display: flex; gap: 8px; margin: 0; }
body.single-post .social-share__list a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--am-pale); color: var(--am-bleu) !important; transition: background .15s, color .15s; }
body.single-post .social-share__list a:hover { background: var(--am-bleu); color: #fff !important; }
body.single-post .post-single ~ .post-author, body.single-post .post-author {
	display: flex; gap: 20px; align-items: center; margin: 32px 0 0 !important; padding: 24px !important;
	background: #f7f9fc !important; border: 1px solid var(--am-bord) !important; border-radius: 16px !important; box-shadow: none !important;
}
body.single-post .post-author img { border-radius: 50%; }
body.single-post .post-author .author-name { color: var(--am-marine); font-size: 18px; margin: 0 0 6px; }
body.single-post .post-author .author-bio { color: var(--am-texte); font-size: 15px; line-height: 1.6; margin: 0; }
body.single-post .related-post { margin-top: 44px !important; border: 0 !important; padding: 0 !important; }
body.single-post .related-post--title { text-align: left !important; }
body.single-post .related-post--title h3 { color: var(--am-marine); font-size: 24px; font-weight: 750; margin: 0 0 16px; }
body.single-post .related-post .theme-blog-each {
	position: relative; height: 100%; margin-bottom: 18px; border: 1px solid var(--am-bord); border-radius: 14px; overflow: hidden;
	box-shadow: none; background: #fff; transition: transform .18s, box-shadow .18s;
}
body.single-post .related-post .theme-blog-each:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 31, 58, .09); }
body.single-post .related-post .theme-blog-title { font-size: 17px; line-height: 1.4; }
body.single-post .related-post .theme-blog-title a { color: var(--am-marine); text-decoration: none; }
body.single-post .related-post .theme-blog-title a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	body.single-post .post-body { font-size: 16px; }
	body.single-post .post-body h1 { font-size: 30px; }
	body.single-post .post-body h2 { font-size: 24px; }
	body.single-post .post-body h3 { font-size: 19px; }
	body.single-post .post-thumbnail img { border-radius: 12px; }
	body.single-post .post-author { flex-direction: column; text-align: center; }
	body.single-post .post-body ol:not([class]) > li { padding-left: 40px; }
}

/* Pages anglaises : libellés en anglais. */
html[lang^="en"] body.single-post .post-meta li:first-child::before { content: "By" !important; }
html[lang^="en"] body.single-post .post-meta li:nth-child(2)::before { content: "In" !important; }
html[lang^="en"] body.single-post .social-share > span::before { content: "Share:"; }
