/* main CSS for la brico des mots */

* {
	margin:0;
    padding:0;
	box-sizing: border-box;
}

body {
	height: 100vh;
	font-family: 'FreeMono', 'Courier';
	line-height: 1.1rem;
	background-color: #fff;
	background-image:
		linear-gradient(90deg, transparent 69px, #abced4 69px, #abced4 70px, transparent 70px),
		linear-gradient(#eee .1em, transparent .1em); 
	background-size: 100% 1.2em;
}

/* options de textes */

@font-face {
  font-family: Exmouth;
  src: url("./font/exmouth_.ttf");
}

@font-face {
  font-family: FreeMono;
  src: url("./font/FreeMono.ttf");
}

@font-face {
  font-family: FreeMonoBold;
  src: url("./font/FreeMonoBold.ttf");
}

h1, h2 {
    font-family: 'Exmouth', sans-serif;
	line-height: 1;
	text-align: center;
  	font-weight: normal;
}

h1 {
	font-size: 4.5rem;
	margin-bottom: 1%;
}

h2 {
	font-size: 3rem;
	margin: 8% 0% 2% 0%;
	padding: 2% 5%;
	/*border:  3px solid #C9211E;*/
}

h3 {
	text-align: center;
	font-size: 1.5rem;
}

p {
	padding: 1%;
}

ul {
	padding-left: 5%;
	padding-bottom: 0.25rem;
}

li {
	padding: 1.5px;
}

a:link {
    color : black ;
}

a:visited {
    color : black ;
}

a:hover {
	color: white;
	background-color: #BB1F2D;
}

.sous-titre {
	font-family: 'FreeMono';
	font-size: 1.17rem;
	line-height: 0.5;
	background-color: #BB1F2D;
}

.sous-titre a {
	color: white;
	text-decoration: none;
}

.red {
	background-color: #BB1F2D;
	color: white;
}

.yellow {
	background-color: #f6c42e;
	color: black;
}

#communication, #projets {
	float: right;
	padding: .3rem 1rem .25rem 1rem;
	/* margin: 2px 2.5px; */
	width: 50%;
	max-width: max-content;
	font-size: 1.2rem;
}

.menu {
	position: sticky;
	top: 50px;
	writing-mode: vertical-rl;
	font-size: 1.14rem;
	line-height: 1.6;
	text-transform: uppercase;
	margin-top: 10%;
	margin-right: 10%;
	color: black;
	float: right;
	border-top: 2px solid black;
	padding-top: 5px;
}

.menu a {
	text-decoration: underline;
	color: black;
	padding: 2px;
	margin-bottom: 1rem;
	display: block;
	width: 0.5em;
}

.menu a:hover {
	color: black;
	background-color: transparent;
}


/* CSS grid */

.grid-wrapper {
	display: grid;
	grid-template-rows: min-content auto min-content;
	grid-template-columns: 4fr 1fr;
}

header {
	grid-column: 1/3;
	grid-row: 1/2;
	padding: 2%;
	display: block;
	background-color: black;
	color: #f6c42e;
}

nav {
    /*float: left;
	max-width: 25%; */
	grid-column: 2/3;
	grid-row: 2/3;
	background: 
	/* linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),	 */
	/* radial-gradient(#eee 15px, transparent 7px) repeat-y; */
	/* background-size: 300px 300px; */
}

article {
	grid-column: 1/2;
	grid-row: 2/3;
	margin: 0% 0% 0% 12%;
	min-width: 75%;
	/*border: 2px dashed purple;*/
}

footer{
	grid-column: 1/3;
	grid-row: 3/4;
    margin-top: 5em;
    text-align: center;
	padding: 25px;
	line-height: 1.2em;
	font-size: 0.8rem;
	background-color: black;
	color: #f6c42e;
}


/* test de cimaises */
.vl, .v2 {
  border-left: 2px solid black;
  height: 6%;
  position: absolute;
  left: 30%;
  margin-left: -3px;
  top: 0;
}

.hanger {
	/* margin: 3% 10px 3% 85px; */

}

/*.hanger:before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: -100%;
  width: 101%;
  border: .5px solid #000;
  transform: rotate(90deg);
  transform-origin: right;
}*/


/* éléments graphiques */

.icon {
	vertical-align: top;
	height: 42px;
	width: auto;
	padding-right: 1%;
}

.encres {
	vertical-align: top;
	height: 100px;
	width: auto;
	padding: 0% 1%;
}

#tache_gauche {
	float: left;
}

#tache_droite, #ampoule {
	float: right;
}

.boite {
	flex: 1;	
	padding: 0rem 2rem 2rem 2rem;
	margin: 10px 1px 15px 1px;
	border: 1.65px solid black;
	/*box-shadow: 10px 10px 0 #FFAE00;*/
	background-color: white;
	min-width: 250px;	
}

.etiquettes {
	margin: 2rem 0 1rem -0.5rem;
	padding: .3rem 1rem .25rem 1rem;
	width: 50%;
	max-width: max-content;
	font-family: FreeMono;
	color: white;
	line-height: 1.2;
	font-size: 1.2rem;
	background-color: black;
	transform: rotate(-3deg);
	transform-origin: top left;
}

/* photos */
.photo {
	vertical-align: top;
	height: 400px;
	width: auto;
	float: right;
	margin-right: 10px;
	margin-left: 10px;
	/* border: solid black 2px; */
}

.portrait {
	float: left;
	height: 250px;
}



/* Version mobile */
@media screen and (max-width:700px){
	
	body {
		background-image:

		linear-gradient(#eee .1em, transparent .1em);
	}
	
	h1, h2 {
		font-size: 2.5rem;
	}
	
	h3 {
		font-size: 1rem;
	}
	
	.sous-titre, #tache_droite, #ampoule, #tache_gauche, .holes {
		display: none;
	}
	.grid-wrapper {
		display:block;
	}
	
	nav ul {
		padding-left: 10%;
	}
	
	article {
		margin: 5%;
	}
	
	.menu {
		display: none;
	}
	
	.etiquettes {
		width: 100%;
	}
	
	.photo {
		width: 60%;
		margin: 5% 20%;
		height: auto;
	}
}
