/* Styles pour le contenu généré par Blog Studio (mecaniquemag-blog-studio).
   Encadrés Astuce / Bon à savoir / Attention utilisés dans le corps des articles. */

.mmbs-callout {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 24px 0;
	padding: 18px 22px;
	border-radius: 16px;
	border-left: 4px solid;
	font-family: var(--pbmit-body-typography-font-family);
}

.mmbs-callout__icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.mmbs-callout p {
	margin: 0;
	line-height: 1.6;
	color: var(--pbmit-blackish-color);
}

.mmbs-callout--tip {
	border-left-color: #16a34a;
	background: #f0fdf4;
}
.mmbs-callout--tip strong,
.mmbs-callout--tip svg {
	color: #16a34a;
	stroke: #16a34a;
}

.mmbs-callout--info {
	border-left-color: #0036ff;
	background: #eff4ff;
}
.mmbs-callout--info strong,
.mmbs-callout--info svg {
	color: #0036ff;
	stroke: #0036ff;
}

.mmbs-callout--warning {
	border-left-color: #dc2626;
	background: #fef2f2;
}
.mmbs-callout--warning strong,
.mmbs-callout--warning svg {
	color: #dc2626;
	stroke: #dc2626;
}

/* Encadré « À retenir » (résumé citable en tête d'article, pour GEO/IA) */
.mmbs-callout--summary {
	border-left-color: #4f46e5;
	background: #eef2ff;
}
.mmbs-callout--summary strong,
.mmbs-callout--summary svg {
	color: #4f46e5;
	stroke: #4f46e5;
}
.mmbs-callout__body {
	flex: 1;
	min-width: 0;
}
.mmbs-callout--summary .mmbs-callout__title {
	margin: 0 0 8px;
	font-size: 1.05em;
}
.mmbs-callout--summary ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}
.mmbs-callout--summary ul li {
	margin: 5px 0;
	line-height: 1.55;
	color: var(--pbmit-blackish-color);
}

/* Tableaux du contenu (comparatifs / chiffres / compatibilités, pour GEO/IA) */
.pbmit-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 0.95em;
}
.pbmit-entry-content table th,
.pbmit-entry-content table td {
	border: 1px solid #e2e8f0;
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
}
.pbmit-entry-content table thead th {
	background: #eef2ff;
	color: #1e293b;
	font-weight: 600;
}
.pbmit-entry-content table tbody tr:nth-child(even) {
	background: #f8fafc;
}
@media (max-width: 600px) {
	.pbmit-entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Photo illustrative dans le corps de l'article */
.mmbs-body-image {
	margin: 28px 0;
	text-align: center;
}
.mmbs-body-image img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

/* FAQ en accordéon (natif <details>/<summary>, sans JS) */

.mmbs-faq {
	margin: 28px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mmbs-faq-item {
	border: 1px solid var(--pbmit-light-color);
	border-radius: 12px;
	background: var(--pbmit-white-color);
	overflow: hidden;
}

.mmbs-faq-question {
	cursor: pointer;
	list-style: none;
	padding: 16px 44px 16px 20px;
	font-weight: 600;
	font-family: var(--pbmit-heading-typography-font-family);
	color: var(--pbmit-heading-color);
	position: relative;
}
.mmbs-faq-question::-webkit-details-marker {
	display: none;
}
.mmbs-faq-question::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	line-height: 1;
	color: var(--pbmit-global-color);
	transition: transform 0.2s ease;
}
.mmbs-faq-item[open] .mmbs-faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}

.mmbs-faq-answer {
	padding: 0 20px 16px;
	color: var(--pbmit-body-typography-color);
	line-height: 1.6;
}
.mmbs-faq-answer p {
	margin: 0;
}

/* ==========================================================================
   Partage social (haut & bas d'article) + Articles similaires
   ========================================================================== */

/* --- Boutons de partage --- */
.karsfix-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0;
}
.karsfix-share--top { margin-top: 0; }
.karsfix-share-label {
	font-weight: 600;
	font-family: var(--pbmit-heading-typography-font-family);
	color: var(--pbmit-heading-color);
	margin-right: 4px;
}
.karsfix-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid var(--pbmit-light-color);
	border-radius: 30px;
	background: var(--pbmit-white-color);
	color: var(--pbmit-blackish-color);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.karsfix-share-btn svg { flex-shrink: 0; }
.karsfix-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,.12);
	text-decoration: none;
}
.karsfix-share-wa:hover   { background: #25d366; border-color: #25d366; color: #fff; }
.karsfix-share-fb:hover   { background: #1877f2; border-color: #1877f2; color: #fff; }
.karsfix-share-copy:hover { background: var(--pbmit-global-color); border-color: var(--pbmit-global-color); color: #fff; }
.karsfix-share-copy.is-copied {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

/* --- Articles similaires --- */
.karsfix-related {
	margin: 40px 0 10px;
	padding-top: 30px;
	border-top: 1px solid var(--pbmit-light-color);
}
.karsfix-related-title {
	font-size: 24px;
	margin: 0 0 22px;
	font-family: var(--pbmit-heading-typography-font-family);
	color: var(--pbmit-heading-color);
}
.karsfix-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 22px;
}
.karsfix-related-card {
	background: var(--pbmit-white-color);
	border: 1px solid var(--pbmit-light-color);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}
.karsfix-related-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.karsfix-related-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--pbmit-light-color);
}
.karsfix-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.karsfix-related-card:hover .karsfix-related-thumb img { transform: scale(1.06); }
.karsfix-related-noimg { display: block; width: 100%; height: 100%; }
.karsfix-related-body { padding: 16px 18px 20px; }
.karsfix-related-cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--pbmit-global-color);
	text-decoration: none;
	margin-bottom: 8px;
}
.karsfix-related-name {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 10px;
	font-family: var(--pbmit-heading-typography-font-family);
}
.karsfix-related-name a {
	color: var(--pbmit-heading-color);
	text-decoration: none;
}
.karsfix-related-name a:hover { color: var(--pbmit-global-color); }
.karsfix-related-date { font-size: 13px; color: var(--pbmit-body-typography-color); opacity: .8; }

@media (max-width: 575px) {
	.karsfix-related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.karsfix-related-name { font-size: 15px; }
	.karsfix-share-btn span { font-size: 13px; }
}
