@font-face {
    font-family: 'Work Sans';
    src: url('fonts/WorkSans-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Work Sans';
    src: url('fonts/WorkSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Work Sans';
    src: url('fonts/WorkSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
  font-family: 'YoungSerif';
  src: url('fonts/YoungSerif-Regular.woff2') format('woff2'),
    url('fonts/YoungSerif-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root{
	--margin : 20%;
	--maincolor: #000;
	--secondcolor: blue;

}

body{
	font-family: "Work Sans", sans-serif;
	margin:0;
	font-size: 20px;
	line-height: 1.4;
	overflow-x: hidden;
	background: #FFF;
	color: var(--maincolor);
}

.dl-starterkit{
	text-align: center;
}

.dl-starterkit a{
	border: 1px solid var(--secondcolor);
	text-decoration: none;
	padding: 5px 8px;
	word-wrap: break-word;
	background: #FFF;
	color: var(--secondcolor);
	border-radius: 12px;
}

.dl-starterkit a:hover{
	background: var(--secondcolor);
	color: #FFF;
}

/* Résultats */
.infos-resultats{
	font-size: 0.8em;
}

.images-grid{
	display: flex;
	flex-wrap: wrap;
}

.images-grid li{
	width: 30%;
}

.images-grid li:before{
	content:'';
}

.images-grid li figure{
	margin:0;
}

header{
	width: 100%;
	margin-bottom: 40px;
}

header h1{
	color: var(--maincolor);
	font-weight: normal;
	margin-bottom: 0;
	text-align: center;
	margin-bottom: 5px;
	font-size: 1.6em;
/*	text-shadow: 0 0 10px cyan;*/
}
header p{
/*	text-shadow: 0 0 5px cyan;*/
}

header h1 a{
	color: var(--maincolor);
	border: none;
	background: transparent;
	box-shadow: none;
}


header h1 a:hover{
	box-shadow: none;
}

nav.main-nav{
	width:100%;
	position:-webkit-sticky; 
	position:sticky; 
	top:10px;
	z-index: 500;
}

nav.main-nav ul{
	display: flex; 
	justify-content: center;
}


nav.sub-nav{
	position: fixed;
	margin-top: 80px; 
	width: 20%;
}

nav.sub-nav li{
	margin-bottom: 7px;
}

nav ul li:before{
	content: none;
}

nav ul li a{
	color: #000;
/*	box-shadow: 0 0 10px cyan;*/
	border: 1px solid var(--secondcolor);
	text-decoration: none;
	padding: 5px 8px;
	word-wrap: break-word;
	background: #FFF;
	border-radius: 12px;
}

nav ul li a:hover{
	background: var(--secondcolor);
	color: #FFF;
/*	color: #FFF;*/
}

nav ul li a.active{
	background: var(--secondcolor);
	color: #000;
	pointer-events: cursor;
	border: 1px solid var(--secondcolor);
	box-shadow: 1px 1px 10px 10px var(--secondcolor);
	text-shadow: 0px 0px 5px grey;
}

nav > ul > li > ul{
	margin-left: 20px;
}

.unicode{
	color: var(--secondcolor);
}

.sans{
	color: var(--secondcolor);
	font-family: serif;
}

header h1 + p{
	margin-top: 0px;
	color: var(--maincolor);
	text-align: center;
}

h1{
	font-family: "YoungSerif", sans-serif;
	font-weight: normal; 
	text-align: center; 
	font-size: 2em;
	letter-spacing: 1px;
}

h2{
	font-weight: normal;
	color: var(--maincolor);
	margin-top: 60px;
	border-bottom: 1px solid var(--secondcolor);
	padding: 10px;
}

h3{
	font-weight:normal;
	margin-bottom: 0;
	text-decoration: underline;
	margin-top: 30px;
}

h3 + ul{
	margin-top: 20px;
}

h3 a{
	box-shadow: none;
	text-shadow: none;
	color: var(--maincolor);
	text-decoration: none;
	border: none;
}

h3 a:hover{
	box-shadow: none;
	color: #FFF;
}

h4{
	font-weight:normal;
	margin-bottom: 0;
	margin-top: 30px;
}

h4:before{
	content: "→";
	color: var(--secondcolor);
	margin-right:10px;
}

h3 + p, h4+p{
	margin-top: 10px;
}

ul{
	margin:0;
	padding: 0;
}

li{
	list-style: none;
}

li:before{
	content: "—";
	margin-right: 10px;
	color: var(--secondcolor);
}


a{
	color: #000;
	text-decoration: none;
	border-bottom: 1px solid var(--secondcolor);
/*	box-shadow: 1px 1px 10px 1px var(--secondcolor);*/
	transition: all 0.2s linear;
}

a:hover{
	color: var(--secondcolor);
/*	box-shadow: 1px 1px 10px 10px var(--secondcolor);*/
/*	text-shadow: 0px 0px 5px grey;*/
}

p a{
	color: #000;
	border: 1px solid var(--secondcolor);
	text-decoration: none;
	padding: 2px 8px;
	word-wrap: break-word;
	border-radius: 12px;
	background: #FFF;
}

p a:hover{
	background: var(--secondcolor);
	color:  #000;
}

section article ul li a{
	color: var(--maincolor);
	box-shadow: none;
}

section article ul li a:hover{
	box-shadow: none;
	color: var(--secondcolor);
}

/*code{
	background: #E6E6E6;
	border-radius: 30px;
	padding: 10px;
	max-width: 100%;
	word-wrap: break-word;
	font-size: 1em;
}*/

code.language-html .tag{
	color: magenta;
}

code.language-html .attr{
	color: #07AE03;
}

code.language-html .string{
	color: #F39412;
}

code.language-html .comment{
	color: #888888;
}

pre{
	background: #E6E6E6;
	border-radius: 30px;
	padding: 20px 30px;
	max-width: 100%;
	word-wrap: break-word;
	white-space: pre-wrap;       /* Since CSS 2.1 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  font-size: 0.8em;
}

code{
	background: #E6E6E6;
	color: #000;
}

textarea{
	display: block; 
	background: #E5E5E5;
	border-radius: 30px;
	padding: 20px 30px;
	width: 100%;
	height: auto;

}

main{
	width: 60%; 
	margin: auto;
	margin-top: 50px;
	margin-bottom:200px;
/*	background: #FAFAFA;*/
	padding: 20px 60px;
	border-radius: 50px;
/*	box-shadow: 0 0 50px var(--secondcolor);*/
}

figure{
	width:60%;
	min-width: 200px;
	margin: 20px auto;
}

figure.grande{
	width: 100%;
}

figcaption{
	font-size: 0.7em;
	margin-top: 5px;
}

img{
	width: 100%;
	vertical-align: top;
}

svg{
	width: 200px;
}

/* table */
table {
	border:1px solid #000;
	border-collapse:collapse;
	padding:17px;
	table-layout: fixed;
	width: 100%;
}

table li:before{
	color: #000;
}

table th {
	border:1px solid #000;
	padding:17px;
	background: #FFF;
	color: #000;
	font-weight: normal;
	width: calc(100% - 120px / 4 );
}
table td {
	border:1px solid #000;
/*	text-align:center;*/
	padding:17px;
	background: #ffffff;
	color: #313030;
	width: calc(100% - 120px / 4 );
}


table ul > li > ul{
	padding-left: 40px;
}

table th:first-child, table td:first-child{
	width:120px;
}

.saturn{
	transition: fill 1s linear;
	fill: red
}

.saturn:hover{
	fill: yellow;
}

.image-pre{
	margin:40px 0;
}

.image-pre pre{
	font-family: monospace;
	line-height: 0.1;
	font-size: 9px;
	background: #FFF;
	padding: 0;
}

.blendmode {
	background-color: #59B7FF;
}

.blendmode img {
	mix-blend-mode: multiply;
}

.logo{
	font-style: normal;
	font-weight: normal;
	text-align: left;
	font-size: 1.5rem;
	line-height: 1.1;
	margin: 0;
	cursor: pointer;
	color: #000;
	font-family: Georgia, sans-serif;
}

.logo .sign{
	color: #71B340;
}

/* Dégradé sur texte */
h1.gradient{font-size: 40px;}
p.gradient{font-size: 10px}
.gradient {
	background: -webkit-linear-gradient(blue, red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Superpostion image / texte */
.superposition-exemple{
	position: relative;
	background: red;
}

.superposition-image{ width:100%; mix-blend-mode:screen;}
.superposition-texte{
	position: absolute; 
	top: 50%; 
	left: 50%;
	transform: translate(-50%, -100%) skew(-10deg, -10deg);;
	z-index: 99;
	font-size: 80px;
	font-weight: bold;
	text-align: center;
	color: white;
	line-height: 1.1;
	mix-blend-mode: exclusion;
	text-transform: uppercase;
}

/* dans l'onglet cuisine */
.ingredients{font-size: 0.8em;}
.ingredients ul li::before{content: "●";}
.deroule-recette ol{padding:0;}

/* dans l'onglet ressources */
.info{
	font-size: 0.8em;
	margin-top: 5px;
	margin-bottom: 30px;
	font-weight: 500;
	opacity: 0.9;
}

.credits{
	border-top: 1px solid var(--secondcolor);
	margin-top: 80px;	
}
​


@media print{
	@page{
		margin: 1cm;
		size: A4;
	}
	body{
		font-size: 13px;
		background: transparent;
	}
	a{border: none; text-decoration: underline;}
	a:after{
		content:" (" attr(href) ") ";
		font-size: 0.8rem;
		font-weight:normal;
	}
	figure, img, .image-pre, h2{page-break-inside: avoid;}

}


@media only screen and (max-width: 48em){
	.hide-for-small-only{
		display: none;
	}
	header{
		width:calc(100% - 40px);
		padding: 0 20px;
	}
	main{
		width: 90%;
	}

	nav.main-nav ul{
		flex-wrap: wrap;
		text-align: center;
	}

	nav.main-nav li{
		margin-bottom: 7px;
	}

	.images-grid li{
		width: 100%;
		padding: 5px 0;
	}

	figure{
		width: 100%;
	}
}


/* Image duotone */
.image{
   width: 100%;
   height:350px;
   background: url('images/08.jpg') center center no-repeat;
   background-size: 100%;
   position: relative;
}

.duotone::after{
	content: '';
	width:100%;
	height:100%;
	position: absolute;
	top:0;
	left: 0;
	background-color: blue;
	mix-blend-mode: lighten;
}

.duotone::before{
	content: '';
	width:100%;
	height:100%;
	position: absolute;
	top:0;
	left: 0;
	background-color: red;
	mix-blend-mode: multiply;
}


/* PLANNING PAGE */
main.planning{
	width: 85%;
}

/* RESULTS PAGE */
#process figure{
	padding:0;
	width: 100%;
}

.images-grid{
	display: flex;
	flex-wrap: wrap;
}

.images-grid.col-2 figure{
	padding:0;
	width: 45%;
}

.images-grid.col-3 figure{
	padding:0;
	width: 30%;
}






