/* ===== Habillage du site — à ajuster ici ===== */
:root {
	--csm-fond-site: #f4f6fa;     /* fond bleuté très clair autour du contenu blanc */
	--csm-bleu-fonce: #0a3f94;
	--csm-bleu: #1a6bc2;
	--csm-texte-doux: #5b6676;
	--csm-rayon: 14px;
	--csm-largeur: 1400px;        /* largeur maximale du contenu blanc (et de l'en-tête) */
}

/* Fond de page : bleuté, le contenu reste blanc */
body {
	background-color: var(--csm-fond-site) !important;
}

/* Largeur du contenu (et de l'en-tête/menu qui s'alignent dessus) */
.container,
.grid-container {
	max-width: var(--csm-largeur) !important;
}

/* Articles et pages classiques du thème : même boîte blanche que les pages à blocs */
.inside-article,
.separate-containers .inside-article,
.one-container .inside-article {
	background-color: #fff !important;
	border-radius: var(--csm-rayon);
	padding: 36px 40px !important;
	margin-top: 24px;
	margin-bottom: 24px;
}
#comments,
.comments-area {
	background-color: #fff;
	border-radius: var(--csm-rayon);
	padding: 24px 40px;
}

@media (max-width: 768px) {
	.inside-article,
	.separate-containers .inside-article,
	.one-container .inside-article {
		padding: 22px 18px !important;
		margin-top: 12px;
	}
}

/* Titres de sections plus affirmés */
.bloc-titre-zoom {
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-top: 2.2rem;
}

/* Cartes d'articles : coins arrondis, ombre douce, titre bleu foncé */
.csm-art {
	border-radius: var(--csm-rayon) !important;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(16, 24, 40, 0.08) !important;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.csm-art:hover {
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14) !important;
	transform: translateY(-2px);
}
.csm-art .card-img-top {
	height: 150px;
	object-fit: cover;
}
.csm-art-meta {
	font-size: 0.78rem;
	font-weight: 500;
	color: #7a889c;
	margin-bottom: 0.4rem;
}
.csm-art h2 a,
.csm-art h3 a,
.csm-art .csm-art-titre a {
	color: var(--csm-bleu-fonce) !important;
	font-weight: 700;
	line-height: 1.3;
}
.csm-art .text-muted {
	color: var(--csm-texte-doux) !important;
	line-height: 1.55;
}

