:root{
	--max-width: 90%;
}

/* font  */
a, hr{
	color: var(--primary);
}

/* page size */
#wrap{
	max-width: none;
	min-height: 100vh;
	padding: 0;
}

/* header */
header{
	position: relative;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	padding: 16px;
}

header.background_banner{
	padding: 0;
}

header .content{
	position: absolute;
	top: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	height: 100%;
}

header.background_banner .content{
	padding: 16px;
}

header .site-title{
	margin: 0;
	text-align: left;
	line-height: normal;
}

header .top-right{
	display: flex;
	height: max-content;
	flex: 1;
	gap: 8px;
	align-items: center;
	justify-content: end;
}

header .fas{
	font-size: 1.5rem;
}

/* barre de recherche */
header #search{
	display: flex;
	align-items: center;
}

header #search button{
	padding: 0;
	background-color: transparent;
	color: var(--primary);
}

/* qrcode */
#share{
	position: relative;
}

#share div i{
	color: var(--primary);
	cursor: pointer;
}

#share > div{
	position: absolute;
	top: 2.5rem;
	right: 0;
	z-index: 2000;
	display: none;
	flex-direction: column;
	padding: 1rem;
	align-items: center;
	background-color: white;
	border: 1px solid var(--primary);
}

#share > div.show{
	display: flex;
}

#share h4{
	margin-top: 0;
}

#share span{
	margin-top: 1rem;
	color: var(--primary);
	cursor: pointer
}

#share span i{
	margin-left: .5rem;
}

/* menu */
header nav{
	flex-basis: 100%;
	align-self: flex-end;
}

header nav .navigation{
	margin: .5rem 0;
	justify-content: center;
	border: 0;
}

header nav .navigation a{
	font-size: 1.25rem;
}

.sub-nav.first{
	max-width: none;
}

/* bannière */
header .banner{
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	filter: brightness(.8);
}

.carousel{
    width: 100%;
    overflow-x: hidden;
    position: relative;
    display: flex;
}

.carousel-inner{
    height: 100%;
    display: flex;
    transition: all ease 1.5s;
}

.carousel-item{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-indicators, .carousel-controls{
	display: none;
}

/* .carousel-controls .prev{
    display: inline-block;
    height: 32px;
    width: 32px;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../../img/icons/prev.svg');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: .5;
} */

/* .carousel-controls .next{
    display: inline-block;
    height: 32px;
    width: 32px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../../img/icons/next.svg');
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: .5;
} */

/* .prev:hover, .next:hover{
    opacity: 1;
} */

/* .carousel-indicators{
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
} */

/* .carousel-indicators span{
    display: inline-block;
    background-color: white;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    opacity: .5;
    cursor: pointer;
    margin: 3px;
} */

/* .carousel-indicators span.active{
    opacity: 1;
} */

.carousel img{
	max-width: 100%;
}

.banner h2{
	position: absolute;
	left: 50%;
	transform: translate(-50%);
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 1rem 2rem;
	background-color: rgba(0, 0, 0, .6);
	text-align: center;
	color: white;
}

/* content */
#content{
	min-height: 50vh;
	padding: 2rem 5%;
}

#content > h2, #search-page > h2{
	text-align: center;
}

#content img{
	max-width: 100%;	
}

/* footer */
footer{
	margin: 0;
	padding: 16px;
}

footer .links{
	display: flex;
	gap: 0 2rem;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 0;
	justify-content: space-evenly;
}

footer .links a{
	display: block;
	color: var(--primary);
}

footer .logos{
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: var(--max-width);
	margin: 0 auto;
	justify-content: space-evenly;
}

footer .logos img{
	height: 64px;
}

/* retour haut de page */
#btn-top{
	position: fixed;
	bottom: 0;
	right: 0;
	display: none;
	margin: 1rem;
	font-size: 2rem;
	color: var(--primary);
	cursor: pointer;
}

@media screen and (max-width: 1200px){
	.banner{
		height: max-content;
	}
}

@media screen and (max-width: 640px){
	/* header */
	header .content{
		position: relative;
		gap: .5rem;
	}

	header .site-title{
		width: max-content;
	}

	header .banner{
		height: max-content;
	}

	header nav .navigation{
		gap: .5rem;
	}

	header nav .navigation a{
		font-size: 1rem;
	}

	header .carousel{
		width: max-content;
	}

	/* content */
	#content{
		width: 100%;
		max-width: none;
		margin: 0;
	}
}
