/**
 * Actualités RH — [aboro_actualites] et [aboro_voir_articles].
 * Charte du site : Poppins, rouge Âboro, filets fins, flèche rouge dans un
 * cercle (#707070). Les remises à zéro visent les styles Divi (marges des
 * titres, padding des paragraphes et des listes) sans !important.
 */

.aboro-news,
.aboro-news-cta {
	--an-red: var(--aboro-primary, #e21411);
	--an-ink: #242424;
	--an-text: #515151;
	--an-muted: #707070;
	--an-line: #d9d9d9;
	--an-soft: #efefef;
	--an-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	font-family: 'Poppins', Arial, sans-serif;
}

.aboro-news {
	position: relative;
	color: var(--an-ink);
}

.aboro-news *,
.aboro-news *::before,
.aboro-news *::after {
	box-sizing: border-box;
}

.aboro-news p,
.aboro-news h2,
.aboro-news h3 {
	margin: 0;
	padding: 0;
}

/* ── Filtres (dès deux catégories réelles) ─────────────────────────────── */

.aboro-news .aboro-news__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 clamp(28px, 3vw, 40px);
}

.aboro-news .aboro-news__chip {
	font: 500 14px/1 'Poppins', Arial, sans-serif;
	color: var(--an-ink);
	background: #fff;
	border: 1px solid var(--an-line);
	border-radius: 999px;
	padding: 11px 18px;
	cursor: pointer;
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.aboro-news .aboro-news__chip:hover {
	border-color: var(--an-ink);
}

.aboro-news .aboro-news__chip[aria-pressed='true'] {
	background: var(--an-ink);
	border-color: var(--an-ink);
	color: #fff;
}

.aboro-news .aboro-news__chip:focus-visible {
	outline: 2px solid var(--an-red);
	outline-offset: 3px;
}

/* ── Éléments communs ──────────────────────────────────────────────────── */

.aboro-news .aboro-news__media {
	position: relative;
	overflow: hidden;
	background: var(--an-soft);
}

.aboro-news .aboro-news__media img,
.aboro-news .aboro-news__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--an-ease);
}

.aboro-news .aboro-news__placeholder {
	display: grid;
	place-items: center;
	background: var(--an-red);
	color: #fff;
	font: 700 clamp(44px, 6vw, 84px)/1 'Poppins', Arial, sans-serif;
}

.aboro-news .aboro-news__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--an-muted);
}

.aboro-news .aboro-news__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--an-red);
}

