/*
 theme pour mes tutos. 6eme version, Material
*/


:root {
  --main-md-color: #ff5722;
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300;
	src: local("roboto light"), url("fonts/roboto/roboto-300.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	src: local("roboto regular"), url("fonts/roboto/roboto-400.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 500;
	src: local("roboto medium"), url("fonts/roboto/roboto-500.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 700;
	src: local("roboto bold"), url("fonts/roboto/roboto-700.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 900;
	src: local("roboto black"), url("fonts/roboto/roboto-900.woff2") format("woff2");
}


html,
body {
	font-family: Roboto, 'Trebuchet MS', arial, helvetica, sans-serif;
	font-weight: 400;
	background-color: #fafafa;
	color: #212121;
	padding: 0;
	margin: 0;
}

html {
	font-size: 18px;
}

body {
	font-size: 1em;
	line-height: 1.4;
}


/* Le menu en haut
-------------------------------------------------------- */

#top-nav {
	background: #F27C21;
	background: var(--main-md-color);
	color: white;
	min-height: 64px;
	display: flex;
	align-items: center;
	padding: 0 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	font-weight: 500;
	font-size: 1em;
}

#top-nav .home {
	flex: 1;
}

#top-nav a {
	color: inherit;
}

#top-nav > a {
	padding: 10px;
}

#top-nav .logo {
	height: 42px;
	width: 42px;
	border-radius: 50%;
	display: inline-block;
}

#top-nav .logo img {
	vertical-align: middle;
	height: 42px;
	width: 42px;
	border-radius: 50%;
	box-shadow: 0 0 3px black;
}



/* Page  title header
-------------------------------------------------- */
.header {
	margin: 50px auto 20px;
	max-width: 1000px;
	padding: 20px 20px 0;;

}

.header h1 {
	margin-bottom: 70px;
	padding-top: 10px;
}

/* Page elements
-------------------------------------------------- */

.intro {
	font-size: 1.4em;
}

#toc {
	list-style: none;
	padding: 0 0 0 20px;
	border-left: 5px solid #F27C21;
	border-left-color: var(--main-md-color);

}

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	color: #F27C21;
	color: var(--main-md-color);

}

h1 {
	padding-top: 20px;
	font-size: 2.5em;
}
h2 {
	padding-top: 80px;
	font-size: 1.9em;
}
h3 {
	padding-top: 25px;
	font-size: 1.6em;
}
h4 {
	padding-top: 15px;
	font-size: 1.35em;
}
h5 {
	padding-top: 10px;
	font-size: 1.2em;
}
h6 {
	padding-top: 10px;
	font-size: 1.15em;
}

/* Main content
-------------------------------------------------- */

.contenu,
#contenu {
	margin: 0 auto;
	max-width: 1000px;
	padding: 20px;
}

p {
	margin: 1em 0;
}

a {
	color: #F27C21;
	color: var(--main-md-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.clearright { clear: right; }

.code,
pre,
code {
	font-size: .9em;
	margin: .5em 0;
	background-color: #272822;
	font-family: monospace, 'courier new';
	padding: 1em;
	overflow-x: auto;
	color: #f8f8f2;
	border-radius: 4px;

}
code {
	padding: 1px 5px;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	text-decoration: none;
	color: inherit;
}


/* Les 2 partis du pied de page
-------------------------------------------------------- */
.footer {
	text-align: center;
	padding: 50px 20px;
}

.go_to_sommaire {
	font-size: 80%;
	text-align: right;
}



/* Styles divers
-------------------------------------------------------- */

.centrer, .centrerinline {
	display: block;
	margin: 40px auto;
	text-align: center;
}

p.small { /* Genre, crédit en bas du tuto vidéo */
	font-size: .7em;
	margin-top: 10px;
	text-align: center;
	color: #777;
}

.dred {
	color: black;
	font-style: italic;
}

.dred:before {
	content: '« ';
}

.dred:after {
	content: ' »';
}

.shadowed {
	box-shadow: 0px 0px 10px gray;
	margin-bottom: 30px;
}

span.toets {
	color: #fff;
	margin-right: 1px;
	padding: 0 3px;
	border: 1px solid #656565;
	background-color: #000;
	border-radius: 3px;
}

.one {
	float: right;
	margin: 20px;
}

#citat {
	font: italic normal bold 1.3em "Times New Roman", serif;
	width: 500px;
	text-align: center;
}

a img {
	border: none;
}

img {
	max-width: 100%;
	height: auto;
}

pre,
code {
	white-space: pre-wrap;
} /* for firefox to count the word-wrap in <pre>  tags */





/* Media queries / responsaive design
------------------------------------------------------- */
@media (max-width: 700px) {
	#top-nav {
		flex-wrap: wrap;
	}

	#top-nav .home {
		flex: 0 0 35px;
		overflow: hidden;
		height: 35px;
		padding-right: 15px;
	}
}
