html,
input,
button {
	font: 16px/1.5 Open Sans, Verdana, sans-serif;
}
h1,
h2,
h3,
h4,
h5 {
	font-family: Lato;
	font-style: italic;
}
s {
	color: darkred !important;
}
a.dead-link {
	text-decoration: line-through;
	color: darkred !important;
}

*,
*::before,
::after {
	box-sizing: inherit;
}
html {
	height: 100%;
	box-sizing: border-box;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	min-height: 100%;
	padding: 0 0 4rem;
	position: relative;
	background: #dadada;
	color: #312d2d; /* 352e2c; */
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}
body > h1 {
	z-index: 1;
	margin: 3rem 0 6rem;
	text-shadow: -0.01em 0.035em 0.08em rgba(0,0,0,0.4);
	font-size: 4rem;
	font-weight: 700;
	color: #3a3533;
}
body > h1 h1 a {
	text-shadow: inherit;
}
body > header {
	position: absolute;
	top:0;
	height: 10rem;
	width: 100%;
	background: #ededed;
	/* align-self: stretch; */
	text-align: center;
	/* -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0% 100%);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0% 100%); */
	/* transition: all 0.1s ease-out; */
}
h2 + div,
h3 + div {
	padding-left: 1rem;
}
.sep-top,
#contact,
nav hr {
	box-shadow: 0 -1px 0px #e7e7e7, inset 0 6px 6px -6px rgba(0,0,0,0.1);
}
#contact {
	width: 100%;
	margin-top: 2rem;
	text-align: center !important;
}
#contact h3 {
	text-align: center !important;
	margin-bottom: 0.25rem !important;
	margin-top: 1.5rem;
}
#contact span {
	display: inline-block;
	margin: 0 1rem;
}
#contact > div:last-child {
	margin-top: .25rem;
}
#contact small a {
	font-size: .9rem;
	color: #4a7391;
}
#contact a {
	text-decoration: underline;
}
.big-shadow,
a.img {
	box-shadow: 0 1px 3px rgba(0,0,0,0.125), 0 3px 5px rgba(0,0,0,0.085), 0 5px 10px rgba(0,0,0,0.115), 0 10px 10px rgba(0,0,0,0.1), 0 20px 20px rgba(0,0,0,0.075);
}
h1 {
	line-height: 1.2;
	margin: 0 0 2rem;
}
h1 a {
	color: inherit;
	text-decoration: none;
}
body > section {
	max-width: 67rem !important;
}
section h1 {
	font-size: 3rem;
}
.strong,
h4 {
	font-weight: 700 !important;
}
h4 {
	font-size: 1.1rem;
	margin: 0 0 1rem;
}
h5 {
	font-size: 1rem;
	margin: 0;
}
code {
	font-family: Consolas, monospace;
	font-weight: normal !important;
	font-size: 1.2rem;
	line-height: 1;
	background: rgba(255,255,255,0.66);
	border-radius: 0.25rem;
	padding: 0 0.5rem;
	margin: 0 0.25rem;
	white-space: nowrap;
}
.page {
	margin-bottom: auto;
}
.page > header,
.page > h1 {
	margin-bottom: 4rem !important;
}
.page h1 {
	margin-bottom: 1rem;
	text-shadow: -0.01em 0.035em 0.08em rgba(0,0,0,0.3);
	font-size: 3rem;
	text-align: center;
	font-weight: 400;
}
.page h1 ~ p {
	font-size: 1.1rem;
	text-align: center;
	font-weight: 700;
	font-style: italic;
	font-family: Lato;
	margin-top: 2rem;
	margin-bottom: 2rem;
	text-shadow: -0.01em 0.1em 0.08em rgba(0,0,0,0.12);
}
.page h1 ~ p:nth-of-type(1) {
	margin-bottom: 5rem;
}
.page h1 + p.big {
	font-size: 1.5rem;
}
.page h1 + p { 
	white-space: nowrap; 
}
.page h2 {
	white-space: nowrap;
	font-size: 2rem;
	line-height: 1.33;
	border-bottom: 1px solid #999;
	margin: 3rem 0 2rem;
	padding-top: 2rem;
}
/* Firefox do not wrap <wbr> inside white-space nowrap */
_:-moz-tree-row(hover), .page h2 {  white-space: normal; }
_:-moz-tree-row(hover), .page h1 + p {  white-space: normal; }

