/*
 * Le Fil : publications courtes (catégorie « fil »).
 * Page du Fil (templates/category-fil.html) et bloc « Le Fil » de l'accueil.
 */

/* ---------- Page du Fil : un flux centré ---------- */
.deft-fil-flux .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.deft-fil-flux .wp-block-post {
	margin: 0;
	padding-block: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--border);
}

.deft-fil-flux .wp-block-post:first-child {
	border-top-color: var(--wp--preset--color--foreground);
}

.deft-fil-entete {
	gap: 16px;
	margin-bottom: var(--wp--preset--spacing--30);
}

.deft-fil-entete .wp-block-post-title {
	margin: 0;
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
	line-height: 1.15;
}

.deft-fil-entete .wp-block-post-title a,
.deft-fil-entete .wp-block-post-date a {
	text-decoration: none;
	color: inherit;
}

.deft-fil-entete .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.deft-fil-entete .wp-block-post-date {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Le contenu d'une publication : images pleine largeur du flux, texte court. */
.deft-fil-flux .wp-block-post-content > * {
	max-width: none;
	margin-block: 0 var(--wp--preset--spacing--30);
}

.deft-fil-flux .wp-block-post-content > *:last-child {
	margin-bottom: 0;
}

.deft-fil-flux .wp-block-post-content img {
	border-radius: 2px;
}

.deft-fil-flux .wp-block-gallery {
	--wp--style--unstable-gallery-gap: 6px;
	gap: 6px;
}

.deft-fil-lien {
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.deft-fil-lien a {
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--accent);
	padding-bottom: 2px;
}

.deft-fil .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--foreground);
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.deft-fil .wp-block-query-pagination a {
	text-decoration: none;
}

/* ---------- Bloc « Le Fil » de l'accueil ---------- */
.deft-home-fil .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.deft-home-fil .wp-block-post {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 4px 14px;
	align-items: start;
	margin: 0;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
}

.deft-home-fil .wp-block-post-featured-image {
	grid-row: 1 / span 3;
	margin: 0;
}

.deft-home-fil .wp-block-post-featured-image img {
	display: block;
	width: 5.5rem;
	height: 5.5rem;
	object-fit: cover;
	border-radius: 2px;
}

.deft-home-fil .wp-block-post-date {
	margin: 0;
}

.deft-home-fil .wp-block-post-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.15;
}

.deft-home-fil .wp-block-post-title a {
	text-decoration: none;
}

.deft-home-fil .wp-block-post:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent);
}

.deft-home-fil .wp-block-post-excerpt {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.deft-home-fil .wp-block-post-excerpt__more-text {
	display: none;
}

@media (max-width: 900px) {
	.deft-home-fil .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}
