.site-footer {
	margin-top: auto;
	color: var(--rt-color-cream);
	background:
		linear-gradient(180deg, rgba(20, 40, 32, 0.35), rgba(20, 40, 32, 0.55)),
		url("../../assets/img/hero-festival.png") center / cover no-repeat;
	border-top: 2px solid var(--rt-color-gold);
}

.site-footer__bar {
	position: relative;
	background: linear-gradient(180deg, rgba(30, 58, 47, 0.92), rgba(20, 40, 32, 0.96));
	padding-top: 1.35rem;
	padding-bottom: 0.35rem;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.35rem 0.75rem;
	align-items: end;
}

.site-footer__col--asso {
	position: relative;
	z-index: 2;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: -2.35rem;
}

.site-footer__col--social {
	justify-self: end;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.2rem;
}

.site-footer__heading {
	margin: 0 0 0.1rem;
	font-family: var(--rt-font-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--rt-color-baba);
}

.site-footer__text {
	margin: 0;
	font-size: 0.65rem;
	line-height: 1.3;
	opacity: 0.88;
}

.site-footer__meta {
	margin: 0.1rem 0 0;
	font-size: 0.65rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	align-items: center;
	justify-content: flex-end;
}

.site-footer__sep {
	opacity: 0.5;
}

.site-footer__link {
	color: var(--rt-color-cream);
	text-decoration: none;
	opacity: 0.9;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
	color: var(--rt-color-baba);
	opacity: 1;
}

.site-footer__link--cta {
	font-family: var(--rt-font-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.64rem;
	border-bottom: 1px solid rgba(236, 188, 140, 0.45);
}

.site-footer__link--credit {
	font-weight: 600;
	color: var(--rt-color-baba);
}

.site-footer__emblem {
	width: 4.75rem;
	height: 4.75rem;
	margin: 0 auto 0.45rem;
	border-radius: 50%;
	border: 2px solid var(--rt-color-gold);
	background: var(--rt-color-forest);
	display: grid;
	place-items: center;
	overflow: hidden;
	box-shadow: 0 0.3rem 0.7rem rgba(0, 0, 0, 0.3);
}

.site-footer__emblem-img {
	width: 4.35rem;
	height: auto;
	display: block;
	transform: scale(1.05);
}

.site-footer__legal {
	border-top: 1px solid rgba(236, 188, 140, 0.22);
	background: rgba(20, 40, 32, 0.88);
	padding-block: 0.3rem 0.4rem;
}

.site-footer__legal-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.5rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.65rem;
	opacity: 0.78;
	text-align: center;
	line-height: 1.35;
	grid-column: 1 / -1;
	grid-row: 1;
	padding-inline: 2.25rem;
}

.site-footer__admin {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	color: var(--rt-color-cream);
	opacity: 0.65;
	border: 1px solid rgba(236, 188, 140, 0.28);
	text-decoration: none;
	transition: color var(--rt-transition), opacity var(--rt-transition), border-color var(--rt-transition);
	z-index: 1;
}

.site-footer__admin:hover,
.site-footer__admin:focus-visible {
	color: var(--rt-color-baba);
	opacity: 1;
	border-color: rgba(201, 162, 39, 0.55);
}

@media (max-width: 900px) {
	.site-footer {
		overflow: visible;
	}

	.site-footer__bar {
		/* Place pour le logo qui déborde vers le haut. */
		padding-top: 1.1rem;
		padding-bottom: 0.3rem;
		overflow: visible;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"asso asso"
			"mairie social";
		justify-items: stretch;
		align-items: start;
		text-align: center;
		gap: 0.3rem 0.75rem;
		overflow: visible;
	}

	.site-footer__col--asso {
		grid-area: asso;
		/* Même effet « médaillon » que le desktop. */
		margin-top: -2rem;
		order: unset;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0.15rem;
		text-align: center;
		z-index: 2;
	}

	.site-footer__col--asso .site-footer__heading {
		margin: 0 0 0.05rem;
	}

	/* Adresse déjà dans la colonne mairie — évite le doublon. */
	.site-footer__col--asso .site-footer__text {
		display: none;
	}

	.site-footer__col--mairie {
		grid-area: mairie;
		text-align: left;
		justify-self: start;
	}

	.site-footer__col--social {
		grid-area: social;
		justify-self: end;
		text-align: right;
		align-items: flex-end;
	}

	.site-footer__col--social .site-footer__heading {
		display: none;
	}

	.site-footer__meta {
		justify-content: flex-end;
		margin-top: 0.15rem;
	}

	.site-footer .social-icons {
		gap: 0.35rem;
	}

	.site-footer .social-icons__link {
		width: 1.55rem;
		height: 1.55rem;
	}

	.site-footer .social-icons__glyph svg,
	.site-footer .social-icons__img {
		width: 1.05rem;
		height: 1.05rem;
	}

	.site-footer__emblem {
		width: 3.5rem;
		height: 3.5rem;
		margin: 0 auto 0.2rem;
		border-width: 2px;
		box-shadow: 0 0.25rem 0.55rem rgba(0, 0, 0, 0.28);
	}

	.site-footer__emblem-img {
		width: 3.15rem;
		transform: scale(1.05);
	}

	.site-footer__heading {
		font-size: 0.64rem;
	}

	.site-footer__text,
	.site-footer__meta,
	.site-footer__link--cta {
		font-size: 0.6rem;
	}

	.site-footer__text {
		line-height: 1.25;
	}

	.site-footer__legal {
		padding-block: 0.2rem 0.25rem;
	}

	.site-footer__legal-inner {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.4rem;
	}

	.site-footer__copy {
		padding-inline: 0;
		order: unset;
		flex: 1;
		min-width: 0;
		font-size: 0.58rem;
		line-height: 1.3;
		text-align: left;
	}

	.site-footer__admin {
		order: unset;
		width: 1.5rem;
		height: 1.5rem;
		flex-shrink: 0;
	}

	.site-footer__admin svg {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 480px) {
	.site-footer__bar {
		padding-top: 1rem;
		padding-bottom: 0.25rem;
	}

	.site-footer__inner {
		gap: 0.25rem 0.5rem;
	}

	.site-footer__col--asso {
		margin-top: -1.75rem;
		gap: 0.1rem;
	}

	.site-footer__emblem {
		width: 3.15rem;
		height: 3.15rem;
		margin-bottom: 0.15rem;
	}

	.site-footer__emblem-img {
		width: 2.85rem;
	}

	.site-footer__heading {
		font-size: 0.6rem;
	}

	.site-footer__text,
	.site-footer__meta,
	.site-footer__link--cta {
		font-size: 0.58rem;
	}

	/* Une seule ligne d’adresse mairie sur très petit écran. */
	.site-footer__col--mairie .site-footer__text br {
		display: none;
	}

	.site-footer__col--mairie .site-footer__text {
		white-space: normal;
	}

	.site-footer__copy {
		font-size: 0.55rem;
		line-height: 1.25;
	}
}