.aboro-news .aboro-news__cat {
	color: var(--an-red);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.aboro-news .aboro-news__title {
	color: var(--an-ink);
	font-family: 'Poppins', Arial, sans-serif;
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* Tout l'article est cliquable : le lien du titre s'étend sur la carte. */
.aboro-news .aboro-news__link {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.45s var(--an-ease), color 0.25s;
}

.aboro-news .aboro-news__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.aboro-news .aboro-news__link:focus-visible {
	outline: none;
}

.aboro-news .aboro-news__link:focus-visible::after {
	outline: 2px solid var(--an-red);
	outline-offset: 6px;
}

.aboro-news .aboro-news__excerpt {
	font-size: 15px;
	line-height: 1.75;
	color: var(--an-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Flèche de la charte : cercle #707070, flèche rouge ; pleine au survol. */
.aboro-news .aboro-news__arrow {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	border: 1px solid #707070;
	border-radius: 50%;
	color: var(--an-red);
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.aboro-news .aboro-news__arrow svg {
	transition: transform 0.3s var(--an-ease);
}

.aboro-news .aboro-news__featured:hover .aboro-news__arrow,
.aboro-news .aboro-news__row:hover .aboro-news__arrow,
.aboro-news .aboro-news__featured:focus-within .aboro-news__arrow,
.aboro-news .aboro-news__row:focus-within .aboro-news__arrow {
	background: var(--an-red);
	border-color: var(--an-red);
	color: #fff;
}

.aboro-news .aboro-news__featured:hover .aboro-news__arrow svg,
.aboro-news .aboro-news__row:hover .aboro-news__arrow svg {
	transform: translateX(3px);
}

.aboro-news .aboro-news__featured:hover .aboro-news__link,
.aboro-news .aboro-news__row:hover .aboro-news__link,
.aboro-news .aboro-news__link:focus-visible {
	color: var(--an-red);
	background-size: 100% 1px;
}

.aboro-news .aboro-news__featured:hover img,
.aboro-news .aboro-news__row:hover img {
	transform: scale(1.04);
}

/* ── À la une ──────────────────────────────────────────────────────────── */

.aboro-news .aboro-news__featured {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	padding-bottom: clamp(36px, 4vw, 56px);
	border-bottom: 1px solid var(--an-line);
	animation: aboro-news-in 0.7s var(--an-ease) both;
}

.aboro-news .aboro-news__featured .aboro-news__media {
	aspect-ratio: 16 / 10;
}

.aboro-news .aboro-news__featured .aboro-news__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.aboro-news .aboro-news__kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--an-red);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.aboro-news .aboro-news__kicker::before {
	content: '';
	width: 28px;
	height: 1px;
	background: currentColor;
}

.aboro-news .aboro-news__featured .aboro-news__title {
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.25;
}

.aboro-news .aboro-news__featured .aboro-news__excerpt {
	-webkit-line-clamp: 3;
}

.aboro-news .aboro-news__featured .aboro-news__arrow {
	width: 52px;
	height: 52px;
	margin-top: 6px;
}

/* ── Liste ─────────────────────────────────────────────────────────────── */

.aboro-news ol.aboro-news__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aboro-news .aboro-news__item {
	margin: 0;
	padding: 0;
	animation: aboro-news-in 0.6s var(--an-ease) both;
	animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.aboro-news .aboro-news__item::marker {
	content: none;
}

.aboro-news .aboro-news__row {
	position: relative;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) 46px;
	grid-template-areas: 'media body arrow';
	gap: clamp(20px, 3vw, 44px);
	align-items: center;
	padding: 30px 0;
	border-bottom: 1px solid var(--an-line);
}

.aboro-news .aboro-news__row .aboro-news__media {
	grid-area: media;
	aspect-ratio: 16 / 10;
}

.aboro-news .aboro-news__row .aboro-news__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aboro-news .aboro-news__row .aboro-news__arrow {
	grid-area: arrow;
}

.aboro-news .aboro-news__row .aboro-news__title {
	font-size: 21px;
	line-height: 1.35;
}

/* Lignes de lecture confortables sur grand écran. */
.aboro-news .aboro-news__row .aboro-news__title,
.aboro-news .aboro-news__row .aboro-news__excerpt {
	max-width: 72ch;
}

.aboro-news .aboro-news__empty {
	padding: 48px 0;
	color: var(--an-muted);
	text-align: center;
}

/* ── Bouton de la charte : « Voir plus » et « Voir tous les articles » ── */

.aboro-news .aboro-news__more {
	display: flex;
	justify-content: center;
	margin-top: clamp(32px, 4vw, 48px);
}

.aboro-news .aboro-news__more:has(> [hidden]) {
	display: none;
}

.aboro-news-cta {
	display: flex;
	justify-content: center;
}

.aboro-news-cta--left {
	justify-content: flex-start;
}

.aboro-news-cta--right {
	justify-content: flex-end;
}

.aboro-news-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: #000;
	background-color: #efefef;
	border: 0;
	border-radius: 5px;
	font: 500 16px/1.7 'Poppins', Arial, sans-serif;
	padding: 10px 30px 10px 45px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}

.aboro-news-btn[hidden] {
	display: none;
}

.aboro-news-btn .aboro-news-btn__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 20px;
	height: 20px;
	color: var(--an-red, #e21411);
	transform: translateY(-50%);
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.aboro-news-btn:hover {
	background-color: #e5e5e5;
	color: #000;
}

.aboro-news-btn:hover .aboro-news-btn__icon {
	transform: translate(3px, -50%);
}

.aboro-news-btn:focus-visible {
	outline: 2px solid var(--an-red, #e21411);
	outline-offset: 3px;
}

.aboro-news-btn[aria-busy='true'] {
	cursor: progress;
	opacity: 0.75;
}

.aboro-news-btn[aria-busy='true'] .aboro-news-btn__icon {
	animation: aboro-news-nudge 0.9s ease-in-out infinite;
}

.aboro-news .aboro-news__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.aboro-news .aboro-news__status.is-error {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	margin-top: 14px;
	color: var(--an-red);
	font-size: 14px;
	text-align: center;
	white-space: normal;
}

/* ── Animations ────────────────────────────────────────────────────────── */

@keyframes aboro-news-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes aboro-news-nudge {
	0%, 100% {
		transform: translate(0, -50%);
	}
	50% {
		transform: translate(5px, -50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aboro-news *,
	.aboro-news-btn,
	.aboro-news-btn * {
		animation: none !important;
		transition: none !important;
	}
}

/* ── Tablette ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	/* Le texte y est plus haut que l'image : aligné en haut, il ne la déborde plus. */
	.aboro-news .aboro-news__featured {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}

	.aboro-news .aboro-news__row {
		grid-template-columns: 220px minmax(0, 1fr) 42px;
		gap: 24px;
		padding: 26px 0;
	}

	.aboro-news .aboro-news__row .aboro-news__title {
		font-size: 18px;
	}

	.aboro-news .aboro-news__arrow {
		width: 42px;
		height: 42px;
	}
}

/* ── Mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.aboro-news .aboro-news__featured {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding-bottom: 32px;
	}

	.aboro-news .aboro-news__featured .aboro-news__title {
		font-size: 23px;
	}

	.aboro-news .aboro-news__featured .aboro-news__arrow {
		width: 46px;
		height: 46px;
	}

	.aboro-news .aboro-news__row {
		grid-template-columns: 112px minmax(0, 1fr);
		grid-template-areas:
			'media body'
			'media arrow';
		gap: 10px 16px;
		align-items: start;
		padding: 22px 0;
	}

	.aboro-news .aboro-news__row .aboro-news__media {
		aspect-ratio: 1 / 1;
	}

	.aboro-news .aboro-news__row .aboro-news__title {
		font-size: 16px;
		line-height: 1.4;
	}

	.aboro-news .aboro-news__row .aboro-news__excerpt {
		display: none;
	}

	.aboro-news .aboro-news__row .aboro-news__arrow {
		width: 36px;
		height: 36px;
	}

	.aboro-news .aboro-news__row .aboro-news__arrow svg {
		width: 16px;
		height: 16px;
	}

	.aboro-news .aboro-news__meta {
		font-size: 12px;
	}

	.aboro-news .aboro-news__more .aboro-news-btn {
		width: 100%;
		justify-content: center;
	}
}
