/* ===== TEMPLATE "BLOG HOME" : SLIDER À LA UNE + BLOCS PAR CATÉGORIE ===== */

.am-home-slider {
	position: relative;
	margin: 0 0 4rem;
	overflow: hidden;
}
.am-home-slider-track {
	display: flex;
	transition: transform 0.6s ease-in-out;
	/*overflow: hidden;*/
}
@media (prefers-reduced-motion: reduce) {
	.am-home-slider-track {
		transition: none;
	}
}
.am-home-slide {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}
.am-home-slide-media {
	border-radius: 0.5rem;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.am-home-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.am-home-slide-badge {
	display: inline-flex;
	align-items: center;
	padding: .4em 1.1em;
	margin: 0 0 1rem;
	border: 1px solid #162d55;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #162d55;
}
.am-home-slide-title {
	margin: 0 0 .5rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
}
.am-home-slide-title a {
	color: #569ad3;
	text-decoration: none;
}
.am-home-slide-title a:hover { text-decoration: underline; }
.am-home-slide-date {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: #9a978f;
	text-align: left;
}
.am-home-slide-excerpt {
	margin: 0 0 1rem;
	font-size: 1rem;
	color: #111;
}
.am-home-slide-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.25rem;
}
.am-home-slide-tags a {
	display: inline-block;
	padding: .3em .85em;
	border-radius: 999px;
	background: #e5e3e0;
	color: #1d1d1b;
	font-size: 0.8125rem;
	text-decoration: none;
}
.am-home-slide-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	color: #162d55;
	font-weight: 600;
	text-decoration: none;
}
.am-home-slide-link:hover { text-decoration: underline; }

.am-home-slider-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.am-home-slider-prev,
.am-home-slider-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #162d55;
	cursor: pointer;
}
.am-home-slider-prev:hover,
.am-home-slider-next:hover {
	background: #162d55;
	color: #fff;
	border-color: #162d55;
}
.am-home-slider-dots {
	display: flex;
	gap: .5rem;
}
.am-home-slider-dots button {
	width: .6rem;
	height: .6rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: #d1d5db;
	cursor: pointer;
}
.am-home-slider-dots button.is-active { background: #162d55; }

@media (max-width: 782px) {
	.am-home-slide { grid-template-columns: 1fr; }
}

/* Blocs "Posts" groupés par catégorie */
.am-home-category-section { margin: 0 0 4rem; }
.am-home-category-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 2rem;
}
.am-home-category-heading h2 {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 800;
	color: #162d55;
}
.am-home-category-viewall {
	flex-shrink: 0;
	color: #162d55;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
}
.am-home-category-viewall:hover { text-decoration: underline; }

.am-home-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem 2rem;
}
@media (max-width: 960px) {
	.am-home-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.am-home-category-grid { grid-template-columns: 1fr; }
}
