/*
 * Blog : gabarit article, CTA in-content, related, listes.
 * Chargée en plus de main.css sur les articles, le blog et ses archives.
 */

/* ---------- Article ---------- */

.cdsc-art {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 24px) clamp(40px, 6vw, 70px);
}

.cdsc-art-bc {
	font-size: .8rem;
	color: var(--muted);
	margin: 0 0 14px;
}

.cdsc-art-bc a {
	font-family: var(--body);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .74rem;
	color: var(--honey-2);
	text-decoration: none;
}

.cdsc-art-bc a:hover {
	text-decoration: underline;
}

.cdsc-art-title {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 370;
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	line-height: 1.04;
	letter-spacing: -.02em;
	margin: .12em 0 .4em;
}

.cdsc-art-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: .86rem;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.cdsc-art-meta i {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #C9A87A, #8A6F4F);
	flex: none;
}

.cdsc-art-cover {
	margin: 22px 0 0;
}

.cdsc-art-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

/* ---------- Corps de l'article ---------- */

.cdsc-artbody {
	font-family: var(--body);
	font-size: 1.14rem;
	line-height: 1.72;
	color: #38332C;
	margin-top: 24px;
}

.cdsc-artbody h2 {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 400;
	font-size: 1.75rem;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ink);
	margin: 1.5em 0 .4em;
}

.cdsc-artbody h3 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 1.32rem;
	letter-spacing: -.01em;
	margin: 1.4em 0 .4em;
}

.cdsc-artbody p {
	margin: 0 0 1.1em;
}

.cdsc-artbody strong {
	color: var(--forest-2);
}

.cdsc-artbody a {
	color: var(--forest);
}

.cdsc-artbody ul,
.cdsc-artbody ol {
	margin: 0 0 1.1em;
	padding-left: 1.3em;
}

.cdsc-artbody li {
	margin-bottom: .35em;
}

.cdsc-artbody img {
	height: auto;
	border-radius: 12px;
}

.cdsc-artbody figure {
	margin: 1.4em 0;
	max-width: 100%;
}

.cdsc-artbody figcaption {
	font-family: var(--sans);
	font-size: .8rem;
	color: var(--muted);
	margin-top: 8px;
}

.cdsc-artbody blockquote {
	margin: 1.4em 0;
	padding: 2px 0 2px 18px;
	border-left: 3px solid var(--honey);
	color: var(--muted);
	font-style: italic;
}

.cdsc-artbody iframe {
	max-width: 100%;
}

/* Encadré « Conseil du coach » (pattern de rédaction) */

.cdsc-callout {
	font-family: var(--sans);
	background: var(--forest-soft);
	border-left: 4px solid var(--forest);
	border-radius: 0 12px 12px 0;
	padding: 18px 20px;
	margin: 1.6em 0;
	font-size: 1rem;
	line-height: 1.55;
}

.cdsc-callout b,
.cdsc-callout strong {
	font-family: var(--body);
	font-weight: 700;
	color: var(--forest);
	display: block;
	margin-bottom: 4px;
}

/* ---------- CTA in-content ---------- */

.cdsc-incta {
	font-family: var(--body);
	background: linear-gradient(150deg, #FFFFFF, var(--honey-soft));
	border: 1.5px solid var(--honey);
	border-radius: 16px;
	padding: 22px;
	margin: 1.8em 0;
	display: flex;
	gap: 18px;
	align-items: center;
	box-shadow: var(--shadow-sm);
}

.cdsc-incta-media {
	flex: none;
	width: 120px;
}

.cdsc-incta-media img {
	display: block;
	width: 120px;
	height: 90px;
	object-fit: cover;
	border-radius: 10px;
}

/* Video-style thumbnail when the formation has no image of its own. */
.cdsc-incta-media-v {
	position: relative;
	display: block;
	width: 120px;
	height: 90px;
	border-radius: 10px;
	background: linear-gradient(140deg, #245C43, #163E2E);
}

.cdsc-incta-media-v .cdsc-prod-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(251, 246, 238, .95);
	display: grid;
	place-items: center;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
}

.cdsc-incta-media-v .cdsc-prod-play::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent var(--forest);
	margin-left: 3px;
}

.cdsc-incta-body h4 {
	font-family: var(--display);
	font-weight: 460;
	margin: 0 0 5px;
	font-size: 1.18rem;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.cdsc-incta-body p {
	margin: 0 0 12px;
	font-size: .88rem;
	color: var(--muted);
}

@media (max-width: 560px) {
	.cdsc-incta {
		flex-direction: column;
		text-align: center;
	}

	.cdsc-incta-body {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

/* ---------- À lire aussi ---------- */

.cdsc-related {
	border-top: 1px solid var(--line);
	margin-top: 34px;
	padding-top: 24px;
}

.cdsc-related h3 {
	font-family: var(--body);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .74rem;
	color: var(--honey-2);
	margin: 0 0 16px;
}

/* ---------- Grille et carte article ---------- */

.cdsc-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
}

.cdsc-post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.cdsc-post-im {
	display: block;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--honey-soft), var(--forest-soft));
}

.cdsc-post-im img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cdsc-post-bd {
	padding: 16px;
}

.cdsc-post-cat {
	font-family: var(--body);
	font-weight: 600;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--honey-2);
	margin: 0;
}

.cdsc-post-title {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 450;
	font-size: 1.16rem;
	line-height: 1.16;
	letter-spacing: -.01em;
	margin: 8px 0 6px;
}

.cdsc-post-title a {
	color: var(--ink);
	text-decoration: none;
}

.cdsc-post-title a:hover {
	color: var(--forest);
}

.cdsc-post-excerpt {
	font-size: .84rem;
	color: var(--muted);
	margin: 0;
}

