
html {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAMAAACeL25MAAAABlBMVEX////OysUU6GHPAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxJREFUCNdjYGTAAAAAJwACR9dTnQAAAABJRU5ErkJggg==);
	margin: 0;
	padding: 0;
}

body {
	background-color: #fff;
	border: 1px solid #ccc;
	margin: 0 auto;
	padding: 10px 30px;
	font-family: Arial,"URW Gothic L",Helvetica,Verdana;
	width: 900px;
}

footer {
	opacity: 0.5;
	margin-top: 40px;
	border-top: 3px solid #84c551;
	padding: 15px;
	text-align: right;
	transition: opacity 0.5s;
}

footer:hover {
	opacity: 1;
}

footer > div.partners {
	margin-left: 15px;
	display: inline-block;
	vertical-align: middle;
}

p {
	margin: 8px 0;
}

body > header {
	height: 77px;
	background: url(../img/icons/logonav_77.png) no-repeat center 0;
}

div.content > h1 {
	font-size: 30px;
	margin: 5px 0 20px 0;
	padding: 65px 0;
	height: 110px;
	background: url(../img/icons/bandeauaccueil.png) no-repeat center 0;
	text-align: center;
}

h1 {
	counter-reset: titles2;
	color: #6c6e70;
}

h2::before {
	content: counter(titles2)". ";
}

h2 {
	counter-increment: titles2;
	display: table;
	color: #fefeff;
	background-color: #84c551;
	font-size: 18px;
	padding: 2px 5px;
	margin: 25px 0 9px 0;
}

p.subtitle {
	text-align: center;
	font-weight: bold;
	font-size: 110%;
	font-style: italic;
}

a {
	color: #557e34;
	text-decoration: none;
	cursor: pointer;
}

a[href $='.pdf'] { 
	padding-right: 15px;
	background: transparent url(../img/icons/icon_pdf.gif) no-repeat center right;
}

a.thermoptim {
	margin: 5px;
	padding: 15px 55px 15px 15px;
	border-radius: 7px;
	display: inline-block;
	color:  #000;
	border: 1px solid black;
	border-radius: 5px;
	background: #eee url(../img/icons/lienthermoptim.png) no-repeat right 0;
}

a.thermoptim.enabled {
	cursor: pointer;
}

a.thermoptim.disabled {
	opacity: 0.25;
	cursor: default;
	pointer-events: none;
}

img.mathml {
	height: 1.2em;
	vertical-align: middle;
	padding: 3px;
}

math {
	font-family: CMSY10, CMEX10, Symbol, Times;
}

div.formule {
	text-align: center;
}

div.formule math, div.formule img {
	padding: 20px;
	border: 1px solid black;
	background-color: white;
	color: #000;
	margin: 15px auto;
	font-size: 200%;
}

span.thermoptim {
	font-weight: bold;
	font-variant: small-caps;
}

span.keyword {
	font-weight: bold;
	font-style: italic;
}

span.point {
	font-weight: bold;
	font-family: monospace;
}

img.center {
	display: block;
	margin: 15px auto;
	border: 1px solid black;
}

img.right {
	float: right;
	margin: 0 0 30px 30px;
	border: 1px solid black;
}

/* ---- Menu ---- */
div.menu > img {
	padding: 4px;
	cursor: pointer;
}

div.menu > div.popup {
	max-height: 400px;
	overflow: auto;
	background-color: white;
	position: absolute;
	border: 1px solid black;
	padding: 10px;
	margin: 0;
	box-shadow: -1px 2px 10px 1px rgba(0, 0, 0, 0.3);
	z-index: 10;
}

div.menu li.part {
	margin-top: 10px;
	background-color: #e8eae8;
	border-top: 2px solid #84c651;
	padding: 10px;
	font-size: 140%;
}

div.menu ul > ul {
	padding: 10px;
}

div.menu ul {
	padding: 0;
}

div.menu ul > li {
	padding: 5px 9px;
	list-style-type: none;
}

div.menu ul.tools {
	padding-top: 15px;
	border-top: 2px solid #84c651;
}

div.menu ul.tools > li {
	font-weight: bold;
	cursor: pointer;
}

div.menu ul > li.current {
	background-color: #eee;
	font-weight: bold;
}

div.menu a {
	color: black;
}

div.menu ul > li img {
	vertical-align: middle;
	padding-right: 10px;
}

/*---- Sections ----*/
div.sections > ul {
	border: 2px solid lightgray;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}

div.sections > ul > li {
	background-color: #ddd;
	display: inline-block;
	padding: 20px 20px 20px 50px;
	position: relative;
	color: #444;
	cursor: pointer;
}

div.sections > ul > li:before {
	border-bottom: 30px solid transparent;
	border-left: 30px solid #fff;
	border-top: 30px solid transparent;
	content: " ";
	display: inline-block;
	left: 100%;
	margin-left: 3px;
	margin-top: -30px;
	position: absolute;
	top: 50%;
	z-index: 1;
}

div.sections > ul > li:after {
	border-bottom: 30px solid transparent;
	border-left: 30px solid #ddd;
	border-top: 30px solid transparent;
	content: " ";
	display: inline-block;
	left: 100%;
	margin-top: -30px;
	overflow: hidden;
	position: absolute;
	top: 50%;
	z-index: 2;
}

div.sections > ul > li.current {
	color: #fff;
	font-weight: bold;
	background-color: #ee936e;
}

div.sections > ul > li.current:after {
	border-left: 30px solid #ee936e;
}

