@import url('https://fonts.googleapis.com/css?family=Poppins');

html {
	color: #111;
	font-family: 'Poppins', sans-serif;
	/* font-family: Arial, Helvetica, sans-serif; */
}

body {
	line-height: 1.4;
}

p {
	margin-top: 0.33em;
}

hgroup {
	text-align: center;
}

div.programme hgroup > h1 {
	color: #0F3A86;
}

hgroup > h2, .underlined {
	text-decoration: underline;
}

h1 {
	text-align: center;
}

h4 {
	color: rgb(149, 4, 35);
	margin-top: 2em;
	margin-bottom: 0.33em;
}

h5 {
	color: rgb(149, 4, 35);
	margin-top: 1.5em;
	margin-bottom: 0.33em;
	text-decoration: underline;
}

ul {
	margin-top: 0.5em;
}

table {
	border-collapse: collapse;
	line-height: 1.2;
}

tbody {
	font-size: 0.85em;
	text-align: center;
}

th, td {
	border: 1px solid black;
	padding: 5px;
}


/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */
button, input, select, textarea {
	font-family: serif;
	font-size: 100%;
	color: #111;
	margin: 0;
	vertical-align: baseline;
}

a {
	font-style: normal;
	text-decoration: none;
	color: #0F3A86;
	background-color: rgba(0, 0, 255, 0.1); /*#0F3A86 */
}

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active {
	outline: 0;
}

/* Indicate that 'label' will shift focus to the associated form element */
label {
	cursor: pointer;
}

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 */

button, input {
	line-height: normal;
}

/*
 * Consistent box sizing and appearance
 */
/*Hide checkbox*/
input[type="checkbox"] {
	box-sizing: border-box;
	padding: 0;
	display: none;
}

/* Simple fluid media
   Note: Fluid media requires that you remove the media's height and width attributes from the HTML
   http://www.alistapart.com/articles/fluid-images/
*/
img, object, embed, video {
	max-width: 100%;
	margin: 0.67em 0;
}

li > a {
	background-color: transparent;
}

header, footer {
	width: 100%;
	background-color: #0F3A86;
}

footer {
	white-space: nowrap;
}

header > div {
	display: flex;
}

header > div > a {
	-webkit-perspective: 220px; /* Safari 4-8 */
	-webkit-perspective-origin: 75% 70%; /* Safari 4-8 */
	perspective: 220px;
	perspective-origin: 75% 70%;
}

header > div, .requirements  {
	margin: 0 auto;
}

/*Style 'show menu' label button and hide it by default*/
.show-menu {
	text-decoration: none;
	color: whitesmoke;
	background-color: #111222;
	text-align: center;
	padding: 5px 7px;
	display: none;
}

header > nav > ul, ul#programmes, address > ul, footer > ul {
	margin: 0 auto;
	padding: 0;
	list-style-type: none;
}

header > nav > ul > li > *, footer > ul > li > * {
	display: block;
	padding: 5px 7px;
	outline-style: none;
	text-align: center;
	color: whitesmoke;
	border: 1px solid #0F3A86;
}

header > nav > ul > li > * {
	font-weight: bold;
}

header > nav > ul > li > a:hover, footer > ul > li > a:hover {
	background-color: rgba(255,255,255,0.4);
	color: white;
}

header > nav > ul > li > a:active, footer > ul > li > a:active {
	color: rgb(185,34,65);
}

header img {
	width: auto;
	max-width: initial;
	border: none;
	margin: 0;
	padding: 0;
}

/* The animation code */
/* Safari 4.0 - 8.0 */
@-webkit-keyframes logo {
	from {-webkit-transform: rotateY(0deg);}
	to {-webkit-transform: rotateY(360deg);}
}

@keyframes logo {
	from {transform: rotateY(0deg);}
	to {transform: rotateY(360deg);}
}

header img[alt="Quorum-ETC Logo"] {
	/* Safari 4.0 - 8.0 */
	-webkit-animation-name: logo;
	-webkit-animation-timing-function: ease-in-out;
	/* -webkit-animation-direction: alternate; */
	-webkit-animation-play-state: running;
	-webkit-animation-duration: 5s;
	-webkit-animation-iteration-count: 1;

	animation-name: logo;
	animation-timing-function: ease-in-out;
	/* animation-direction: alternate; */
	animation-play-state: running;
	animation-duration: 5s;
	animation-iteration-count: 1;
}

ul#programmes {
	display: flex;
}

ul#programmes > li {
	padding: 5px 10px;
}

ul#programmes > li > a {
	display: block;
	color: #111;
	text-align: center;
	font-weight: bold;
}

ul#programmes > li > a:hover {
	color: #0F3A86;
}

ul#programmes > li > a > img {
	max-width: initial;
	height: 60px;
}

.left-aligned {
	text-align: left;
}

