/* BLOG */
.blog_previsualisation {
	margin: 15px 0 0;
	padding: 10px 15px;
	background: #fff4d6;
	border: 1px solid #f0c36d;
	font-size: 14px;
}

/* BLOG : FICHE ARTICLE */
.blog_article_infos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 10px 0 0;
}
#blog a.blog_badge {
	margin: 0;
	color: #fff;
	transition: background .2s;
}
#blog a.blog_badge:hover {
	background: #f20000;
}
.blog_similaires .blog_image {
	aspect-ratio: 16 / 9;
}
.blog_article_infos .blog_meta {
	margin: 0;
}
.blog_article_entete h1 {
	margin: 12px 0 15px;
	font-size: 28px;
	line-height: 1.25;
}
.blog_article_contenu {
	color: #333;
	font-size: 15px;
	line-height: 1.7;
}
.blog_article_contenu p {
	margin: 0 0 14px;
}
.blog_article_contenu h2,
.blog_article_contenu h3,
.blog_article_contenu h4 {
	margin: 28px 0 10px;
	color: #18234f;
	line-height: 1.3;
}
.blog_article_contenu h2 {
	font-size: 22px;
}
.blog_article_contenu h3 {
	font-size: 18px;
}
.blog_article_contenu h4 {
	font-size: 16px;
}
#blog .blog_article_contenu a {
	color: #f20000;
	text-decoration: underline;
}
.blog_article_contenu img {
	max-width: 100%;
	height: auto;
}
.blog_article_contenu ul,
.blog_article_contenu ol {
	margin: 0 0 14px 22px;
	padding: 0;
}
.blog_article_contenu li {
	margin-bottom: 5px;
}
.blog_article_image {
	margin: 10px 0 25px;
}
.blog_article_image .blog_image {
	aspect-ratio: 5 / 2;
}
.blog_video {
	position: relative;
	margin: 20px 0;
	padding-top: 56.25%;
}
.blog_video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
/* FAQ dépliable */
.blog_article_faq details {
	margin-bottom: 10px;
	border: 1px solid #e3e6ef;
	background: #fff;
}
.blog_article_faq summary {
	position: relative;
	padding: 14px 45px 14px 15px;
	cursor: pointer;
	font-weight: bold;
	list-style: none;
}
.blog_article_faq summary::-webkit-details-marker {
	display: none;
}
.blog_article_faq summary::after {
	content: "\25BC";
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	color: #f20000;
	font-size: 12px;
}
.blog_article_faq details[open] summary::after {
	content: "\25B2";
}
.blog_article_faq summary:hover {
	color: #f20000;
}
.blog_article_faq details div {
	padding: 0 15px 15px;
	color: #333;
	line-height: 1.6;
}
@media all and (max-width:680px) {
	.blog_article_entete h1 {
		font-size: 22px;
	}
	.blog_article_image .blog_image {
		aspect-ratio: 16 / 9;
	}
}

/* BLOG : PAGE D'ACCUEIL */
#blog {
	margin-bottom: 50px;
	color: #18234f;
}
#blog a {
	color: inherit;
	text-decoration: none;
}
.blog_intro h1 {
	margin: 10px 0 12px;
	font-size: 28px;
}
.blog_edito {
	max-width: 1000px;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}
