/* =====================================================================
   NEXIS — Actualités (liste, catégories, recherche)
   ===================================================================== */

.nexis-news-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 50% 90% at 100% 0%, rgba(22, 78, 112, 0.9), transparent 70%),
		radial-gradient(ellipse 35% 70% at 0% 100%, rgba(198, 146, 74, 0.12), transparent 70%),
		var(--wp--preset--color--navy) !important;
}
.nexis-news-hero::after {
	content: "";
	position: absolute;
	right: max(2rem, calc((100vw - 1400px) / 2));
	top: 50%;
	width: 300px;
	aspect-ratio: 762 / 512;
	transform: translateY(-50%);
	background: url(../img/logo-globe.png) center / contain no-repeat;
	filter: brightness(0) invert(1);
	opacity: 0.08;
	pointer-events: none;
}
.nexis-news-hero__lead { max-width: 40rem; margin-top: 1rem !important; margin-left: 0 !important; font-size: 1.125rem; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }

/* Barre des thèmes */
.nexis-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--wp--preset--spacing--40) !important; }
.nexis-topic {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1rem;
	border: 1px solid #E1E6EB;
	border-radius: 999px;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--navy);
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nexis-topic span { padding: 0 0.45rem; border-radius: 999px; background: #FBF4E8; font-size: 0.75rem; color: var(--nexis-copper-strong, #B7853F); }
.nexis-topic:hover { border-color: var(--wp--preset--color--copper); }
.nexis-topic.is-current { border-color: var(--wp--preset--color--navy); background: var(--wp--preset--color--navy); color: #fff; }
.nexis-topic.is-current span { background: rgba(255, 255, 255, 0.12); color: var(--wp--preset--color--copper); }

/* Cartes d'articles */
.nexis-news__grid { gap: 22px !important; }
.nexis-news-card {
	height: 100%;
	gap: 0 !important;
	overflow: hidden;
	border: 1px solid #E6EAEE;
	border-radius: 16px;
	background: #fff;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
.nexis-news-card:hover { transform: translateY(-4px); border-color: var(--wp--preset--color--copper); box-shadow: 0 16px 36px rgba(11, 31, 51, 0.09); }
.nexis-news-card__media { width: 100%; margin: 0 !important; overflow: hidden; background: linear-gradient(135deg, var(--wp--preset--color--navy), var(--wp--preset--color--deep-blue)); }
.nexis-news-card__media img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.nexis-news-card:hover .nexis-news-card__media img { transform: scale(1.04); }
.nexis-news-card__body { flex: 1; width: 100%; gap: 0.6rem !important; padding: 1.5rem 1.6rem 1.4rem; }
.nexis-news-card__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nexis-news-card__cat a { text-decoration: none; color: var(--nexis-copper-strong, #B7853F); }
.nexis-news-card__title { margin: 0 !important; font-size: 1.25rem !important; line-height: 1.3; }
.nexis-news-card__title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.nexis-news-card__title a:hover { color: var(--nexis-copper-strong, #B7853F); }
.nexis-news-card__excerpt { flex: 1; margin: 0 !important; font-size: 0.9375rem; line-height: 1.6; color: var(--wp--preset--color--anthracite); }
.nexis-news-card__excerpt p { margin: 0; }
.nexis-news-card__meta { width: 100%; margin-top: 0.4rem !important; padding-top: 0.9rem; border-top: 1px solid #EEF1F4; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.nexis-news__pagination { margin-top: var(--wp--preset--spacing--40) !important; }

/* En attente des premiers articles */
.nexis-news .wp-block-query-no-results { padding: 0; border: 0; background: none; }
.nexis-news-empty {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid #E6EAEE;
	border-radius: 18px;
	background: #fff;
}
.nexis-news-empty > * { margin: 0 !important; }
.nexis-news-empty__main { padding: 2.8rem 2.6rem; }
.nexis-news-empty__main .nexis-icon { width: 3.4rem; height: 3.4rem; border-radius: 12px; background: #FBF4E8; color: var(--nexis-copper-strong, #B7853F); }
.nexis-news-empty__title { margin: 1.3rem 0 0.7rem !important; font-size: clamp(1.5rem, 2.2vw, 2rem) !important; line-height: 1.25; }
.wp-block-query-no-results .nexis-news-empty__text { margin: 0 0 1.6rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 400; line-height: 1.7; color: var(--wp--preset--color--anthracite); }
.nexis-news-empty__aside {
	padding: 2.6rem 2.4rem;
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(22, 78, 112, 0.9), transparent 70%),
		var(--wp--preset--color--navy);
}
.wp-block-query-no-results .nexis-news-empty__label { margin: 0 0 1.1rem; font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--copper); }
.nexis-news-empty__themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.nexis-news-empty__themes li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}
.nexis-news-empty__themes li span { display: grid; flex: none; color: var(--wp--preset--color--copper); }

@media (max-width: 900px) {
	.nexis-news-empty { grid-template-columns: minmax(0, 1fr); }
	.nexis-news-hero::after { width: 200px; opacity: 0.06; }
}
@media (max-width: 600px) {
	.nexis-news-empty__main, .nexis-news-empty__aside { padding: 1.8rem 1.4rem; }
	.nexis-news-empty__themes { grid-template-columns: minmax(0, 1fr); }
	.nexis-news-hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nexis-news-card, .nexis-news-card__media img { transition: none; }
}
