/* =========================================================================
   CRP-IMG Poitiers : rubriques Droits et démarches (L6) et Actualités (L7)
   Ajouts du module crp-core Actualites aux shortcodes des gabarits.

   1. Filtres par catégorie des actualités (pastilles-liens)
   2. Base documentaire en préparation (règle Q09)
   ========================================================================= */

/* 1. Filtres par catégorie : des liens, l'état courant est aria-current. */

.crp-news-filter { margin: 0 0 24px; }

/* Les gabarits colorent les liens par « .et-db #et-boc .et-l a » (CLAUDE.md, piège du 22/10). */
body.crp-site .crp-news-filter a.crp-chip,
body.crp-site #et-boc .et-l .crp-news-filter a.crp-chip {
	color: var(--crp-ink);
	display: inline-block;
	line-height: 1.3;
	text-decoration: none;
}
body.crp-site .crp-news-filter a.crp-chip:hover,
body.crp-site #et-boc .et-l .crp-news-filter a.crp-chip:hover {
	border-color: var(--crp-primary);
	color: var(--crp-primary);
}
/* Rouge profond sur blanc : 9,62:1 (AA). */
body.crp-site .crp-news-filter a.crp-chip[aria-current="page"],
body.crp-site #et-boc .et-l .crp-news-filter a.crp-chip[aria-current="page"] {
	background: var(--crp-primary);
	border-color: var(--crp-primary);
	color: var(--crp-white);
}
body.crp-site #et-boc .et-l .crp-news-filter .crp-chips { list-style: none; padding: 0; }

@media (max-width: 480px) {
	.crp-news-filter .crp-chips { gap: 6px; }
	body.crp-site .crp-news-filter a.crp-chip { font-size: 14px; padding: 8px 12px; }
}

/* 2. Base documentaire en préparation (moins de 5 documents réels publiés). */

.crp-docs-wait {
	background: var(--crp-paper);
	border: 1px solid var(--crp-border);
	border-left: 4px solid var(--crp-primary);
	border-radius: var(--crp-radius);
	max-width: 760px;
	padding: 24px;
}
body.crp-site .crp-docs-wait p { margin: 0 0 12px; padding: 0; }
body.crp-site .crp-docs-wait p:last-child { margin-bottom: 0; }
body.crp-site .crp-docs-wait__title {
	color: var(--crp-ink);
	font-family: var(--crp-font-heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}
/* Encre douce sur papier : 7,2:1 (AA). */
.crp-docs-wait__text { color: var(--crp-ink-soft); }
.crp-docs-wait + p { margin-top: 16px; }

@media (max-width: 480px) {
	.crp-docs-wait { padding: 20px 16px; }
	body.crp-site .crp-docs-wait__title { font-size: 20px; }
	body.crp-site .crp-docs-wait .crp-btn { justify-content: center; width: 100%; }
}