.blog_edito p {
	margin: 0 0 10px;
}
/* Titre principal saisi dans l'édito (format « Titre 1 ») */
.blog_edito h1 {
	color: #18234f;
}
.blog_section {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 2px solid #f20000;
}
.blog_section_titre {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: bold;
}
.blog_vide {
	color: #6d6d6d;
}
/* Images et vignettes */
.blog_image {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #e3e6ef;
}
.blog_image img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.blog_image_lien {
	display: block;
}
.blog_badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 8px;
	background: #18234f;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: .03em;
	text-transform: uppercase;
}
/* A la une */
.blog_une {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 20px;
	align-items: start;
}
.blog_une_principal,
.blog_une_secondaire,
.blog_carte {
	background: #fff;
	border: 1px solid #e3e6ef;
}
.blog_une_principal_texte {
	padding: 15px 20px 20px;
}
.blog_une_principal h3 {
	margin: 0 0 8px;
	font-size: 20px;
}
.blog_une_principal p {
	margin: 0 0 12px;
	color: #6d6d6d;
	line-height: 1.5;
}
.blog_lire {
	color: #f20000 !important;
	font-weight: bold;
}
.blog_une_secondaires {
	display: grid;
	gap: 20px;
}
.blog_une_secondaire {
	display: grid;
	grid-template-columns: 40% minmax(0, 1fr);
	gap: 15px;
	align-items: center;
	padding-right: 15px;
}
.blog_une_secondaire h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
}
#blog h3 a:hover,
.blog_carte:hover strong {
	color: #f20000;
}
.blog_une_principal:hover .blog_image img,
.blog_une_secondaire:hover .blog_image img,
.blog_carte:hover .blog_image img {
	transform: scale(1.04);
}
/* Grilles de vignettes (thématiques, articles récents) */
.blog_grille {
	display: grid;
	gap: 20px;
}
.blog_grille_4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.blog_grille_3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog_carte {
	display: block;
}
.blog_carte_texte {
	display: block;
	padding: 12px 15px 15px;
}
.blog_carte_texte strong {
	display: block;
	font-size: 15px;
	line-height: 1.35;
}
.blog_thematique .blog_carte_texte {
	text-align: center;
}
.blog_thematique .blog_image {
	aspect-ratio: 16 / 9;
}
.blog_compteur {
	display: block;
	margin-top: 4px;
	color: #f20000;
	font-size: 13px;
	font-weight: bold;
}
.blog_meta {
	display: block;
	margin-top: 6px;
	color: #6d6d6d;
	font-size: 13px;
}
/* Accès à la liste complète */
.blog_tous {
	margin-top: 30px;
	text-align: center;
}
.blog_bouton {
	display: inline-block;
	padding: 12px 30px;
	background: #18234f;
	color: #fff !important;
	font-weight: bold;
	transition: background .2s;
}
.blog_bouton:hover {
	background: #f20000;
}
@media all and (max-width:900px) {
	.blog_une {
		grid-template-columns: minmax(0, 1fr);
	}
	.blog_grille_4,
	.blog_grille_3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media all and (max-width:680px) {
	.blog_intro h1 {
		font-size: 22px;
	}
	.blog_grille_4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.blog_grille_3 {
		grid-template-columns: minmax(0, 1fr);
	}
	.blog_une_secondaire {
		grid-template-columns: 35% minmax(0, 1fr);
	}
}
.blog_une_principal .blog_image {
	aspect-ratio: 2 / 1;
}

/* BLOG : PAGE THEMATIQUE ET LISTES PAGINEES */
.blog_total {
	margin: 8px 0 0;
	color: #6d6d6d;
	font-size: 13px;
}
.blog_filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
}
.blog_filtres a {
	padding: 6px 14px;
	border: 1px solid #c9cedb;
	background: #fff;
	font-size: 13px;
	font-weight: bold;
	transition: border-color .2s, color .2s;
}
#blog .blog_filtres a:hover {
	border-color: #f20000;
	color: #f20000;
}
#blog .blog_filtres a.actif {
	border-color: #18234f;
	background: #18234f;
	color: #fff;
}
.blog_carte_article .blog_image {
	aspect-ratio: 16 / 9;
}
.blog_carte_article {
	display: flex;
	flex-direction: column;
}
.blog_carte_article .blog_carte_texte {
	display: flex;
	flex: 1;
	flex-direction: column;
}
.blog_carte_article h2 {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
}
#blog .blog_carte_article h2 a:hover {
	color: #f20000;
}
.blog_carte_article p {
	flex: 1;
	margin: 8px 0 12px;
	color: #6d6d6d;
	font-size: 13px;
	line-height: 1.5;
}
.blog_pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 30px;
}
.blog_pagination a,
.blog_pagination span {
	min-width: 38px;
	padding: 8px 12px;
	border: 1px solid #c9cedb;
	background: #fff;
	text-align: center;
	font-weight: bold;
}
#blog .blog_pagination a:hover {
	border-color: #f20000;
	color: #f20000;
}
.blog_pagination .actif {
	border-color: #18234f;
	background: #18234f;
	color: #fff;
}
.blog_pagination .inactif {
	color: #b5b9c4;
}
.blog_pagination .ellipse {
	border-color: transparent;
	background: none;
}
@media all and (max-width:680px) {
	.blog_pagination .inactif {
		display: none;
	}
}

/* BLOG : CARROUSELS */
.blog_section_entete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 18px;
}
.blog_section_entete .blog_section_titre {
	margin: 0;
}
.blog_carrousel_nav {
	display: flex;
	gap: 6px;
}
.blog_carrousel_nav button {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #18234f;
	background: #18234f;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.blog_carrousel_nav button:hover {
	border-color: #f20000;
	background: #f20000;
}
.blog_carrousel_nav button:disabled {
	border-color: #c9cedb;
	background: #fff;
	color: #c9cedb;
	cursor: default;
}
.blog_carrousel_inactif .blog_carrousel_nav {
	display: none;
}
.blog_carrousel {
	display: grid;
	grid-auto-flow: column;
	gap: 20px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.blog_carrousel::-webkit-scrollbar {
	display: none;
}
.blog_carrousel > * {
	scroll-snap-align: start;
}
/* Nombre de cartes visibles : largeur d'une carte = (largeur - espaces) / nombre */
.blog_carrousel_4 {
	grid-auto-columns: calc((100% - 60px) / 4);
}
.blog_carrousel_3 {
	grid-auto-columns: calc((100% - 40px) / 3);
}
@media all and (max-width:900px) {
	.blog_carrousel_4,
	.blog_carrousel_3 {
		grid-auto-columns: calc((100% - 20px) / 2);
	}
}
@media all and (max-width:680px) {
	/* Une carte et le début de la suivante, pour inviter à faire glisser */
	.blog_carrousel {
		gap: 12px;
	}
	.blog_carrousel_4,
	.blog_carrousel_3 {
		grid-auto-columns: 80%;
	}
}
/* Glisser à la souris (js/blog.js) : calage suspendu pendant le mouvement */
@media (hover: hover) and (pointer: fine) {
	.blog_carrousel {
		cursor: grab;
	}
}
.blog_carrousel.blog_carrousel_glisse {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}
.blog_carrousel img {
	-webkit-user-drag: none;
}