div.sections > div.selector {
	border: 3px solid lightgray;
	margin: 15px 0;
	background-color: white;
	float: right;
	text-align: center;
}

div.sections > div.selector > img {
	cursor: pointer;
	display: inline-block;
	padding: 10px;
}

div.sections > div.selector > img:hover {
	opacity: 0.5;
}

div.end {
	clear: both;
}

div.sections > div.selector > .disabled {
	opacity: 0.3;
	cursor: normal;
}

/*---- Section ----*/
section > header:before {
	content: "";
	position: absolute;
	background: #fff url(../img/icons/lecon_64.png) no-repeat center center;
	border-radius: 10px;
	top: 15px;
	left: 15px;
	width: 64px;
	height: 64px;
}

section > header {
	position: relative;
	color: #fff;
	font-weight: bold;
	min-height: 84px;
	background-color: #84c551;
	padding: 15px 15px 15px 100px;
	margin: 1em 0;
	border-radius: 20px;
}

section > header ul, section > header ol {
	display: inline-block;
	margin-right: auto;
	margin-left: auto;
	text-align: left;
}

section li {
	padding: 5px;
}

section h1 {
	color: #ee875d;
	margin: 35px 0 25px 0;
	font-size: 140%;
	text-align: left;
	text-decoration: underline;
}

section h2 {
	font-size: 110%;
}

section h3 {
	display: table;
	font-size: 100%;
	border-left: 6px solid #84c551;
	padding: 7px;
	margin: 25px 0 12px 0;
	background-color: #dddddd;
}

section div.comment {
	margin: 1em 0;
	padding: 20px 80px;
	font-style: italic;
	border-radius: 15px;
	background-color: #ddd;
	background-image: url(../img/icons/information_48.png);
	background-repeat: no-repeat;
	background-position: right 0;
}

section div.instructionsThermoptim {
	background: #eee url(../img/icons/lienthermoptim.png) no-repeat right 0;
	border: 1px solid black;
	background-color: #ddd;
	margin: 25px 0;
	padding: 20px;
	padding-right: 50px;
}

/*----- Exercices ----*/

fieldset.exercice {
	margin: 15px 0;
	border: 1px solid black;
	padding: 10px;
}

fieldset.exercice div.question {
	padding-top: 10px;
	padding-left: 40px;
	min-height: 40px;
	background: #fff url(../img/icons/quizquestion.png) no-repeat left top;
}

fieldset.exercice div.result {
	padding: 10px 60px;
	text-align: center;
	font-weight: bold;
}

fieldset.exercice div.good {
	color: green;
}

fieldset.exercice div.tomuchtries {
	color: #ee7600;
}

fieldset.exercice div.wrong {
	color: red;
}

fieldset.exercice label {
	cursor: pointer;
}

fieldset.exercice > div.explain > div.content {
	border: 1px dotted gray;
	background-color: #fff;
	border-radius: 10px;
	padding: 10px 40px;
}

form.qcu > table {
	padding: 15px;
}

form.qcm > table {
	padding: 15px;
}

form.qnum > span.unit {
	margin-left: 10px;
}

form.qnum > input {
	text-align: right;
}

form.qnum > button {
	margin: 10px;
}

form.qplace > div.panel {
	border: 2px solid #ddd;
	background-color: #f9f9f9;
	display: table-cell;
	min-height: 32px;
	min-width: 32px;	
	position: relative;
	overflow: hidden;
}

form.qplace img {
	vertical-align: top;
	background-color: #fff;
	margin-bottom: 30px;
}

form.qplace > button {
	margin-top: 10px;
}

form.qplace div.stock {
	min-height: 260px;
	display: inline-block;
	width: 200px;
	vertical-align: top;
	margin: 10px;
}

form.qplace div.stock div.item {
	margin: 5px;
}

form.qplace div.item {
	display: inline-block;
	margin: 0px;
	cursor: pointer;
	background: #ddd;
	padding: 10px 15px;
	border-radius: 10px;
	opacity: 0.8;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

form.qplace div.target {
	margin: -8px;
	width: 10px;
	height: 10px;
	border-radius: 10px;
	background-color: #fff;
	border: 3px solid #bbb;
	opacity: 0.8;
	transition: border 0.25s;
}

form.qplace div.selected {
	border: 3px solid blue;
}

/*----- Glossary ----*/

abbr.glossaryItem {
	cursor: pointer;
	text-decoration: none;
	border-bottom: 1px dotted #000;
}

div.glossary {
	position: fixed;
	z-index: 10;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
}

div.glossary > section > button.close {
	position: fixed;
	margin: 10px;
	top: 0;
	right: 0;
	background-color: #fefefe;
	border: 3px solid #84c551;
	border-radius: 15px;
	padding: 10px;
	cursor: pointer;
	opacity: 0.5;
}

div.glossary > section > button.close:hover {
	opacity: 1;
}

div.glossary > section {
	position: relative;
	background-color: #fefefe;
	margin: auto;
	padding: 45px;
	border: 3px solid #84c551;
	border-radius: 15px;
	width: 850px;
	max-height: 500px;
	overflow: auto;
}

div.glossary h1 {
	margin-top: 0;
	color: #888;
	text-decoration: none;
}


div.glossary dfn {
	padding-top: 20px;
}

div.glossary dfn:target {
	color: #84c551;
}

div.glossary dt {
	padding-top: 20px;
	font-weight: bold;
}

div.glossary dd {
	margin-top: 10px;
	margin-bottom: 10px;
}
