/* L'An 30 editorial compatibility layer — 0.11.3.
 * Loaded explicitly from the parent theme so Shared UI can remain the active child theme.
 */

/* Canonical compact cards on thematic indexes. */
.topic-fiche-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(.85rem, 1.4vw, 1.25rem);
	align-items: stretch;
}
.topic-fiche-card {
	position: relative;
	min-width: 0;
	border: 1px solid rgba(16,34,53,.1);
	border-radius: 26px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(6,24,42,.06);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	scroll-margin-top: 150px;
}
.topic-fiche-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--topic-accent, var(--cyan, #31d4d8));
	z-index: 2;
	pointer-events: none;
}
.topic-fiche-card:hover {
	transform: translateY(-3px);
	border-color: rgba(16,34,53,.16);
	box-shadow: 0 24px 58px rgba(6,24,42,.1);
}
.topic-fiche-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.topic-fiche-card__link:focus-visible {
	outline: 4px solid var(--topic-accent, var(--cyan, #31d4d8));
	outline-offset: -6px;
}
.topic-fiche-card__media {
	margin: 0;
	aspect-ratio: 16 / 9;
	background: #e9eeec;
	overflow: hidden;
}
.topic-fiche-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.topic-fiche-card:hover .topic-fiche-card__media img { transform: scale(1.025); }
.topic-fiche-card__inner {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.4rem, 2.1vw, 2rem);
}
.topic-fiche-card__header h2 {
	margin: 0;
	font-size: clamp(1.65rem, 2.15vw, 2.25rem);
	line-height: 1;
	letter-spacing: -.04em;
}
.topic-fiche-card__excerpt {
	margin: 1.15rem 0 0;
	color: #425769;
	font-size: clamp(.94rem, 1vw, 1rem);
	line-height: 1.58;
}
.topic-fiche-card__cta {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin-top: auto;
	padding-top: 1.45rem;
	color: var(--ink, #102235);
	font-size: .74rem;
	font-weight: 820;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.topic-fiche-card__cta span {
	font-size: 1rem;
	line-height: 1;
	transition: transform .2s ease;
}
.topic-fiche-card:hover .topic-fiche-card__cta span { transform: translateX(3px); }

/* Dedicated Fiche view: close control and restored informative tags. */
.fiche-single__hero-inner { position: relative; }
.fiche-single__close {
	position: fixed;
	top: 182px;
	right: max(28px, calc((100vw - 1280px) / 2 + 28px));
	z-index: 70;
	width: 52px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255,255,255,.34);
	border-radius: 999px;
	background: rgba(7,20,33,.72);
	backdrop-filter: blur(14px) saturate(140%);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.fiche-single__close span {
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-1px);
}
.fiche-single__close:hover {
	transform: scale(1.04);
	background: rgba(255,255,255,.14);
	border-color: rgba(255,255,255,.58);
}
.fiche-single__close:focus-visible {
	outline: 3px solid var(--cyan, #31d4d8);
	outline-offset: 4px;
}
body.admin-bar .fiche-single__close { top: 214px; }

.fiche-single__tags {
	max-width: 760px;
	margin: 3rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line, rgba(16,34,53,.12));
}
.fiche-single__meta-label {
	margin: 0 0 .9rem;
	color: var(--muted, #687684);
	font-size: .72rem;
	font-weight: 820;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.fiche-single__tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
}
.fiche-single__tag-list span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: .42rem .7rem;
	border: 1px solid var(--line, rgba(16,34,53,.12));
	border-radius: 999px;
	background: rgba(255,255,255,.55);
	font-size: .76rem;
	font-weight: 680;
	line-height: 1.15;
}

@media (max-width: 1100px) {
	.topic-fiche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fiche-single__close { right: 28px; }
}

@media (max-width: 760px) {
	.topic-fiche-grid { grid-template-columns: 1fr; }
	.topic-fiche-card__inner { padding: 1.4rem; }
	.topic-fiche-card__header h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
	.fiche-single__close {
		top: 102px;
		right: 18px;
		width: 46px;
	}
	body.admin-bar .fiche-single__close { top: 148px; }
}
