:root {
	/** voir dans amun-theme-amac.css pour les variables de couleurs **/
	--color-fond: #f6f9fc;
	--color-contrefond: #e2ecf6;
	--color-fond-alt: #c6d9ed;

	--color-bandeau: #6f9ed1;
	--color-header: #a9c5e4;
	--color-titre: #8cb2db;

	--color-links: #578fca;
	--color-links-menu: white;
	--color-links-connect: white;

	--color-text-titre: #ee5e2f;
	--color-text-titre-alt: #fff2e6;
	--color-black: #000d14;

	--color-border-init: var(--color-fond-alt);
	--color-border-hover: var(--color-contrefond);
	--color-border-animate: var(--color-fond-alt);
}

html,
body,
button,
input,
select,
optgroup,
textarea,
.ul-parent-account,
.ul-parent-footer {
	color: var(--color-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	/*color: var(--color-text-titre);*/
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	/*color: var(--color-text-titre);*/
}

.cke_top,
.w3-border,
ul.primary,
.cke_bottom,
.cke_chrome,
ul.secondary,
ul.primary > li { /********************************************* couleurs des bordures des tabs **/
	border-color: var(--color-fond-alt) !important;
}

a,
.w3-button {
	transition: 0.4s !important;
}


#open-nav-inner:hover,
#open-search:hover,
.w3-button:hover { /******************************************** les menus **/
	color: var(--color-links-menu) !important;
	background-color: var(--color-header) !important;
}

.ul-parent-account {
	color: inherit;
}

#header .fa,
#header .svg-inline--fa {
	color: inherit;
}

#page-title,
.page-wrapper,
#top-container,
#footer-container,
.search-slide-wrapper,
#top-container .top-box > div,
#footer-container .footer-box>div,
#bottom-container .bottom-box>div {
	background-color: var(--color-contrefond);
	color: var(--color-black);
}

#highlighted {
	background-color: var(--color-fond);
	color: var(--color-black);
}

.main-navigation-wrapper,
.close-nav,
.mobile-nav {
	background-color: var(--color-bandeau);
	color: white;
}

#header {
	background-color: var(--color-fond);
	color: white !important;
}
#footer-menu h1,
#footer-menu h2,
#footer-menu h3,
#footer-menu h4,
#footer-menu h5,
#footer-menu a,
#footer-menu p,
#header h1,
#header h2,
#header h3,
#header h4,
#header h5,
#header a,
#header p {
	color: white !important;
}

#main-container {
	background-color: var(--color-fond);
	color: var(--color-black);
}

#welcome-text section.block-views,
#top-container .top-box>div,
#bottom-container .bottom-box>div,
#footer-container .footer-box>div {
	border: 1px solid var(--color-border-init);
	transition: 0.4s !important;
}

input:focus,
select:focus,
textarea:focus,
#welcome-text section.block-views:hover,
#top-container .top-box > div:hover,
#bottom-container .bottom-box>div:hover,
#footer-container .footer-box>div:hover {
	box-shadow: 0 25px 57px 0 rgba(0, 0, 0, .25);
	border-color: var(--color-border-hover);
}


#bottom-container,
.pager__item.is-active {
	background-color: green;
	color: var(--color-black);
}

#footer-menu {
	background-color: #8cb2db !important;
	color: var(--color-black);
}

#footer-menu-inner form.w3-content {
	border: 1px solid var(--color-bandeau);
}

#copyright { /** surchargé **/
/*  background-color: #000203;
color: var(--color-black);*/
}


/* button animation  */
.w3-button {
	position: relative;
}

.w3-button:before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 0;
	background-color: transparent;
	border-bottom: 1px solid transparent;
}

.w3-button:hover:before {
	animation: btnBorderAnimation 0.1s linear forwards;
}

@keyframes btnBorderAnimation {
	0% {
		width: 0;
		height: 0;
		border-bottom-color: var(--color-links-menu);
	}

	99.9999% {
		width: 100%;
		height: 100%;
		border-bottom-color: var(--color-links-menu);
	}
	100% {
		width: 0;
		height: 0;
		border-bottom-color: transparent;
	}
}

/* Border animation  */
#welcome-text section.block-views,
#top-container .top-box>.animate-border,
#bottom-container .bottom-box>.animate-border,
#footer-container .footer-box>.animate-border {
	position: relative;
}

#welcome-text section.block-views:before,
#top-container .top-box>.animate-border:before,
#bottom-container .bottom-box>.animate-border:before,
#footer-container .footer-box>.animate-border:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	background-color: transparent;
	border: 2px solid transparent;
}

#welcome-text section.block-views:hover:before,
#top-container .top-box>.animate-border:hover:before,
#bottom-container .bottom-box>.animate-border:hover:before,
#footer-container .footer-box>.animate-border:hover:before {
	animation: borderLeftColors 1s linear forwards;
}

@keyframes borderLeftColors {
	0% {
		width: 0;
		height: 0;
		border-top-color: var(--color-border-animate);
		border-right-color: transparent;
		border-bottom-color: transparent;
		border-left-color: transparent;
	}

	50% {
		width: 100%;
		height: 0;
		border-top-color: var(--color-border-animate);
		border-right-color: var(--color-border-animate);
		border-bottom-color: transparent;
		border-left-color: transparent;
	}

	99.9999% {
		width: 100%;
		height: 100%;
		border-top-color: var(--color-border-animate);
		border-right-color: var(--color-border-animate);
		border-bottom-color: transparent;
		border-left-color: transparent;
	}
	100% {
		width: 0;
		height: 0;
		border-top-color: transparent;
		border-right-color: transparent;
		border-bottom-color: transparent;
		border-left-color: transparent;
	}
}

#welcome-text section.block-views:after,
#top-container .top-box>.animate-border:after,
#bottom-container .bottom-box>.animate-border:after,
#footer-container .footer-box>.animate-border:after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 0;
	height: 0;
	background-color: transparent;
	border: 2px solid transparent;
}

#welcome-text section.block-views:hover:after,
#top-container .top-box>.animate-border:hover:after,
#bottom-container .bottom-box>.animate-border:hover:after,
#footer-container .footer-box>.animate-border:hover:after {
	animation: borderRightColors 1s linear forwards;
}

@keyframes borderRightColors {
	0% {
		width: 0;
		height: 0;
		border-top-color: transparent;
		border-right-color: transparent;
		border-bottom-color: var(--color-border-animate);
		border-left-color: transparent;
	}

	50% {
		width: 100%;
		height: 0;
		border-top-color: transparent;
		border-right-color: transparent;
		border-bottom-color: var(--color-border-animate);
		border-left-color: var(--color-border-animate);
	}

	99.9999% {
		width: 100%;
		height: 100%;
		border-top-color: transparent;
		border-right-color: transparent;
		border-bottom-color: var(--color-border-animate);
		border-left-color: var(--color-border-animate);
	}
	100% {
		width: 0;
		height: 0;
		border-top-color: transparent;
		border-right-color: transparent;
		border-bottom-color: transparent;
		border-left-color: transparent;
	}
}
