/* Les polices */
@font-face{
    font-family: "DroidSans";
    src: local('Droid Sans'), local('DroidSans'), url('fonts/DroidSans.woff2') format('woff2');
}
@font-face{
    font-family: "DroidSerif";
    src: local('Droid Serif'), local('DroidSerif'), url('fonts/DroidSerif.woff2') format('woff2');
}
@font-face{
    font-family: "Poiret One";
    src: url('fonts/PoiretOne-Regular.ttf');
}

html {
	font-size: 16px;
	line-height: 1.5;
	background-color: #222;
	background-image: radial-gradient( hsl(200,80%,40%),  hsl(50,0%,20%) );
	background-repeat: no-repeat;
}

html, body {
	margin: 0;
	padding: 0;
	min-height:100%;
}

body {
	background: transparent;
	font-family: "DroidSans", sans-serif;
	color: #DCDCDC;
	padding: 0 10px;
	text-align: center;
}

a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px dotted #DCDCDC;
}
a:active, a:focus {
	text-decoration: none;
	outline: 0;
}
a:hover {
	text-decoration: none;
	background-color: rgba(0, 0, 0, .4);
	border-radius: 2px;
}
li {
	padding: 0 3px;
	margin-left: 15px;
}

li:hover {
	background-color: rgba(0, 0, 0, .2);
	border-radius: 2px;
}

h1 {
	margin: 0 5px;
	padding: 8px 52px;
	font-size: 1.4em;
}

h2, #sources .spoiler h2, #mainprez .spoiler h2 {font-size: 1.25em; font-family: 'Poiret One', cursive; color:white; margin: 1.4em auto .3em auto;}
h3 {font-size: 1em; color:white;}
h4 {font-size: 0.875em;}
h5 {font-size: 0.75em;}
h6 {font-size: 0.625em;}

p {margin: 0 0 1em 0;}

hr {
	background-image: linear-gradient(to left, rgba(51, 181, 228, 0.2), rgba(51, 181, 228, 1), rgba(51, 181, 228, 0.2));
	display: block;
	margin: 20px 0;
	border: none;
	height: 1px;
}

img {
	vertical-align: middle;
	max-width: 100%;
	height: auto !important;
}

video { max-width: 100%; }

#trad {
	position:absolute;
	top:150px;
}

.center {text-align:center;}
.right {float:right;}
.left {text-align:left;}
.highlight { color:white; font-weight: bold; }

#main { background: rgba(0, 0, 0, 0.2) url('img/les_cahiers_du_debutant.png') -20px -20px no-repeat; }

#main, #downloads, #mainprez, #about, #feedback, #footer {
	margin: 20px auto;
	padding: 20px;
	max-width:890px;
	text-align:center;
	background-color: rgba(0, 0, 0, 0.2);
	-moz-box-shadow: inset 0px 0px 5px 0px #000;
	-webkit-box-shadow: inset 0px 0px 5px 0px #000;
	-o-box-shadow: inset 0px 0px 5px 0px #000;
	box-shadow: inset 0px 0px 5px 0px #000;
}

/* Apparence de la page d'accueil */

#title-container { 
	text-align:center;
	font-family: 'Poiret One', cursive;
	margin:auto;
	color:white;
}

#title-container h1, #title-container h2 { background:transparent; padding:0; }
#title-container h2 { margin: 0 0 .4em 0; }
#title-container a { border: none; }

#hltitle {
	font-size: 3.7em;
	/*font-weight:bold;
	text-shadow: 1px 1px 3px rgba(255,255,255,0.5);*/
}

#subtitle { font-size: 1.6em; }

@keyframes mi {
    0%   {width:0px;}
    100% {width:100%;}
}

/* contact & start */
.input-search img {
	margin-right: 5px;
	margin-bottom: 3px;
}
.input-search a { border: none; }

input, textarea {
	font-size: 16px;
	background-color: #ddd;
	color: #000;
    padding:5px;
    border: none;
    margin-top: 15px;
}
input[type="submit"], input[type="search"] {
	background-color:transparent;
	color:#eee;
    border: 1px solid transparent;
    font-weight: bold;
}
input[type="submit"]:hover {
	border: 1px solid white;
}
input[type="search"] {
	background-color:#ddd;
	color:#000;
    border: 1px solid white;
    width: 32em;
    max-width: 90%;
    font-weight: bold;
}
textarea {
	max-width: 90%;
}

/* Bulle d'indication au survol */

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: none;
}

.tooltip .tooltiptext {
    visibility: hidden;
    
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    white-space: pre;
    
    width:120px;
    position: absolute;
    top:-32px;
    left:-42px; /* width/4 + border + padding */
    
    z-index: 1;
    font-size:0.9em;
}

