/*
Theme Name: ida M.
Author: Gaël Gouault 
Author URI: https://gaelgouault.com
Description: …
Version: 1.0
*/

/*
 * 1.0 - Header
 * 2.0 - Content
 *   2.1 - title
 *   2.2 - texte
 * 3.0 - Contact
 * 4.0 - Footer
 * 5.0 - Media Queries
 */



html {
	font-family: 'helvetica', sans-serif;
	font-size: 62.5%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	margin: 0;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5rem;
}

sub {
	bottom: -0.25rem;
}

body,
button,
input,
select,
textarea {
	font-family: 'helvetica', sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.3;
	color: #111;
}

*,
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-ms-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
	font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: normal;
}

strong,
b {
	font-weight: bold;
}

a {
	color: #000;
	text-decoration: none;
	transition: color .25s;
}

a:hover,
a:focus,
a:active {
	color: #000;
}

hr {
	width: calc(100% - 6em);
	height: 1px;
	border: none;
	margin: 2.5em auto -0.25em auto;
	background: #000;
}


/*
 * 1.0 - Header
 */

#header {
	width: 100%;
	height: auto;
	padding: 3em 3em 0 3em;
	background: url(images/idaM-logo.svg) 3em 3em no-repeat;
	background-size: auto 8em;
}

#header h1 {
	font-size: 8em;
	margin: 0;
	opacity: 0;
}


/*
 * 2.0 - Content
 */

#primary {
	width: 100%;
	height: auto;
	min-height: calc(100vh - 20em);
}

.section {
	width: 100%;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	border-top: 2px solid #000;
	padding: 3em 0;
	background: #fff;
	transition: background .25s;
}

.year {
	position: relative;
	top: -4.75em;
	width: 100%;
	height: auto;
	display: none;
}

.info {
	width: 100%;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	padding: 3em 0 0 0;
	/*padding: 0;
	transition: padding .25s;*/
}

/*.year:after {
	position: absolute;
	content: '';
	top: 0;
	width: calc(100% - 6em);
	height: 1px;
	margin: 0 3em;
	background: #000;
}*/

/*.current .info:before {
	content: none;
}*/

/*.section.open .info {
	padding: 3em 0;
}*/

.year.old,
.year.old-old {
	display: none;
}

.year:nth-child(11) {
	margin-bottom: -5em;
}

.genius.open {
	background: #cafdc3;
}

.references.open {
	background: #d7d7d7;
}

.more {
	display: none;
	margin: -1em 0 1em 0;
	padding-left: 30em; 
}

.more h5 {
	font-size: 2.75em;
	margin: 0;
	cursor: pointer;
}


/*
 * 2.1 - Title
 */

.entry-header,
.entry-year {
	/*width: 20%;*/
	width: 30em;
	margin: -1.5em 0;
	padding: 0 3em;
}

.year.current {
	pointer-events: none;
}

.entry-header h2 {
	font-size: 3.75em;
	display: table;
	margin: 0;
}

.section .entry-header h2 {
	cursor: zoom-in;
}

.open .entry-header h2 {
	cursor: zoom-out;
}

.entry-header p {
	font-size: 1.4em;
}

.entry-year {
	display: flex;
	align-items: center;
	justify-content: center;
}

.entry-year h4 {
	/*display: none;*/
	font-size: 2.25em;
}


/*
 * 2.2 - Texte
 */

.entry-content {
	display: flex;
	flex-flow: wrap;
	/*width: 40%;*/
	width: calc(100% - 30em);
}

.entry-content .column {
	display: none;
	width: 50%;
	padding-right: 3em;
}

.year .entry-content .column {
	display: block;
}

.entry-content h3 {
	font-size: 2.25em;
	margin: 0;
}

.entry-content p {
	font-size: 1.4em;
}

.entry-content p a:hover {
	text-decoration: underline;
}


/*
 * 3.0 - Contact
 */

.contact {
	width: 100%;
	height: auto;
	border-top: 2px solid #000;
	padding: 3em 0;
}


/*
 * 4.0 - Footer
 */

#footer {
	padding: 1.5em 3em;
}

#footer p {
	font-size: 1.125em;
}


/**
 * 5.0 - Media Queries
 */

@-ms-viewport {
	width: device-width;
}

@viewport {
	width: device-width;
}


@media screen and (min-width: 1600px) {
	html {
		font-size: 75%;
	}
}

@media screen and (max-width: 900px) {
	.entry-content .column {
		/*display: block;*/
		width: 100%;
	}
}

@media screen and (max-width: 640px) {
	html {
		font-size: 87.5%;
	}
	#header {
		background-position: 1.5em 3em;
	}
	.year {
		top: 0;
	}
	.year:nth-child(8) {
		margin-bottom: 0;
	}
	.entry-header,
	.entry-content {
		width: 100%;
		padding: 0 1.5em;
	}
	.entry-year {
		width: 100%;
		/*align-items: flex-start;*/
		justify-content: flex-start;
		padding: 0 1.5em;
	}
	.entry-year h4 {
		margin-top: 1.75rem;
		margin-bottom: 0;
	}
	.entry-content .column:first-child {
		margin-top: 4em;
	}
	.entry-content .column {
		padding-right: 0;
	}
	.more {
		margin: 2em 0 0 0;
		padding-left: 1.5em; 
	}
	hr {
		width: calc(100% - 3em);
		margin: 2.5em auto 0.75em auto;
	}
	#footer {
		padding: 1.5em;
	}
}