/* ---------- Liste blog / archives ---------- */

.cdsc-bloglist {
	background: var(--sand);
	padding: clamp(30px, 5vw, 58px) var(--gutter) clamp(40px, 6vw, 70px);
}

.cdsc-bloglist-head {
	max-width: 1180px;
	margin: 0 auto 26px;
	text-align: center;
}

.cdsc-bloglist-head h1 {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 370;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -.02em;
	margin: 0 0 .25em;
}

.cdsc-bloglist-head .cdsc-sub {
	margin-left: auto;
	margin-right: auto;
}

.cdsc-bloglist .cdsc-posts {
	max-width: 1180px;
	margin: 0 auto;
}

.cdsc-bloglist-empty {
	max-width: 1180px;
	margin: 0 auto;
	text-align: center;
	color: var(--muted);
}

/* Pagination (markup natif the_posts_pagination) */

.cdsc-bloglist .navigation.pagination {
	max-width: 1180px;
	margin: 30px auto 0;
}

.cdsc-bloglist .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	font-family: var(--round);
	font-weight: 700;
	font-size: .88rem;
}

.cdsc-bloglist .page-numbers {
	display: inline-block;
	padding: 9px 14px;
	border-radius: 10px;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--forest);
	text-decoration: none;
}

.cdsc-bloglist .page-numbers.current {
	background: var(--forest);
	border-color: var(--forest);
	color: #fff;
}

.cdsc-bloglist .page-numbers.dots {
	background: transparent;
	border: none;
	color: var(--muted);
}

.cdsc-bloglist a.page-numbers:hover {
	border-color: var(--forest);
}

/* ---------- Leadband en pied d'article ---------- */

.cdsc-art .cdsc-leadband {
	border-radius: 18px;
	margin-top: 30px;
}

/* ---------- Commentaires ---------- */

.cdsc-comments {
	margin-top: 44px;
	padding-top: 34px;
	border-top: 1px solid var(--line);
	font-family: var(--body);
}

.cdsc-comments-title {
	font-family: var(--display);
	font-optical-sizing: auto;
	font-weight: 400;
	font-size: 1.55rem;
	letter-spacing: -.01em;
	margin: 0 0 22px;
}

.cdsc-comment-list,
.cdsc-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cdsc-comment-list .children {
	margin: 14px 0 0 24px;
	padding-left: 22px;
	border-left: 2px solid var(--line);
}

.cdsc-comment-list .children .cdsc-comment:last-child {
	margin-bottom: 0;
}

.cdsc-comment {
	margin-bottom: 20px;
}

.cdsc-comment-inner {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: var(--shadow-sm);
}

.cdsc-comment-head {
	display: flex;
	align-items: center;
	gap: 11px;
}

.cdsc-comment-av {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--forest);
	color: var(--cream);
	display: grid;
	place-items: center;
	font-weight: 600;
	flex: none;
}

.cdsc-comment-author {
	display: block;
	font-weight: 600;
	font-size: .92rem;
}

.cdsc-comment-date {
	font-size: .78rem;
	color: var(--muted);
}

.cdsc-comment-text {
	font-size: .95rem;
	line-height: 1.6;
	color: #38332C;
	/* Les lecteurs collent des URLs entières */
	overflow-wrap: anywhere;
}

.cdsc-comment-text p {
	margin: 10px 0 0;
}

.cdsc-comment-reply {
	margin-top: 10px;
}

.cdsc-comment-reply a {
	font-size: .82rem;
	font-weight: 600;
	color: var(--forest);
	text-decoration: none;
	border-bottom: 1px solid var(--honey);
	padding-bottom: 1px;
}

/* ---------- Formulaire de commentaire ---------- */

.cdsc-comment-form-wrap {
	margin-top: 34px;
}

.cdsc-reply-title {
	font-size: 1.3rem;
}

.cdsc-reply-title small {
	font-family: var(--body);
	font-size: .8rem;
	margin-left: 10px;
}

.cdsc-comment-form .cdsc-cf-field {
	margin: 0 0 14px;
}

.cdsc-comment-form label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	margin-bottom: 6px;
}

.cdsc-cf-hint {
	font-weight: 400;
	color: var(--muted);
}

.cdsc-comment-form .cdsc-field {
	font-size: .95rem;
}

.cdsc-comment-form textarea.cdsc-field {
	resize: vertical;
	min-height: 130px;
}

@media (min-width: 640px) {
	.cdsc-comment-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 14px;
	}

	.cdsc-comment-form > * {
		grid-column: 1 / -1;
	}

	.cdsc-comment-form .cdsc-cf-half {
		grid-column: auto;
	}
}

/* ---------- Partage ---------- */

.cdsc-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.cdsc-share-label {
	font-family: var(--body);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .74rem;
	color: var(--muted);
	margin-right: 4px;
}

.cdsc-share-btn {
	font-family: var(--body);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1;
	color: var(--forest);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 9px 18px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.cdsc-share-btn:hover {
	background: var(--forest-soft);
	border-color: var(--forest-soft);
}

.cdsc-share-copy.is-done {
	color: var(--forest-2);
	border-color: var(--forest);
	background: var(--forest-soft);
}

/* Cases d'abonnement (Jetpack) : la case reste sur la ligne du libellé,
   qui n'est pas un intitulé de champ — poids normal. */
.cdsc-comment-form .comment-subscription-form {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 10px;
}

.cdsc-comment-form .comment-subscription-form input[type="checkbox"] {
	margin-top: .25em;
	flex-shrink: 0;
}

.cdsc-comment-form .comment-subscription-form label {
	display: inline;
	font-weight: 400;
	margin-bottom: 0;
}

.cdsc-comment-form .form-submit {
	margin: 4px 0 0;
}