.page h2.long {
	font-size: 1.75rem;
}
h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
h2,
h3,
h4 {
	font-weight: 400;
}
h1,
h2,
h3 {
	font-style: italic;
}
dd {
	line-height: 1.25;
	margin-top: 0.25rem;
}
a {
	color: #1076c1;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
.btn,
nav section div.links > a {
	/* color: #dedad9; */
	color: hsla(17, 6%, 21%, 0.8);
	background: linear-gradient(#EEEFEE,#E7E8E9);
	padding: 0.5em 1.25em;
	border-radius: 0.5rem;
	/* border-top-left-radius: 0; */
	box-shadow: 0 0.5em 0.5em -0.5em rgba(0,0,0,0.2), inset 0 0 .4em #EFF0EF;
	border: 1px solid #E6E7E6;
}
.btn:hover,
nav section div.links > a:hover {
	/* color: #352e2c; */
	color: hsla(17, 6%, 21%, .9);
	background: #f5f5f5;
	/* box-shadow: 0 0 0.6em rgba(0,0,0,0.05), 0 0 1.5em rgba(255,255,255,0.7), 0 0 2em rgba(255,255,255,0.5); */
	transition: none;
}
a.btn:hover {
	text-decoration: none;
}
nav {
	margin: auto;
	font-size: 1.125rem;
	display: flex;
	flex-direction: column;
}
nav hr {
	align-self: stretch !important;
	width: 100%;
	border: none;
	height: 6px;
}
nav section {
	margin: 0;
	padding: 1rem;
	/* display: flex;
	flex-direction: column;
	align-items: flex-start; */
}

nav section h2 {
	text-align: center;
	border: none;
	margin: 0 0 1.25rem;
	line-height: 0.8;
	position: relative;
}
nav section h2::after {
	transform: skew(-7deg);
	display: inline-block;
	position: absolute;
	font-size: 1.5em;
	right: -0.5em;
	border-left: 1.5px solid #777;
	height: 100%;
	box-shadow: -0.02em 0.035em 0.06em rgba(0,0,0,0.15);
}
nav section h2 small {
	font-size: 1rem;
}
nav section div.links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0.25em 0;
	padding-left: 1em;
}
nav section div.links > a {
	margin: 0.5rem;
	text-decoration: none;
	line-height: 1;
	font-family: Lato;
	font-style: italic;
	font-weight:  bold;
}
nav section div.links > a[disabled] {
	pointer-events: none;
	color: #b5beb3;
	opacity: 0.4;
}
body > footer {
	text-align: center;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding-bottom: 0.5em;
}
body > footer > small::after {
	content: '© 2020 EDL inc.';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	color: #444;
	letter-spacing: 1px;
	text-shadow: -0.021em 0.07em 0.16em rgba(0,0,0,0.15);
	box-shadow: 0 -0.25em 1.3em -0.35em rgba(0,0,0,0.12);
	font-style: italic;
	border-top: 1px solid #f7f7f7;
	padding: 0.5em 2em;
	border-radius: 0.375rem;
	background: linear-gradient(to bottom, rgba(255,255,255,0.12) 3%, rgba(255,255,255,0));
}
body > footer > small {
	display: inline-block;
	width: 15rem;
	height: 2rem;
	color: transparent;
	position: relative;
}
span.maj {
	display: inline-block;
	position: relative;
	margin-left: 1rem;
	vertical-align: baseline;
	color: #3a942e;
	font-weight: 400;
	font-size: 0.8125rem;
	background: rgba(58,148,46,0.12);
	padding: 0.125rem 1rem;
	border-radius: 1rem;
	text-shadow: none;
}
a[href$=".pdf"],
a[href$=".ppt"],
a[href$=".mp4"],
a[data-type] {
	position: relative;
}
a[href$=".pdf"]::after,
a[href$=".ppt"]::after,
a[href$=".mp4"]::after,
a[data-type]::after {
	text-transform: uppercase;
	display: inline-block;
	position: relative;
	top: -6px;
	margin: 0 0.5rem;
	padding: 2px 6px;
	box-shadow: 0 0 1px #fff inset, 0 2px 6px -3px rgba(0,0,0,0.33);
	border-radius: 5px;
	background: rgba(255,255,255,0.5);
	font-size: 10px;
	line-height: 1;
	color: #666;
	font-weight: 600;
}
a[href$=".pdf"].btn::after,
a[href$=".ppt"].btn::after,
a[href$=".mp4"].btn::after,
a[data-type].btn::after {
	background: rgba(255,255,255,0.85) !important;
	color: #111;
	text-shadow: none;
}
a[href$=".pdf"]::after {
	content: "pdf";
}
a[href$=".ppt"]::after {
	content: "ppt";
}
a[href$=".mp4"]::after,
a[data-type="mp4"]::after {
	content: "	▶ mp4";
}
sup > strong {
	font-weight: bold;
	font-style: italic;
}
dd {
	margin-bottom: 1rem;
}
.links-row a:not(:last-child) {
	margin-right: 1rem;
}
a.img {
	display: inline-block;
	margin: 1.5rem;
}
a.img img {
	margin: 0;
	display: block;
}
button {
	background: #ccc;
	border: none;
	margin: 2px;
	padding: 0;
}
button:focus {
	outline-color: #fff;
}
@media screen and (max-width: 700px) {
	body {
		padding: 0 0 7rem;
	}
	nav {
		font-size: 1.25rem;
	}
	nav section {
		padding: 0 1em 0;
	}
	nav hr { opacity:0; }
	/* nav hr:nth-of-type(2) {
		order: 1;
	}
	nav section:nth-of-type(2) {
		order: 2;
	} */

	nav section div.links {
		padding-left: 0;
	}
	nav section div.links > a {
		margin: 0.75rem !important;
		display: block;
		width: 100%;
		max-width: 23rem;
	}
}

@media screen and (max-width: 600px) {
	body > header {
		height: 5.8rem;
	}
	body > h1 {
		font-size: 2.5rem;
		margin-top: 1.5rem;
		margin-bottom: 3rem;
	}
	body#boutique .page {
		max-width: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.page h1 {
		font-size: 2rem;
	}
	.page h2 {
		font-size: 1.5rem;
	}
	#boutique #modal {
		align-items: flex-start;
	}
	#boutique #modal #modal_wrapper {
		overflow-y: auto;
		max-height: 100%;
		padding: 0;
	}
	#boutique #modal #modal_wrapper > header h2 {
		font-size: 2.5rem;
	}
	#boutique #modal #modal_wrapper > * {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	#boutique #modal #modal_wrapper p {
		font-size: 1rem;
	}
	#boutique #modal #modal_wrapper a {
		color: #fff !important;
	}
}
abbr[title] {
	text-decoration: none;
	border-bottom: dotted 1px #000;
}
#fractions {
	text-align: center;
}
#fractions h1 {
	margin: 0 0 4rem;
}
body#boutique .page {
	max-width: 80rem !important;
}
.page {
	max-width: 56rem !important;
	padding: 0 1rem;
}
.page .note {
	border: 1px solid #333;
	padding: 1rem;
	margin: 3rem auto 3rem;
	max-width: 50rem;
}
.page dt {
	font-weight: 600;
}
.page h3 {
	font-weight: 400;
}
.page select {
	padding: 1rem;
	font-size: 1.5rem;
	line-height: 2;
}
.text-center {
	text-align: center;
}
.hide {
	display: none !important;
}
a.btn-white {
	background: rgba(255,255,255,0.75);
	padding: 0.5rem 2rem;
	margin: 0.25rem;
	border-radius: 2rem;
	width: 14rem;
	border: 2px solid #fff;
	white-space: nowrap;
}
.spacer {
	margin-top: 4rem;
}
li > h2 {
	padding-top: 0 !important;
	font-size: 1.5rem !important;
}
.iblk {
	display: inline-block;
	white-space: nowrap;
	line-height: 1.33;
}
