/* Header ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

:root {
  --heightheader: 300px;
}

#header{
	position: sticky;
	top:-180px;
	display: flex;
	width: 100%;
	min-height: 287px;
	align-items: flex-end;
	justify-content: center;
	background-color: white;
	z-index:100;
	align-self: stretch;
}

#header.reduit{
	top:0;
	min-height: 80px;
}

	#header #sous-header{
		display: flex;
		width: 1000px;
		padding: 25px;
		align-items: center;
		justify-content: space-between;
		background-color: white;
	}
	
	#header #sous-header #nomsite{
		float: left;
		width: 120px;
		transition: width 1s ease;
	}
	
	#header.mini #sous-header #nomsite, #header.reduit #sous-header #nomsite{
		width: 80px;
	}

	#header #sous-header #nav{
		position:relative;
		float: right;
	}

		.bloccategorie{
			float: left;
			padding: 0 25px;
			display:block;
		}

#btnmenu{
	display:none;
}

#header #navmobile{
	display:none;
}
	
#nav .bloccategorie{
	cursor: pointer;
}

#nav .bloccategorie span{
	padding: 5px 8px;
}

#nav .bloccategorie #sousbtn{
	margin: 0 7px;
}

#nav a .btn{
	font-weight: 500;
}

#nav a .btn:hover{
	color: black;
	background-color: var(--jauneth);
}

#nav a .btnarcenciel:hover{
	background-color: var(--jauneth);
}

#nav a .btnarcenciel:hover > #arcenciel{
	background:inherit;
	color:black;
	-webkit-text-fill-color: inherit;
} 

#nav .bloccategorie .selected{
	color: white;
	background-color: black;
	cursor: default;
}

#nav .bloccategorie .selectedarcenciel{
	background-color: black;
}

#nav .bloccategorie .selectedarcenciel > #arcenciel{
	color: white;
	background:inherit;
	-webkit-text-fill-color: inherit;
}

#arcenciel{
	font-weight: bold;
	background: -webkit-linear-gradient(left, red,orange,yellow,green,blue,indigo,violet);
	background: -moz-linear-gradient(left, red,orange,yellow,green,blue,indigo,violet,red);
	background: -o-linear-gradient(left, red,orange,yellow,green,blue,indigo,violet,red);
	background: -ms-linear-gradient(left, red,orange,yellow,green,blue,indigo,violet,red);
	background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet,red);
	background-repeat:repeat-x;
  
	-webkit-animation:go 2s linear infinite;
	-moz-animation:go 2s linear infinite;
	-o-animation:go 2s linear infinite;
	-ms-animation:go 2s linear infinite;
	animation:go 2s linear infinite;
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	
	padding:0;
}

@-webkit-keyframes go{
	0%{background-position:0;}
	100%{background-position:124px 0;}

}
@-moz-keyframes go{
	0%{background-position:0;}
	100%{background-position:124px 0;}

}
@-o-keyframes go{
	0%{background-position:0;}
	100%{background-position:124px 0;}

}
@-ms-keyframes go{
	0%{background-position:0;}
	100%{background-position:124px 0;}

}
@keyframes go{
	0%{background-position:0;}
	100%{background-position:124px 0;}
}


@media only screen and (max-width: 900px) {
	
	#header{
		top: 0;
		min-height: 90px;
	}
	
	#header.reduit{
		top: 0;
		min-height: 90px;
	}
	
	#header #sous-header #nomsite, #header #sous-header #nomsite{
		width: 80px;
	}
	
	#header #sous-header{
		padding:10px 20px;
		justify-content: space-between;
	}
	
	#header #sous-header #nav{
		display:none;
	}
	
	#navmobile{
		position:fixed;
		width: 100%;
		top: 90px;
		background-color: white;
		height: calc(100vh - 90px);
		height: calc(100dvh - 90px); /* mobile : tient compte de la barre d'adresse */
		display: flex;
		flex-direction:column;
		justify-content:center;
		align-items:center;
	}
	
	.bloccategorie{
		padding: 25px 25px 20px 25px;
	}
		
	#btnmenu{
		display:block;
		width: 30px;
		padding: 10px;
		float:right;
		max-width: 10%;
	}
	
	#nav a, #nav .selected, .bloccategorie{
		color:black;
		line-height: 2em;
		font-size: 2em;	
		font-weight: 600;
		padding: 0 0.5em;
		margin: 0.5em;
	}
	
	
	.bloccategorie:has(.selected) {
		background-color: var(--jauneth);
	}
}

@media only screen and (max-width: 600px) {
	
	#header #nomsite{
		
	}
}

