/* Page d'un article (maquettes ADRPSY_ACTU 772:9062 et mobile 772:9639). */

/* ---------------------------------------------------------------- visuel : forme à la couleur de la catégorie */
.adr-visuel__forme {
	position: relative;
	aspect-ratio: 479 / 404;
	overflow: hidden;
	background: var(--adr-cat, #232A55);
	-webkit-mask: url(../img/article/forme-article.svg) 0 0 / 100% 100% no-repeat;
	mask: url(../img/article/forme-article.svg) 0 0 / 100% 100% no-repeat;
}
.adr-visuel__forme .adr-visuel__picto {
	position: absolute;
	left: 24.84%;
	top: 18.56%;
	width: 50.52%;
	height: auto;
	max-width: none;
}
.adr-visuel__forme .adr-visuel__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* ---------------------------------------------------------------- partage */
.adr-partage {
	--adr-partage-echelle: 1;
	display: flex;
	align-items: center;
	gap: 14px;
}
.adr-partage__lien {
	display: block;
	line-height: 0;
	color: #232A55;
	transition: opacity .2s;
}
.adr-partage__lien:hover {
	opacity: .7;
}
.adr-partage__lien svg {
	display: block;
	width: auto;
	height: calc(var(--h) * var(--adr-partage-echelle));
}
.adr-partage__lien--mail svg {
	--h: 23px;
}
.adr-partage__lien--linkedin svg {
	--h: 34px;
}

/* ---------------------------------------------------------------- contenu de l'article (éditeur WordPress) */
.adr-article-texte {
	color: #232A55;
	font: 500 18px/24px "elza", sans-serif;
}
/* Place du bouton « Retour » en haut à droite : les premières lignes s'arrêtent avant lui. */
.adr-article-texte::before {
	content: "";
	float: right;
	width: 190px;
	height: 42px;
}
.adr-article-texte p,
.adr-article-texte ul,
.adr-article-texte ol {
	margin: 0 0 24px;
}
.adr-article-texte p:has(+ ul),
.adr-article-texte p:has(+ ol) {
	margin-bottom: 0;
}
.adr-article-texte ul,
.adr-article-texte ol {
	padding-left: 22px;
}
.adr-article-texte li::marker {
	font-weight: 700;
}
.adr-article-texte strong,
.adr-article-texte b {
	font-weight: 700;
}
.adr-article-texte a {
	color: inherit;
	text-decoration: underline;
}
.adr-article-texte h2 {
	margin: 0 0 37px;
	color: #232A55;
	font: 600 40px/46px "noka", sans-serif;
}
.adr-article-texte h3 {
	margin: 0 0 20px;
	color: #232A55;
	font: 600 23px/29px "noka", sans-serif;
}
.adr-article-texte .wp-block-columns {
	margin: 66px 0;
	align-items: flex-start !important;
}
.adr-article-texte .wp-block-columns:last-child {
	margin-bottom: 0;
}
.adr-article-texte .wp-block-column > :last-child,
.adr-article-texte > :last-child {
	margin-bottom: 0;
}
.adr-article-texte .wp-block-image {
	margin: 0 0 24px;
}
.adr-article-texte .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 25px;
}
.adr-article-texte .wp-block-column > .wp-block-image:only-child {
	margin: 0;
}

@media (max-width: 767px) {
	.adr-article-texte {
		font-size: 15px;
		line-height: 21px;
	}
	.adr-article-texte::before {
		display: none;
	}
	.adr-article-texte p,
	.adr-article-texte ul,
	.adr-article-texte ol {
		margin-bottom: 21px;
	}
	.adr-article-texte ul,
	.adr-article-texte ol {
		padding-left: 18px;
	}
	.adr-article-texte h2 {
		margin-bottom: 27px;
		font-size: 30px;
		line-height: 36px;
	}
	.adr-article-texte h3 {
		font-size: 18px;
		line-height: 24px;
	}
	.adr-article-texte .wp-block-columns {
		margin: 42px 0;
		gap: 42px !important;
	}
	/* Sur mobile, la photo d'une colonne passe sous le texte (maquette mobile). */
	.adr-article-texte .wp-block-column:has(> .wp-block-image:only-child) {
		order: 2;
	}
	.adr-article-texte .wp-block-image img {
		aspect-ratio: 316 / 251 !important;
		height: auto;
	}
}
