.news-page {
	padding-bottom: 4rem;
}

body:has(.news-page) footer {
	position: relative;
}

.news-page h1 {
	margin-bottom: 2rem;
	line-height: 1.2;
}

.news-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.news-heading h1 {
	margin-bottom: 0;
}

.news-empty,
.news-hint,
.news-back,
.news-date {
	color: var(--subtext) !important;
}

.news-back:hover {
	color: var(--title) !important;
}

/*
	Liste
*/

.news-card {
	display: block;
	border-radius: var(--radius);
	background-color: var(--surface);
	background-position: center;
	background-size: cover;
	box-shadow: var(--shadow);
	text-decoration: none;
	text-shadow: 2px 2px 2px #000, 2px 2px 4px #000;
	overflow: hidden;
}

.news-card + .news-card {
	margin-top: 2rem;
}

.news-card-inner {
	padding: 2rem;
	background: rgba(0, 0, 0, 0.4);
	transition: background 0.15s ease;
}

.news-card:hover .news-card-inner {
	background: rgba(0, 0, 0, 0.3);
}

.news-card:active .news-card-inner {
	background: rgba(0, 0, 0, 0.5);
}

.news-card h2 {
	font-size: 2rem !important;
	font-weight: 700 !important;
	line-height: 1.2;
	margin: 0.25rem 0 1rem;
}

.news-card .news-date {
	color: rgba(255, 255, 255, 0.8) !important;
}

.news-intro {
	font-size: 1.1rem;
	color: var(--title) !important;
}

/*
	Article
*/

.news-post h1 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.25rem;
}

.news-post h1 .button {
	font-size: 0.9rem;
}

.news-cover {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.news-content {
	padding: 2rem 0;
	font-size: 1.1rem;
	line-height: 1.7;
}

.news-content h2 {
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	margin: 2rem 0 0.75rem;
}

.news-content h3 {
	font-size: 1.3rem !important;
	font-weight: 700 !important;
	margin: 1.5rem 0 0.5rem;
}

.news-content p {
	margin-bottom: 1rem;
}

.news-content img,
.news-content iframe {
	max-width: 100%;
	border-radius: var(--radius);
}

.news-server {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
	padding: 1.75rem 2rem;
	border-radius: var(--radius);
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 100%),
		url("/assets/background/cityhall.jpg") center / cover;
	box-shadow: var(--shadow);
}

.news-server h3 {
	font-weight: 700 !important;
}

.news-server-actions {
	display: flex;
	gap: 0.75rem;
}

/*
	Éditeur
*/

.news-page > .container > .news-back {
	display: inline-block;
	margin-bottom: 1rem;
}

.news-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.news-form .input {
	padding: 0.75rem 0.9rem;
	font-size: 1rem;
}

.news-hint {
	font-size: 0.9rem;
}

.news-actions {
	display: flex;
	gap: 0.75rem;
}

.news-error {
	margin-bottom: 1rem;
	color: var(--error) !important;
}

@media (max-width: 640px) {
	.news-card-inner {
		padding: 1.25rem;
	}

	.news-card h2 {
		font-size: 1.5rem !important;
	}
}
