.tlf-theme-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 26px auto;
	width: min(1160px, calc(100% - 32px));
}

.tlf-theme-card {
	background: #fff;
	border: 1px solid var(--line, #d9e2ea);
	border-radius: 6px;
	border-top: 5px solid var(--theme-color, #124F7A);
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	row-gap: 18px;
	min-height: 250px;
	padding: 22px;
	transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tlf-theme-card:hover {
	background-color: #eef4f8;
	box-shadow: 0 18px 34px rgba(21, 32, 43, .11);
	transform: translateY(-3px);
}

.fiche-row:hover {
	background-color: #eef4f8;
	box-shadow: 0 18px 34px rgba(21, 32, 43, .11);
	transform: translateY(-3px);
}

.tlf-theme-card h3 {
	color: var(--theme-deep, #15202b);
	font-size: 1.075rem;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.tlf-theme-card span,
.tlf-theme-card p {
	color: var(--muted, #5f6f7d);
	margin: 0;
}

.tlf-theme-card strong {
	color: var(--theme-color, #124F7A);
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.fiches-directory {
	padding-bottom: 62px;
	padding-top: 24px;
}

.fiches-directory .count-label {
	color: var(--muted, #5f6f7d);
	font-weight: 700;
	margin: 0 0 18px;
}

.filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.filter-buttons .tlf-filter {
	background: #fff;
	border: 1px solid var(--theme-color, var(--line, #d9e2ea));
	border-radius: 4px;
	color: var(--theme-color, #15202b);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	min-height: 40px;
	padding: 0 13px;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.filter-buttons .tlf-filter:hover {
	background: var(--theme-soft, #e9f3fa);
	border-color: var(--theme-color, #124F7A);
	color: var(--theme-color, #124F7A);
}

.filter-buttons .tlf-filter.is-active {
	background: var(--theme-color, #124F7A);
	border-color: var(--theme-color, #124F7A);
	color: #fff;
}

.filter-buttons .tlf-filter.is-active:hover {
	background: var(--theme-deep, #083452);
	border-color: var(--theme-deep, #083452);
	color: #fff;
}

.fiche-list {
	display: grid;
	gap: 8px;
}

.fiche-row {
	align-items: center;
	background: #fff;
	border: 1px solid var(--line, #d9e2ea);
	border-left: 6px solid var(--theme-color, #124F7A);
	border-radius: 6px;
	display: grid;
	gap: 18px;
	grid-template-columns: 220px minmax(0, 1fr);
	min-height: 68px;
	padding: 14px 16px;
	transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.fiche-row.is-hidden {
	display: none;
}

.fiche-row span {
	color: var(--theme-color, #124F7A);
	font-size: .82rem;
	font-weight: 900;
}

.fiche-row strong {
	line-height: 1.3;
}

.tlf-home-search {
	margin: -22px auto 28px;
	width: min(702px, calc(100% - 32px));
}

.tlf-home-intro {
	color: var(--ink, #15202b);
	font-size: 1.02rem;
	font-weight: 500;
	line-height: 1.55;
	margin: 0 auto 22px;
	text-align: center;
	width: min(80vw, calc(100% - 32px));
}

.tlf-home-search:not(.tlf-directory-search) .tlf-search-form {
	margin: 0 auto;
	max-width: 540px;
}

.tlf-directory-search {
	margin: 0 0 18px;
	width: 100%;
}

.tlf-directory-search .tlf-search-form {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.tlf-search-form {
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--line, #d9e2ea);
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(21, 32, 43, .07);
	display: flex;
	gap: 10px;
	padding: 10px;
}

.tlf-search-form input[type="search"] {
	appearance: none;
	background: #fff;
	border: 1px solid var(--line, #d9e2ea);
	border-radius: 4px;
	color: var(--ink, #15202b);
	flex: 1 1 auto;
	font: inherit;
	min-height: 46px;
	min-width: 0;
	padding: 0 14px;
}

.tlf-search-form input[type="search"]:focus {
	border-color: var(--blue, #124F7A);
	box-shadow: 0 0 0 3px rgba(18, 79, 122, .14);
	outline: 0;
}

.tlf-search-form button {
	background: var(--blue, #124F7A);
	border: 1px solid var(--blue, #124F7A);
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	min-height: 46px;
	padding: 0 20px;
	white-space: nowrap;
}

.tlf-search-form button:hover {
	background: #0d3f62;
	border-color: #0d3f62;
}

.tlf-search-results {
	margin-top: 18px;
}

.tlf-search-count,
.tlf-search-empty {
	color: var(--muted, #5f6f7d);
	font-weight: 700;
	margin: 0 0 14px;
}

.tlf-search-results .fiche-list {
	gap: 8px;
}

.theme-gestion-reglementation {
	--theme-color: #124F7A;
	--theme-deep: #123B5B;
	--theme-soft: #E9F3FA;
}

.theme-formation {
	--theme-color: #2F7D55;
	--theme-deep: #1F5B3D;
	--theme-soft: #EAF6F0;
}

.theme-social {
	--theme-color: #B64A4A;
	--theme-deep: #7C2E2E;
	--theme-soft: #FBEDED;
}

.theme-developpement-durable {
	--theme-color: #00847F;
	--theme-deep: #075D5B;
	--theme-soft: #E8F6F5;
}

.theme-technique {
	--theme-color: #4C5FB8;
	--theme-deep: #313F82;
	--theme-soft: #EEF1FF;
}

@media (max-width: 1040px) {
	.tlf-theme-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fiche-row {
		grid-template-columns: 180px minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.tlf-theme-grid,
	.fiche-row {
		grid-template-columns: 1fr;
	}

	.tlf-home-intro {
		width: 100%;
	}

	.tlf-search-form {
		flex-direction: column;
	}

	.tlf-search-form button {
		width: 100%;
	}

	.filter-buttons .tlf-filter {
		width: 100%;
	}
}
