header {
	display: block;
	position: relative;
	margin: 0;
	padding: 0;
	background: #000;
}

.logo {
	position: relative;       /* pour que le z-index fonctionne */
	z-index: 2;               /* reste au-dessus de l'image de fond */
}

.fondHeader {
	position: absolute;
	top: 0;
	right: 0;                 /* alignée à droite */
	z-index: 1;               /* derrière le logo */
	overflow: hidden;
}

/* ========= BURGER ========= */
.burger {
	position: absolute;
	top: -59px;
	right: 0px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 20px;
	z-index: 2;
}

.burger span {
	width: 28px;
	height: 3px;
	background: #fff1de;
	transition: 0.3s;
	z-index: 2;
}

/* Checkbox cachée */
#burger-toggle {
	display: none;
}
#burger-toggle:checked + .burger span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
#burger-toggle:checked + .burger span:nth-child(2) {
	opacity: 0;
}
#burger-toggle:checked + .burger span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}
#burger-toggle:checked ~ .nav-links {
	display: flex;
}

/* ========= MENU MOBILE (< 768px) ========= */
.barre {
	display: flex;
	position: relative;
	width: 100%;
	height: 3px;
	background: #322;
	padding: 0;
	margin: 0 0 0 0;
	z-index: 2;
}

.navbar {
	display: flex;
	position: relative;
	flex-direction: row;
	align-items: center;
}

.nav-links {
	display: none; /* caché par défaut */
	position: absolute;
	flex-direction: column;
	top: -10px; /* sous le header */
	right: 50px;
	gap: 10px 25px;
	background: #322;
	padding: 12px;
	margin: 0px;
	border-radius: 10px;
	z-index: 3;
	list-style: none;
}

.nav-links a {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-size: 18px;
	color: #fff1de;
	padding: 0.35em 10px 0px 10px;
	line-height: 1;
}


/* ========= MENU CLASSIQUE (DESKTOP ≥ 768px) ========= */
@media (min-width: 768px) {
	.barre {
		display: none;
	}

	.burger {
		display: none;
	}

	.navbar {
		flex-direction: column;  /* au lieu de row */
		align-items: flex-start; /* logo + menu alignés à gauche */
		gap: 0px;
	}

	.nav-links {
		display: flex;      /* visible en desktop */
		position: relative;
		flex-direction: row;
		top: 0px;
		left: 0px;
		width: 100%;
		padding: 0px;
		border-radius: 0px;
	}
	
	.nav-links li {
		display: block;
		margin: 0px;
		padding: 0px;
	}
}

