:root {
	--color-walk: #4CAF50;
	--color-bike: #FFEB3B;
	--color-ebike: #FF9800;
	--opacity-walk: 0.5;
	--opacity-bike: 0.4;
	--opacity-ebike: 0.3;
}
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-size: 15px;
	scroll-behavior: smooth;
}
body {
	font-family: Arial, Helvetica, sans-serif;
	background: #fff;
	color: #000;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
/* Header */
.header {
	padding: 1em;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	background: #fff;
	position: relative;
}
.logo,.logo-URPS {
	height: 4.5em;
	width: auto;
}
.logo { margin-right: auto; /* pousse les autres éléments à droite */ }
.logo-URPS { display: none; }

/* Menu hamburger */
.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	z-index: 1001;
	background: none;
	border: none;
	padding: 5px;
}
.menu-toggle span {
	width: 25px;
	height: 3px;
	background-color: #000;
	margin: 3px 0;
	transition: 0.3s;
	border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
	transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
	transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.nav-links {
	display: flex;
	gap: 1em;
	align-items: center;
	flex-wrap: wrap;
}
.nav-links a {
	text-decoration: none;
	color: #000;
	font-size: 1em;
	font-weight: normal;
	transition: color 0.3s;
}
.nav-links img {
	height: 1.2em;
	vertical-align: bottom;
	margin-right: 0.3em;
}
.nav-links a.active {
	text-decoration: underline;
}
.nav-links a:hover, .nav-links a:focus {
	color: #1F6EBB;
	text-decoration: underline;
}
@media (min-width: 1400px) { .nav-links a { font-size: 1.1em; } }
@media (min-width: 1600px) { .nav-links a { font-size: 1.2em; } }

/* Titre principal */
.page-title {
	text-align: center;
	padding: 1em;
}
.page-title h1 {
	font-size: 1.7em;
	font-weight: bold;
	margin: 0;
	color: #000;
}
/* Contenu principal */
.main-content {
	flex: 1 0;
	display: flex;
	flex-direction: column;
}
/* Footer */
.footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2em;
	font-size: 1em;
	padding: 0.5em;
	border-top: 1px solid #e0e0e0;
	background: #f5f5f5;
}
.footer a {
	text-decoration: none;
	color: #000;
}
.footer a:hover, .footer a:focus {
	color: #1F6EBB;
	text-decoration: underline;
}

.footer img { height: 1em; }

.smallScreen { display: none; }
.mediumScreen { display: none; }
.largeScreen { display: none; }
@media (min-width: 801px) { .largeScreen { display: inline; } }
@media (min-width: 501px) and (max-width: 800px) { .mediumScreen { display: inline; } }
@media (max-width: 500px) { .smallScreen { display: inline; } }

/* Masquer l'attribution Leaflet */
.leaflet-control-attribution {
	display: none !important;
}

/* Responsive pour le menu */
@media (max-width: 1250px) {
	.menu-toggle {
		display: flex;
	}
	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 18em;
		height: 100vh;
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		padding: 80px 30px 30px;
		box-shadow: -2px 0 10px rgba(0,0,0,0.1);
		transition: right 0.3s ease;
		z-index: 1000;
		gap: 20px;
	}
	.nav-links.active {
		right: 0;
	}
	.nav-links a {
		font-size: 1.1rem;
		width: 100%;
		padding: 10px 0;
		border-bottom: 1px solid #f0f0f0;
	}
	/* Overlay */
	.nav-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		z-index: 999;
	}
	.nav-overlay.active {
		display: block;
	}
}


@media print {
	@page {
		size: A4 portrait; /* ou portrait selon vos besoins */
		margin: 1cm;
	}
	body {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.nav-links, .menu-toggle, .footer , #mapUpdateBtn, #settingsBtn,#share-section { display: none !important; }
	.logo-URPS { display: block !important; }
}