/* ===== Titres de pages façon « espace métier » (Actualités, catégories, recherche, pages à blocs) ===== */
.csm-titre-page {
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: clamp(1.8rem, 3vw, 2.3rem);
	text-align: left;
}
.csm-titre-page .text-primary { color: #1a6bc2 !important; }
.csm-intro-page { max-width: 760px; line-height: 1.6; text-align: left; }

/* =====================================================================
   ARTICLE (single-post.php)
   ===================================================================== */
.csm-article-entete,
.csm-article-contenu,
.csm-article-pied { max-width: 760px; margin-left: auto; margin-right: auto; }
.csm-article-retour {
	display: inline-block;
	margin-bottom: 1.1rem;
	font-size: .88rem;
	font-weight: 700;
	color: #1a6bc2;
	text-decoration: none;
}
.csm-article-retour:hover { color: #0a3f94; text-decoration: underline; }
.csm-article-cats { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; }
.csm-article-cats a {
	display: inline-block;
	padding: .25rem .8rem;
	border-radius: 999px;
	background: #e3f0ff;
	color: #0a3f94;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
}
.csm-article-cats a:hover { background: #1a6bc2; color: #fff; }
.csm-article-titre {
	margin: 0 0 .8rem;
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #0a3f94;
}
.csm-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .2rem .6rem;
	margin: 0 0 1.6rem;
	font-size: .9rem;
	color: #5b6676;
}
.csm-article-image {
	margin: 0 auto 2.2rem;
	max-width: 960px;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(16, 24, 40, .14);
	background: #eef3fb;
}
.csm-article-image img {
	display: block;
	width: 100%;
	max-height: 440px;
	object-fit: cover;
}

/* --- Corps de l'article --- */
.csm-article-contenu { font-size: 1.06rem; line-height: 1.8; color: #1b2430; }
.csm-article-contenu > p:first-of-type {
	font-size: 1.22rem;
	line-height: 1.7;
	color: #2b3646;
}
.csm-article-contenu p { margin-bottom: 1.3rem; }
.csm-article-contenu h2,
.csm-article-contenu h3 {
	margin: 2.4rem 0 1rem;
	font-weight: 800;
	line-height: 1.25;
	color: #0a3f94;
}
.csm-article-contenu h2 { font-size: 1.6rem; padding-left: .8rem; border-left: 5px solid #1b7fd0; }
.csm-article-contenu h3 { font-size: 1.25rem; }
.csm-article-contenu a { color: #1a6bc2; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.csm-article-contenu a:hover { color: #0a3f94; }
.csm-article-contenu ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.csm-article-contenu ul > li {
	position: relative;
	margin-bottom: .7rem;
	padding: .8rem 1rem .8rem 2.7rem;
	background: #f1f5fc;
	border-radius: 12px;
}
.csm-article-contenu ul > li::before {
	content: "✓";
	position: absolute;
	left: .9rem;
	top: .8rem;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	background: #1a6bc2;
	color: #fff;
	font-size: .8rem;
	font-weight: 800;
	line-height: 1.45rem;
	text-align: center;
}
.csm-article-contenu ol { padding-left: 1.4rem; margin-bottom: 1.5rem; }
.csm-article-contenu ol > li { margin-bottom: .6rem; padding-left: .3rem; }
.csm-article-contenu img,
.csm-article-contenu figure img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}
.csm-article-contenu figure { margin: 1.8rem 0; }
.csm-article-contenu figcaption { margin-top: .5rem; font-size: .85rem; color: #5b6676; text-align: center; }
.csm-article-contenu blockquote {
	margin: 1.8rem 0;
	padding: 1.2rem 1.5rem;
	background: #eef0fb;
	border: 0;
	border-left: 5px solid #6f6fd0;
	border-radius: 0 14px 14px 0;
	font-size: 1.08rem;
}
.csm-article-contenu blockquote p:last-child { margin-bottom: 0; }
.csm-article-contenu table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .95rem; }
.csm-article-contenu th,
.csm-article-contenu td { padding: .65rem .8rem; border: 1px solid #e1e7f0; }
.csm-article-contenu th { background: #eef3fb; color: #0a3f94; }

/* --- Pied d'article --- */
.csm-article-pied { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #e6ebf3; }
.csm-article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.csm-article-actions-titre { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b6676; margin-right: .4rem; }
.csm-btn-copier,
.csm-btn-mail {
	display: inline-flex;
	align-items: center;
	padding: .5rem 1.1rem !important;
	border: 1.5px solid #1a6bc2;
	border-radius: 999px;
	background: #fff;
	color: #1a6bc2 !important;
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.csm-btn-copier:hover, .csm-btn-mail:hover,
.csm-btn-copier:focus-visible, .csm-btn-mail:focus-visible { background: #1a6bc2; color: #fff !important; }

/* --- Précédent / suivant --- */
.csm-article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	max-width: 760px;
	margin: 2.5rem auto 0;
}
.csm-article-nav-lien {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	padding: 1rem 1.2rem;
	background: #f4f7fc;
	border: 1px solid #e6ebf3;
	border-radius: 14px;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.csm-article-nav-lien:hover { transform: translateY(-2px); border-color: #1a6bc2; box-shadow: 0 8px 18px rgba(26, 107, 194, .15); }
.csm-nav-suiv { text-align: right; grid-column: 2; }
.csm-nav-prec { grid-column: 1; }
.csm-nav-etiquette { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5b6676; }
.csm-nav-titre { font-weight: 700; color: #0a3f94; line-height: 1.3; }
@media (max-width: 575.98px) {
	.csm-article-nav { grid-template-columns: 1fr; }
	.csm-nav-suiv, .csm-nav-prec { grid-column: 1; text-align: left; }
}

/* --- À lire aussi --- */
.csm-article-lies { margin: 3rem auto 0; max-width: 1100px; padding-top: 2rem; border-top: 1px solid #e6ebf3; }
.csm-lies-titre { margin: 0 0 1.2rem; font-size: 1.3rem; font-weight: 800; color: #0a3f94; text-transform: uppercase; letter-spacing: .02em; }
