/* Aventurier Digital theme — listes (blog, archives, recherche), article
   de blog, page 404. Chargé seulement sur ces pages (functions.php). */

.adt-listing {
	padding-bottom: 2.1875rem;
}

.adt-listing .page-header {
	margin: 1.875rem 0 1.5rem;
}

.adt-listing .page-title {
	margin: 0;
}

.adt-listing .page-header .search-form {
	margin-top: 1rem;
}

.archive-description {
	margin-top: .5rem;
	color: var(--ad-body-text-color);
}

.adt-empty-text {
	color: var(--ad-alternate-text-color);
}

/* ---------- Étiquette et métadonnées ---------- */

.adt-label {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ad-primary-color) 12%, #fff);
	color: var(--ad-primary-hover);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.adt-label a {
	color: inherit;
}

.adt-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	color: var(--ad-alternate-text-color);
	font-size: 13px;
}

.adt-meta__sep {
	opacity: .7;
}

.adt-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ad-headings-color);
	font-weight: 500;
}

.adt-meta__author:hover {
	color: var(--ad-primary-hover);
}

.adt-meta__author img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.adt-icon--flip {
	transform: scaleX(-1);
}

/* ---------- Cartes ---------- */

.adt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.adt-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ad-content-background);
	border: 1px solid var(--ad-border-color);
	border-radius: var(--ad-block-radius);
	transition: box-shadow .2s, transform .2s;
}

.adt-card:hover {
	box-shadow: 0 10px 28px rgba(18, 43, 70, .1);
	transform: translateY(-2px);
}

.adt-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ad-content-alt-background);
}

.adt-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.adt-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--ad-alternate-text-color);
	background: linear-gradient(135deg, color-mix(in srgb, var(--ad-primary-color) 14%, #fff), var(--ad-content-alt-background));
}

.adt-card__placeholder .adt-icon {
	width: 40px;
	height: 40px;
	opacity: .6;
}

.adt-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 20px 20px;
}

.adt-card .adt-card__title {
	margin: 0 0 8px;
	font-size: 1.125rem;
	line-height: 1.35;
}

.adt-card__title a {
	color: inherit;
}

.adt-card__title a:hover {
	color: var(--ad-primary-hover);
}

.adt-card__excerpt {
	flex: 1 1 auto;
	margin: 0 0 14px;
	font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
	.adt-card,
	.adt-card:hover {
		transition: none;
		transform: none;
	}
}

/* ---------- Article de blog ---------- */

.adt-single {
	max-width: 780px;
	margin: 0 auto;
}

.adt-single__header {
	margin: 1.875rem 0 1.5rem;
}

.adt-single__header .entry-title {
	margin: 0 0 14px;
	line-height: 1.25;
}

.adt-single__image {
	margin: 0 0 2rem;
}

.adt-single__image img {
	display: block;
	width: 100%;
	border-radius: var(--ad-block-radius);
}

.adt-single__content {
	font-size: 17px;
	line-height: 1.75;
}

.adt-single__content h2,
.adt-single__content h3 {
	margin-top: 1.6em;
}

.adt-single__content img {
	border-radius: 6px;
}

.adt-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2rem;
}

.adt-single__tags a {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ad-content-alt-background);
	color: var(--ad-headings-color);
	font-size: 13px;
}

.adt-single__tags a:hover {
	background: var(--ad-primary-hover);
	color: #fff;
}

.adt-single__comments {
	max-width: 780px;
	margin: 0 auto;
}

.adt-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ad-border-color);
}

.adt-related .adt-related__title {
	margin-bottom: 1.25rem;
	font-size: 1.375rem;
}

/* ---------- 404 ---------- */

.adt-empty {
	max-width: 560px;
	margin: 4rem auto 2rem;
	text-align: center;
}

.adt-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ad-primary-color) 12%, #fff);
	color: var(--ad-primary-hover);
}

.adt-empty__icon .adt-icon {
	width: 34px;
	height: 34px;
}

.adt-empty .adt-empty__title {
	font-size: 1.75rem;
}

.adt-empty .search-form {
	margin: 1.5rem auto;
}

.adt-empty__action {
	margin-top: 1.5rem;
}
