/*
 * Page d'article enrichie (lot A4, docs/PLAN_ARTICLES_PAGES.md) :
 * fil d'Ariane, ligne d'auteur, sommaire, partage, encart de devis,
 * présentation de l'auteur et « À lire aussi ».
 * Couleurs reprises du site vitrine (main.css) : #c60000 et #051922.
 */

.article-fil ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 14px;
	color: #6f6f6f;
}

.article-fil li {
	max-width: 100%;
}

.article-fil li + li::before {
	content: "›";
	margin: 0 8px;
	color: #b0b0b0;
}

.article-fil li[aria-current] {
	/* Titre long : une ligne, coupée proprement. */
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
	display: inline-block;
}

.article-fil a {
	color: #051922;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Ligne d'auteur : les éléments passent à la ligne sur mobile. */
p.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

p.article-meta span {
	margin-right: 0;
}

.article-auteur strong {
	color: #051922;
}

/* Images du texte : leurs dimensions déclarées ne doivent pas les déformer. */
#contenu img {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
}

#contenu h2,
#contenu h3 {
	/* Une ancre suivie ne doit pas cacher l'intertitre sous l'en-tête fixe. */
	scroll-margin-top: 110px;
}

/* Sommaire */
.article-sommaire {
	background: #f7f7f7;
	border-left: 4px solid #c60000;
	border-radius: 5px;
	padding: 16px 20px;
	margin: 10px 0 30px;
}

.article-sommaire-titre {
	font-weight: 700;
	color: #051922;
	margin-bottom: 8px !important;
}

.article-sommaire ol {
	margin: 0;
	padding-left: 20px;
}

.article-sommaire li {
	margin: 4px 0;
}

.article-sommaire a {
	color: #051922;
}

.article-sommaire a:hover,
.article-sommaire a:focus {
	color: #c60000;
}

/* Partage */
.article-partage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 35px 0;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.article-partage span {
	font-weight: 600;
	color: #051922;
	margin-right: 4px;
}

.article-partage a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 50px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.article-partage a:hover,
.article-partage a:focus {
	color: #fff;
	opacity: 0.88;
}

.article-partage-whatsapp {
	background: #128c4a;
}

.article-partage-facebook {
	background: #1877f2;
}

.article-partage-linkedin {
	background: #0a66c2;
}

/* Encart de devis */
.article-devis {
	background: #051922;
	color: #fff;
	border-radius: 8px;
	padding: 24px 28px;
	margin: 30px 0;
}

.article-devis p {
	color: #e6e9ea;
}

.article-devis .article-devis-titre {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}

.article-devis a.boxed-btn {
	margin-top: 6px;
}

.article-devis--liste ul {
	margin: 0;
	padding-left: 20px;
}

.article-devis--liste a {
	color: #fff;
	text-decoration: underline;
}

/* Présentation de l'auteur */
.article-auteur-bloc {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #f7f7f7;
	border-radius: 8px;
	padding: 20px;
	margin: 30px 0;
}

.article-auteur-photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.article-auteur-bloc p {
	margin-bottom: 0;
}

.article-auteur-nom {
	font-weight: 700;
	color: #051922;
	margin-bottom: 6px !important;
}

.article-auteur-nom span {
	display: block;
	font-weight: 400;
	font-size: 14px;
	color: #6f6f6f;
}

/* À lire aussi */
.article-lectures {
	margin: 40px 0 20px;
}

.article-lectures h2 {
	font-size: 24px;
	margin-bottom: 18px;
}

.article-lectures ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.article-lectures a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	color: #051922;
	background: #fff;
	transition: box-shadow 0.2s;
}

.article-lectures a:hover,
.article-lectures a:focus {
	box-shadow: 0 4px 16px rgba(5, 25, 34, 0.12);
	color: #c60000;
}

.article-lectures img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #eee;
}

.article-lectures-rubrique {
	display: block;
	padding: 12px 14px 0;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #c60000;
}

.article-lectures-titre {
	display: block;
	padding: 6px 14px 14px;
	font-weight: 600;
	line-height: 1.4;
}

.article-toutes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 20px;
}

@media (max-width: 767px) {
	.article-lectures ul {
		grid-template-columns: 1fr;
	}

	.article-devis {
		padding: 20px;
	}

	.article-fil li[aria-current] {
		max-width: 20ch;
	}
}
