/*
 * Blog (articles) : appels à l'action vers la boutique pro. Balisage : inc/blog-cta.php.
 */
body.single-post {
	--gkb-green: #003c38;
	--gkb-green-2: #1a5654;
	--gkb-ink: #0e1a19;
	--gkb-text: #1e2b2a;
	--gkb-muted: #5a6866;
	--gkb-gold: #d1af4b;
	--gkb-cream: #f6f5f0;
	--gkb-neon: #22e07a;
}
/* Le thème met overflow-x: hidden sur body, ce qui casse position: sticky. */
html body.single-post,
html body.blog,
html body.archive { overflow-x: clip !important; }
body.single-post .entry-content { position: relative; }

.gkb-kicker { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gkb-gold) !important; }
.gkb-list { margin: 0 0 18px !important; padding: 0 !important; list-style: none !important; }
.gkb-list li { position: relative; margin: 0 0 6px !important; padding-left: 24px !important; font-size: 15px; line-height: 1.45; list-style: none !important; }
.gkb-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--gkb-neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23003c38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }

.gkb-btn,
.entry-content a.gkb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s, color .2s, transform .2s;
}
.gkb-btn--gold,
.entry-content a.gkb-btn--gold { background: var(--gkb-gold); color: var(--gkb-ink) !important; }
.gkb-btn--gold:hover { background: #e0c062; transform: translateY(-1px); }
.gkb-btn--line,
.entry-content a.gkb-btn--line { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff !important; }
.gkb-btn--line:hover { border-color: var(--gkb-gold); }
.gkb-btn--block { width: 100%; }
.gkb-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 1. Fin d'article ---------- */
.gkb-end {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	margin: 40px 0 8px;
	overflow: hidden;
	border-radius: 16px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(34, 224, 122, .18) 0%, rgba(34, 224, 122, 0) 55%),
		linear-gradient(160deg, var(--gkb-green-2) 0%, var(--gkb-green) 60%, #00221f 100%);
	color: #d6e2e0;
	box-shadow: 0 24px 50px -28px rgba(0, 60, 56, .7);
}
.gkb-end__media { position: relative; min-height: 100%; }
.gkb-end__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset -30px 0 40px -20px rgba(0, 34, 31, .8); }
.gkb-end__body { padding: 28px 30px; }
.gkb-end__title { margin: 0 0 10px !important; color: #fff !important; font-size: 24px !important; font-weight: 900; line-height: 1.2; }
.gkb-end__text { margin: 0 0 14px !important; color: #d6e2e0 !important; font-size: 15px; line-height: 1.55; }
.gkb-end .gkb-list li { color: #fff; }
.gkb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px !important; }
.gkb-end__phone { margin: 0 !important; font-size: 13px; color: #d6e2e0 !important; }
.gkb-end__phone a { color: #fff !important; font-weight: 700; }

/* ---------- 2. Milieu d'article ---------- */
.gkb-mid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 18px;
	margin: 28px 0;
	padding: 16px 20px;
	border-left: 4px solid var(--gkb-gold);
	border-radius: 0 12px 12px 0;
	background: var(--gkb-cream);
}
.gkb-mid p { flex: 1 1 320px; margin: 0 !important; font-size: 15px; line-height: 1.5; color: var(--gkb-text); }
.gkb-mid strong { color: var(--gkb-green); }
.entry-content a.gkb-mid__link { color: var(--gkb-green) !important; font-weight: 800; white-space: nowrap; text-decoration: underline !important; text-decoration-color: var(--gkb-gold) !important; text-underline-offset: 4px; }

/* ---------- 3. Barre latérale du thème : widgets de démo masqués, carte boutique collante ---------- */
.tm-sidebar-area #block-2,
.tm-sidebar-area #block-4,
.tm-sidebar-area #block-7,
.tm-sidebar-area #block-8,
.tm-sidebar-area #block-9,
.tm-sidebar-area #tm_widget_blog_list-1 { display: none !important; }
.tm-sidebar-area .sidebar-area-inner { position: static !important; }
.gkb-side {
	position: sticky;
	top: 110px;
	margin-top: 24px;
	overflow: hidden;
	border: 1px solid #e1e4de;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px -26px rgba(14, 26, 25, .45);
}
.gkb-side .gkb-img { height: 170px; }
.gkb-side__body { padding: 18px 20px 20px; }
.gkb-side__title { margin: 0 0 12px !important; color: var(--gkb-ink, #0e1a19) !important; font-size: 19px !important; font-weight: 900; line-height: 1.25; }
.gkb-side .gkb-kicker { color: #b8962f !important; }
.gkb-side .gkb-list li { font-size: 14px; color: var(--gkb-text, #1e2b2a); }
.gkb-side a.gkb-btn--gold { background: #d1af4b; color: #0e1a19 !important; }
a.gkb-side__link { display: block; margin-top: 10px; text-align: center; color: #003c38 !important; font-size: 14px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 991px) { .gkb-side { display: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.gkb-end { grid-template-columns: 1fr; }
	.gkb-end__media { height: 180px; }
	.gkb-end__media::after { box-shadow: inset 0 -30px 40px -20px rgba(0, 34, 31, .8); }
	.gkb-end__body { padding: 22px 20px; }
	.gkb-end__title { font-size: 21px !important; }
	.gkb-actions .gkb-btn { flex: 1 1 100%; }
	.gkb-mid { padding: 14px 16px; }
}
/* La carte reste visible jusqu'en bas de l'article : la barre latérale occupe toute la hauteur de la colonne. */
@media (min-width: 992px) {
	.tm-blog-sidebar-row > .col-lg-4 > .tm-sidebar-area,
	.tm-blog-sidebar-row > .col-lg-4 > .tm-sidebar-area > .sidebar-area-inner { height: 100%; }
}
/* Le thème force la couleur du texte des articles (.single-post .entry-content p, li … !important) : textes clairs de l'encadré vert. */
.single-post .entry-content .gkb-end p,
.single-post .entry-content .gkb-end li,
.single-post .post-excerpt .gkb-end p { color: #d6e2e0 !important; }
.single-post .entry-content .gkb-end p.gkb-end__title,
.single-post .post-excerpt .gkb-end p.gkb-end__title,
.single-post .entry-content .gkb-end li { color: #fff !important; }
.single-post .entry-content .gkb-end p.gkb-kicker,
.single-post .post-excerpt .gkb-end p.gkb-kicker { color: #d1af4b !important; }
.single-post .entry-content .gkb-mid p,
.single-post .post-excerpt .gkb-mid p { color: #1e2b2a !important; }
.single-post .entry-content .gkb-end p.gkb-end__title,
.single-post .post-excerpt .gkb-end p.gkb-end__title { font-size: 24px !important; line-height: 1.2 !important; font-weight: 900 !important; }
.single-post .entry-content .gkb-end p.gkb-kicker,
.single-post .post-excerpt .gkb-end p.gkb-kicker { font-size: 12px !important; }
@media (max-width: 767px) {
	.single-post .entry-content .gkb-end p.gkb-end__title,
	.single-post .post-excerpt .gkb-end p.gkb-end__title { font-size: 21px !important; }
}
