﻿/* ------------------------------------ */
/* Titres */

h1 {
	font-size: 1.2em;
	padding: 0.5em;
	background-color: #493407;
	color: #dccabe;
	margin: 0.5em 0;
}

#switch_document {
	visibility: hidden;
}

/* Style des boites H2 avec l'arrow à droite */
h2 {
	font-size: 1em;
	position: relative;
	cursor: pointer;
	padding: 0.3em 2.5em 0.3em 2em;
	background-color: #F1E8D4;
	color: #9f8419;
	margin: 1.5em 0 0 0;
	border: 1px solid black;
	min-height: 35px;
}

h2:hover {
	border-bottom: 1px solid black;
	background-color: #493407;
	color: #dccabe;
}

h2 img {
	vertical-align: middle;
}

h3 {
	font-size: 1.1em;
	color: #007229;
	/* Vert */
}

/* ------------------------------------ */
/* Listes reset des marges */
section#tuto ul,
ol {
	margin: 0;
}

section#tuto ul li,
ol li {
	padding: 0.5em 0;
}


/* ------------------------------------ */
/* Les figure et image                  */
figure {
	margin: 0.2em 0;
	text-align: center;
}

figure img {
	width: 98%;
}

figure img.code {
	background-color: black;
	border: 5px solid #B55F21;
	border-style: outset;
}

figure img.illustration {
	border: 1px solid black;
	box-shadow: 0px 0px 12px gray;
}


/* ------------------------------------ */
/* Conteneur icone haut de page */
div#icon-container {
	text-align: right;
	margin-right: 2em;
}

div#icon-container img {
	margin: 0 1em;
	cursor: pointer;
}


/* ------------------------------------ */
/* La flex qui contient les liens vers la chaine et la playlist */
#boite-conteneur {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-around;
}


/* Lien vers la playlist */
p.playlist {
	text-align: center;
}

p.playlist a {
	display: inline-block;
	text-decoration: none;
	padding: 0.5em;
	background-color: #F1E8D4;
	border: 1px solid black;
	border-radius: 5px;
}


/* ------------------------------------ */
/* Conteneur H2 */
/* # de Copie du lien */
h2 a {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0;
	background-color: #ffda88;
	color: black;
	text-decoration: none;
	padding: 1px;
	font-size: 0.7rem;
}

/* Arrow déplier / replier */
h2 img {
	position: absolute;
	right: 5px;
	top: 5px;
}

/* Boite contenu de niveau H2 */
.div_h2 {
	background-color: #F1E8D4;
	padding: 0.3em 1em 0.5em 1em;
	border-top: 1px solid transparent;
	border-bottom: 1px solid black;
	border-left: 1px solid black;
	border-right: 1px solid black;
}

.div_h2 p:first-child {
	margin-top: 0;
}

/* ------------------------------------ */
/* Le bouton fixe Déplier / replier */
nav#switch-document {
	position: fixed;
	top: 300px;
	right: 0px;
	z-index: 3;
	background-color: #bb1919;
	color: white;
	padding: 0.5em;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	cursor: pointer;
}

nav#switch-document:hover {
	transition: all 200ms;
	background-color: rgb(255, 94, 0);
	padding-left: 2em;
}

.care::before {
	content: url(/V2/COMMUN/img/exclamation-red.png);
	margin-right: 1em;
	margin-top: 1em;
	vertical-align: middle;
	display: inline-block;
}


/* ------------------------------------ */
/* Les Tableaux */
table {
	border-collapse: collapse;
	margin: 0 auto;
	text-align: center;
	width: 95%;
}

table caption {
	margin: 1em;
}

table th,
td {
	border: 1px solid black;
}

table th {
	background-color: #e65d17;
	padding: 0.7em;
}

table td {
	padding: 0.5em;
}

table tr:nth-child(even) {
	background-color: #d8c18d;
}

table tr:nth-child(odd) {
	background-color: #e0d697;
}

a.demo {
	display: block;
	width: 100px;
	cursor: pointer;
	margin: 0.8em auto;
	padding: 1em;
	border: 1px solid black;
	text-align: center;
	border-radius: 5px;
	background-color: beige;
}

a.tester-code {
	display: block;
	padding: 0.5em;
	margin: 0 auto;
	width: 150px;
	border: 1px solid black;
	text-decoration: none;
	text-align: center;
	background-color: white;
	border-radius: 0.5em;
}

a.tester-code:hover {
	background-color: beige;
}

.video-responsive {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 560px;
	margin: 0.5em auto;
}

.video-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: 556px;
	max-height: 311px;
}

code {
	display: inline-block;
	border: 1px dotted #191c2a;
	padding: 0 0.2em;
	background-color: white;
	border-radius: 3px;
}

.ctr {
	text-align: center;
}

.CodeMirror {
	border: 5px solid brown;
	font-size: 1.2em;
	width: 98%;
	height: auto !important;
	margin: 1em auto;
}

.syntaxe,
.argument,
.retour,
.exemple {
	width: 170px;
	background-color: #9a7d37;
	padding: 0.2rem 0.3rem 0.2rem 0.7rem;
	color: #e8e1d0;
	border-radius: 5px;
}

.syntaxe::before,
.argument::before,
.retour::before,
.exemple::before {
	vertical-align: middle;
	display: inline-block;
	padding-right: 0.5rem;
}

.syntaxe::before {
	content: url(/V2/COMMUN/img/code-syntaxe.png);
}

.argument::before {
	content: url(/V2/COMMUN/img/code-argument.png);
}

.retour::before {
	content: url(/V2/COMMUN/img/code-retour.png);
}

.exemple::before {
	content: url(/V2/COMMUN/img/code-exemple.png);
}

/* ---------------------------------------------------- */
/* Présentation de la chaine */
.chaine-logo {
	text-align: center;
}

.chaine-logo img {
	vertical-align: middle;
	width: 98%;
	max-width: 600px;
	padding: 1em 0;
}


/*********************************************************************************/
/* SECTION : TUTO FULL SIZE                                                      */
/*********************************************************************************/
@media (min-width:768px) {


	h1 {
		font-size: 1.2em;
	}

	h2 {
		font-size: 1.2em;
		padding: 0.1em 1.5em 0.1em 2em;
	}

	figure img {
		width: auto;
		max-width: 650px;
	}

	table {
		width: 650px;
	}


	.video-responsive {
		padding-bottom: 0%;
		height: 315px;
	}

	.CodeMirror {
		width: 80%;
	}

	#boite-conteneur {
		flex-direction: row;
	}

	.chaine-logo img {
		padding: 1em;
	}


}