:root {
    --base-blue: #0008aa;
}

body {
	background-image: url("../img/wfond.jpg");
	background-position: left top;
	background-size: auto;
	background-repeat: repeat;
	background-attachment: fixed;
}

.page-container {
    background-color: white;
	border: 1px groove lightgray;
	border-radius: 5px;
	padding: 2rem;
}

@media (max-width: 768px) {
	.page-container {
		padding: 1rem;
	}
}

h1, h2, h3, h4, h5 {
    font-family: 'kalam-regular';
    color: var(--base-blue) !important;
}

.content img {
    border-radius: 10px;
    border: 1px groove var(--base-blue);
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
}

.video-container {
	max-width: 640px;
	margin: 1.5rem auto;
	aspect-ratio: 16 / 9;
}

.video-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.page-views {
	margin-top: 2rem;
	color: #777;
	font-size: 0.85rem;
	text-align: right;
}
/*
    SECTION ARCHIVES
*/
.archive-list small {
	margin-left: 0.5rem;
	color: #777;
}

.archive-list li {
	margin-bottom: 0.5rem;
}
/*
    SECTION ADMIN
*/
.channels-admin-container {
	width: min(96vw, 1800px);
	max-width: none !important;
    border: 1px groove hotpink;
}

.admin-page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.admin-page-header .buttons, .admin-page-header form {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.admin-page-header {
		flex-direction: column;
	}
}

.channel-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.channel-link-editor {
	margin-bottom: 2rem;
}

.channel-link-row {
	margin-bottom: 1rem;
	padding: 1rem;
}

.proposal-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.floating-scroll-controls {
	position: fixed;
	top: 50%;
	right: 1rem;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.3rem;
	border: 1px solid rgb(0 8 170 / 25%);
	border-radius: 999px;
	background: rgb(255 255 255 / 88%);
	box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
	backdrop-filter: blur(5px);
	transform: translateY(-50%);
	opacity: 0.75;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.floating-scroll-controls:hover,
.floating-scroll-controls:focus-within {
	opacity: 1;
	box-shadow: 0 6px 20px rgb(0 0 0 / 28%);
}

.floating-scroll-controls[hidden] {
	display: none;
}

.floating-scroll-controls button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--base-blue);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.floating-scroll-controls button:hover,
.floating-scroll-controls button:focus-visible {
	background-color: rgb(0 8 170 / 10%);
	transform: scale(1.08);
	outline: none;
}

.floating-scroll-controls button:disabled {
	opacity: 0.2;
	cursor: default;
	transform: none;
}

.floating-scroll-separator {
	display: block;
	width: 1.7rem;
	height: 1px;
	background-color: rgb(0 8 170 / 18%);
}

@media (max-width: 768px) {
	.floating-scroll-controls {
		top: auto;
		right: 0.65rem;
		bottom: 1rem;
		transform: none;
	}

	.floating-scroll-controls button {
		width: 2.5rem;
		height: 2.5rem;
	}
}

.banner {
	display: block;
	width: 100%;
	overflow: hidden;
}

.banner img {
	display: block;
	/*max-width: 1920px;*/
	width: 80%;
	height: auto;
	margin: 0 auto;
	border-radius: 10px;
	border: 1px groove var(--base-blue);
}
/* Bannière pour mobile */
@media (max-width: 768px) {
	.banner img {
		height: 140px;
		object-fit: cover;
		object-position: center;
	}
}

.site-footer {
	margin-top: 3rem;
	padding: 1.5rem 1rem;
	border-top: 1px solid #ddd;
	text-align: center;
	font-size: 0.9rem;
	color: #666;
}

.site-footer-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-bottom: 0.75rem;
}

.site-footer-links a {
	color: var(--base-blue);
	text-decoration: none;
}

.site-footer-links a:hover {
	text-decoration: underline;
}

.site-footer-copyright {
	margin: 0;
}

@media (max-width: 768px) {
	.site-footer-links {
		flex-direction: column;
		gap: 0.5rem;
	}
}