address {
	margin-bottom: 30px;
}

address > ul > li > h3 > img {
	height: 60px;
}

.requirements {
	max-width: 420px;
	padding: 0px 6px;
	border: 2px solid rgb(15, 58, 134);
}

.requirements > h4:first-child {
	margin-top: 0.75em;
}

#philo-quotation {
	font-family: 'Indie Flower', cursive;
	font-weight: bold;
	margin: 1em auto;
	color: #0F3A86;
	text-align: center;
}



@media screen and (max-width: 919px) {

header, footer {
	position: static;
}

header {
	padding-top: 12px;
	margin-bottom: 60px;
}

header > div {
	justify-content: space-around;
}

/*Display 'show menu' link*/
.show-menu {
	display: block;
}

header > nav > ul {
	display: none;
}

header img[alt="Quorum-ETC Logo"] {
	height: 77px;
}

header img[alt="Datadocké"] {
	height: 70px;
}

/*Show menu when invisible checkbox is checked*/
input[type=checkbox]:checked ~ ul {
	display: block;
}

.middle {
	width: 98%;
	margin: 0 auto;
	padding-bottom: 5px;
}

aside {
	display: none;
	position: absolute;
	top: 128px;
}

aside.left {
	left: 3px;
}

aside.right {
	right: 3px;
}

aside > div {
	text-align: center;
	/* line-height: 1.2; */
}

aside > div > h2 {
	font-size: 90%;
	font-weight: normal;
	padding: 0 5px;
	margin: 2px 0;
	color: whitesmoke;
	background-color: #0F3A86;
}

aside > div > h2 span {
	font-weight: bold;
}

aside > div > div {
	display: none;
	padding: 5px;
	height: 230px;
	overflow: auto;
	text-align: initial;
	color: #0F3A86;
	background-color: rgba(0, 0, 255, 0.1); /*#0F3A86 */
	background-image: url('Logo-transp.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-clip: padding-box;
	border-color: #0F3A86;
	border-style: solid;
	border-radius: 2%;
}

aside > div strong {
	font-size: 130%;
}

#word-of-the-day ol {
	margin: 0;
	padding: 0 0 0 20px;
}

#word-of-the-day ol > li {
	margin: 0.5em 0;
}

ul#programmes {
	position: static;
	justify-content: space-around;
}

address > ul > li {
	text-align: center;
}

#philo-quotation {
	width: 100%;
	font-size: 2.5em;
	line-height: 1.15;
}

}


@media screen and (min-width: 920px) {

header, footer {
	position: fixed;
}

header {
	height: 134px;
	padding-top: 30px;
}

footer {
	bottom: 0px;
}

header > div {
	width: 90%;
	justify-content: space-between;
}

header > nav {
	position: relative;
	top: -40px;
}

header > nav > ul, footer > ul {
	display: flex;
	justify-content: space-between;
	width: 50%;
}

header img[alt="Quorum-ETC Logo"] {
	height: 110px;
}

header img[alt="Datadocké"] {
	height: 100px;
}

div#content {
	padding-top: 160px;
}

.middle {
	float: left;
	width: 50%;
	padding-bottom: 40px;
}

div#content.programme .middle {
	padding-top: 140px;
}

aside {
	width: 25%;
	float: left;
	padding-top: 30px;
}

aside.right {
	padding-top: 8px;
}

aside > div {
	width: 85%;
	text-align: center;
	margin: 0 auto 20px;
	line-height: 1.2;
}

aside > div > h2 {
	display: inline-block;
	font-size: 140%;
	font-weight: normal;
	padding: 0 5px;
	margin: 5px auto;
	color: whitesmoke;
	background-color: #0F3A86;
}

aside > div > h2 span {
	font-weight: bold;
}

aside > div > div {
	padding: 5px;
	height: 230px;
	overflow: auto;
	text-align: initial;
	color: #0F3A86;
	background-color: rgba(0, 0, 255, 0.1); /*#0F3A86 */
	background-image: url('Logo-transp.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-clip: padding-box;
	border-color: #0F3A86;
	border-style: solid;
	border-radius: 2%;
}

aside > div strong {
	font-size: 130%;
}

#word-of-the-day ol {
	margin: 0;
	padding: 0 0 0 20px;
}

#word-of-the-day ol > li {
	margin: 0.5em 0;
}

ul#programmes {
	position: fixed;
	top: 164px;
	width: 50%;
	justify-content: center;
	margin: 0 25%;
	background-color: white;
}

address > ul {
	display: flex;
	justify-content: space-between;
}

address > ul > li {
	white-space: nowrap;
	padding: 0px 5px;
}

address > ul > li > h3 {
	text-align: center;
}

#philo-quotation {
	width: 75%;
	font-size: 3.5em;
	line-height: 1.2;
}

}


