:root {
	--blue: #0062a1;
	--green: #2f7d32;
	--ink: #3e4448;
	--paper: #f4f7f4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 100px; }

body {
	margin: 0;
	color: var(--ink);
	font-family: Raleway, "Segoe UI", sans-serif;
	background: #fff;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3, .button { font-family: "Open Sans", "Segoe UI", sans-serif; }

#top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 4vw;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.brand img { height: 64px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.site-nav a { color: #1b4d2e; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.nav-toggle, .nav-burger { display: none; }

.hero {
	position: relative;
	min-height: 68vh;
	display: flex;
	align-items: flex-end;
	padding: 4rem 4vw;
	color: #fff;
	overflow: hidden;
	background: #1b4d2e;
}

.hero-slides span {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	opacity: 0;
	animation: hero-fade 24s infinite;
}

.hero-slides span:nth-child(1) { animation-name: hero-fade-first; }
.hero-slides span:nth-child(2) { animation-delay: 6s; }
.hero-slides span:nth-child(3) { animation-delay: 12s; }
.hero-slides span:nth-child(4) { animation-delay: 18s; }

.hero-slides span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 40, 18, 0.15) 20%, rgba(10, 40, 18, 0.62));
}

@keyframes hero-fade-first {
	0% { opacity: 1; }
	20% { opacity: 1; }
	25% { opacity: 0; }
	95% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes hero-fade {
	0% { opacity: 0; }
	4% { opacity: 1; }
	20% { opacity: 1; }
	25% { opacity: 0; }
	100% { opacity: 0; }
}

.hero-text { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 0.4rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { margin: 0 0 0.4rem; font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.1; }
.hero p { font-size: 1.15rem; }

.button {
	display: inline-block;
	margin-top: 0.6rem;
	padding: 0.75rem 1.2rem;
	background: #c6e27a;
	color: #1b3a12;
	font-weight: 700;
	text-decoration: none;
}

.wrap { width: min(1100px, calc(100% - 8vw)); margin: 0 auto; }
.about, .dates, .partners, .contact, .inner { padding: 4.2rem 0; }
.about { background: #0062a1; color: #fff; }
.about a, .contact a { color: #c6e27a; }
.dates { background: var(--paper); }
.partners { background: #fff; }
.contact {
	background:
		linear-gradient(rgba(12, 48, 22, 0.78), rgba(12, 48, 22, 0.78)),
		url("../../../images/trefle_intercalaire.jpg") center / cover no-repeat;
	color: #fff;
}

h2 { margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.6rem; }
.filters button {
	border: 1px solid var(--green);
	background: #fff;
	color: var(--green);
	border-radius: 999px;
	padding: 0.35rem 0.8rem;
	font: inherit;
	cursor: pointer;
}
.filters button.is-active, .filters button:hover { background: var(--green); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { background: #fff; box-shadow: 0 8px 24px rgba(20, 50, 20, 0.08); }
.card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 0.9rem 1rem 1.1rem; }
.card-tag { margin: 0 0 0.3rem; color: var(--green); font-size: 0.82rem; font-weight: 700; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; line-height: 1.3; }
.card p { margin: 0; }
.card[hidden] { display: none; }

.site-footer {
	padding: 1.4rem 4vw 1.8rem;
	background: #163824;
	color: #d7eadc;
	text-align: center;
	font-size: 0.95rem;
}
.site-footer a { color: #c6e27a; }
.site-footer p { margin: 0.2rem 0; }

.inner { width: min(860px, calc(100% - 8vw)); margin: 0 auto; }
.back a { font-weight: 700; text-decoration: none; }
.article-info, .tags, .pagenavigation, .com-content-article__pagination, .page-header:has(h1) { display: none; }
.page-header h2 { margin: 0.2rem 0 0.8rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.item-image { float: none !important; margin: 0 0 1.2rem; }
.item-image img { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.video { position: relative; padding-top: 56%; margin: 0 0 1rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 980px) {
	.cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-burger {
		display: inline-flex;
		align-items: center;
		padding: 0.45rem 0.7rem;
		border: 1px solid var(--green);
		color: var(--green);
		font-weight: 700;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		padding: 0.6rem 4vw 1rem;
		background: #fff;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	}
	.nav-toggle:checked ~ .site-nav { display: flex; }
	.cards { grid-template-columns: 1fr; }
	.hero { min-height: 78vh; }
}