a.tooltip:hover {background-color:transparent;}
.tooltip:hover .tooltiptext {
    visibility: visible;
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip .tooltiptext {
    opacity: 0;
    transition: opacity 1s;
}

.tooltip:hover .tooltiptext {
    opacity: 1;
}

code {
	font-size: 12px;
	margin: 4px auto;
	padding:2px;
	background-color: rgba(0, 0, 0, 0.4);
	display: inline-block;
}

/* Effet rebond au survol 
 * https://ianlunn.github.io/Hover/#
 * */
.hvr-bounce-in {
	display: inline-block;
	vertical-align: middle;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-moz-osx-font-smoothing: grayscale;
	-webkit-transition-duration: 0.5s;
	transition-duration: 0.5s;
}
.hvr-bounce-in:hover, .hvr-bounce-in:focus, .hvr-bounce-in:active {
	-webkit-transform: scale(1.2);
	transform: scale(1.2);
	-webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
	transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}

.dllinks {
	width:90%;
	margin:10px auto;
	display:block;
	font-family: 'DroidSans', sans-serif;
	color:#ddd;
	text-align:center;
}
* { transition: all 0.5s; }

.dllinks a.dlbtn {
	display:block;
	border: 3px solid #CFCFCF;
	border-radius:2px;
	padding:8px;
	margin:12px;
	background-color:#eee;
	font-weight:bold;
}
.dllinks a.dlbtn:hover {
	text-decoration:none;
	box-shadow: 0 0 8px rgba(255,255,255,0.7);
}
img.bouton { max-width: 60px; opacity: .8;}
img.bouton:hover { opacity: 1;}


#downloads h2 {
	background-color: rgba(0,0,0,0.2);
	border: 2px solid #bbb;
	border-radius: 2px;
	padding: 10px;
	margin: 0.5em;
	overflow: hidden;
	-moz-box-shadow: 0px 0px 5px 0px #000;
	-webkit-box-shadow: 0px 0px 5px 0px #000;
	-o-box-shadow: 0px 0px 5px 0px #000;
	box-shadow: 0px 0px 5px 0px #000;
}
#downloads h2:hover {
	background-color: rgba(0,0,0,0.4);
	border-color: #eee;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	-o-box-shadow: none;
	box-shadow: none;
}
#footer {
	margin: 10px auto;
	font-size: 14px;
	text-align: left;
}
#footer img {
	max-width:24px;
	height:auto;
	margin: 0 4px;
}
#footer a {border-bottom: none; }

#news {
	display: block;
	width: 100%;
	opacity: .6;
	text-align: right;
	margin: 0; padding: 0;
	margin-bottom: -2em;
}
#news:hover { opacity: 1; }
#news img { width: 30px; height: auto }
#news a { border: none; }
#news a:hover { background-color: transparent; }

.exercice {
  margin: 5px 15px;
  padding: 5px;
}

/* spoiler -----------------------------------------------------------*/
#sources { margin: 0 auto; }
#sources h2, #mainprez h2 { margin: 0; }
#sources h2 a, #mainprez h2 a { border: none; }

.spoiler {
	max-height: 0;
	opacity: 0;
	overflow: auto;
	-webkit-transition: max-height 1s, opacity 1s;
	-moz-transition: max-height 1s, opacity 1s;
	transition: max-height 1s, opacity 1s;
}
.spoiler:target {
	max-height: 9999px;
	height: auto;
	opacity: 1;
}

/* overlay nav -------------------------------------------------------*/
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	left: 0;
	background: rgba(0, 0, 0, .6);
	visibility: hidden;
	opacity: 0;
}
.overlay .cancel {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: default;
}
.overlay:target {
	visibility: visible;
	opacity: 1;
}
.popup {
	margin: 250px auto;
	padding: 0 20px 5px 20px;
	background-color: #222;
	background-image: radial-gradient( hsl(200,80%,40%),  hsl(50,0%,20%) );
	background-repeat: no-repeat;
	border: 2px solid #eee;
	border-radius: 2px;
	width: 400px;
	max-width: 80%;
	height: 120px;
	max-height: 80%;
	position: relative;
	overflow: hidden;
}
.popup h2 { margin: .5em;}
.wide {
	width: 700px;
	height: 500px;
	margin-top: 150px;
	overflow: auto;
}
.popup .close {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 20px;
	height: 20px;
	opacity: 0.6;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
}

.popup .close:hover {
	opacity: 1;
}
.popup .content {
	overflow: auto;
}
.popup a {
	border: none;
}
.popup a:hover {
	background: none;
}

img.hidden {
	position: absolute;
	max-height: 0;
	opacity: 0;
	overflow: auto;
	-webkit-transition: max-height 1s, opacity 1s;
	-moz-transition: max-height 1s, opacity 1s;
	transition: max-height 1s, opacity 1s;
}
img.hidden:target {
	max-height: 1200;
	opacity: 1;
}
