/***********
START RESET
***********/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
/***********
END RESET
***********/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,600;1,600&display=swap');

/*:root{
	font-size: calc(100% + 1vw);
}*/

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
  }

 ul, li {
	list-style: none;
	padding: 0;
	margin: 0;
}

:root {
  --accent-color: #ff4e5a;
  --bg-color: #1a1717;
  /*--bg-color: #201e1e;*/ /* Eclairci */
  /*--bg-color: #1f1d1d;*/
  /*--bg-color: #1e1c1c;*/
  /*--bg-color: #1c1919;*/
  --contrast-color: #f2e9e9;
  --font-size: 18px;
  --line-height: 1.5;
}




/*@media (prefers-color-scheme: light) {
	:root {
	  --bg-color: #f2e9e9;
	  --contrast-color: #1a1717;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
	  --bg-color: #1a1717;
	  --contrast-color: #f2e9e9;
	}
}*/


body {
  background-color: var(--bg-color);
  color: var(--contrast-color);
  overflow-x: hidden;
}

h2,h3,h4,h5,h6{
	font-size: var(--font-size);
}

body, label, input, textarea, button{
	font-weight: bold;
	font-family: "IBM Plex Sans", -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	font-size: var(--font-size);
  line-height: var(--line-height);
  border-radius: none;
  box-shadow: none;
	border-radius: none;
	-webkit-border-radius: none;
	-webkit-appearance: none;
} 

input:focus, textarea:focus{
	box-shadow: none;
	outline-color: none;
	outline-style: none;
	outline-width: unset;
}


a, a:visited{
	color: var(--contrast-color);
	text-decoration-color: var(--accent-color);
}



a:hover, a:active{
	color: var(--accent-color);
}


p, ul{
	margin-bottom: 16px;
}

p:last-child, ul:last-child{
	margin: 0;
}


.flex{
	display: flex;
}

.hide-svg{
	position: absolute;
	height: 0;
	width: 0;
}

.mg-btm-s{
	margin-bottom: 8px;
}

.mg-btm-m{
	margin-bottom: 16px;
}

.mg-btm-l{
	margin-bottom: 32px;
}

.mg-btm-xl{
	margin-bottom: 64px;
}


/* DEFINITION PADDING INTERNE */
article h3, .date-container, .content, #contact h4{
	padding: 16px;
	position: relative;
}

header{
	box-sizing: border-box;
	z-index: 10000;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	position: fixed;
	width: 100%;
	padding: 0 8px;
	background-color: var(--bg-color);
	line-height: 1;

}


nav ul li{
	display: inline-block;
}

header h2, nav a{
	padding: 16px 8px;
	margin: 0;
	display: block;
	position: relative;
	text-decoration: none;
}



#contact-btn{
	cursor: pointer;
}

header h2:after, nav a:hover:after{
	content: '';
	position: absolute;
	bottom: 0;
	left: 8px;
	width: calc(100% - 16px);
	height: 6px ;
	background-color: var(--accent-color);
	z-index: -10;
}


/*nav a:hover .icon{
	fill: var(--accent-color);
}*/

/*.icon{
	width: calc(var(--font-size) - 4px);
	height: calc(var(--font-size) - 4px);
	fill: var(--contrast-color);
}*/





#intro{
	position: relative;
	min-width: 100vw;
	/*min-height: calc(100vh - (var(--font-size) * var(--line-height) + 32px));*/
	min-height: 100vh;
	justify-content: center;
	/*align-content: center;*/
	align-items: center;
}

#intro h1{
	/*margin-top: calc(var(--font-size) + 35px);*/
	margin-top: calc(var(--font-size) + 32px);
	position: sticky;
	position: -webkit-sticky;
	top: 30%;
	/*align-self: center;*/
	/*top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);*/
	/*font-size: 32px;*/
	font-size:calc(100% + 2vw);
	/*font-size:calc(100% + 2vw);*/
	/*padding: 32px;*/
	padding: 16px;
	/*margin: 32px;*/
	background-color: var(--bg-color);
	/*max-width: 600px;*/
	width: 80vw;
}



#intro-background,.intro-background, #intro-background-static{
	z-index: -10;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*font-size: 7.8vh;*/
	opacity: 0.5;
}

#intro-background-static{
  background-image: radial-gradient(var(--accent-color) 3%, transparent 3%),
    radial-gradient(var(--accent-color) 3%, transparent 3%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-repeat: repeat;
}

section, footer{
	margin: 16px;
	padding: 64px 0;
	position: relative;
	border-top: solid 1px var(--accent-color);
	border-bottom: solid 1px var(--accent-color);
}

/*#list .content, #list .content, #contact .content{*/
section .content{
	border-top: none;
}

footer{
	padding-bottom: 24px;
	border-bottom: none;
}


section#intro{
	margin: 0;
	padding: 0;
	border: none;
}

/*article .title, .content{*/
.title, .content, article h3, .date-container{
	flex-direction: column;
	border: 1px solid var(--accent-color);
}

section .content{
	border-top: none;
}


#about{
	flex-direction: column;
	margin-top: 64px;
	position: relative;
}

#about:before{
	content: '';
	position: absolute;
	top: -24px;
	height: 1px;
	width: 100%;
	background-color: var(--accent-color);
}

.title{
	z-index: 100;
	/*top: calc(var(--font-size) + 35px);*/
	top: calc(var(--font-size) + 32px);
	/*background-color: var(--bg-color);	*/
}

.profil-picture{
	position: relative;
	border: solid 1px var(--accent-color);
	/*overflow: hidden;*/
	/*object-fit: cover;*/
	/*margin-bottom: 32px;*/
	/*image-rendering: crisp-edges;*/
	/*image-rendering: pixelated;*/
	/*background: no-repeat center/cover url("../img/portrait_02.gif");*/
}


.square:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.img-range-container{
	overflow: hidden;
	position: relative;
	width: 100%;
	height: calc(100vw - 34px);

}

.profil-picture img{
	position: absolute;
	top: 50%;
  transform: translateY(-50%);
	/*display: none;*/
	opacity: 0;
	/*width: calc(100% - 2px);*/
	width: 100%;
	/*min-width: 100%;*/
	/*min-height: 100%;*/
}

.profil-picture img.active{
	/*display: block;*/
	opacity: 1;
}
.profil-picture form{
	position: absolute;
	bottom: -1px;
	left: -1px;
	width: calc(100% + 2px);
	border:  1px solid var(--accent-color);
}

.profil-picture fieldset{
	padding: 16px;
	color: var(--accent-color);
	flex-flow: row nowrap;
	width: 100%;

	/*background-color: var(--bg-color);*/
	/*border-bottom: 1px solid var(--accent-color);*/
	/*border-top: 1px solid var(--accent-color);*/
	
}

.profil-picture label{
	margin: 0;
}

.profil-picture input[type='range']{
	margin: 0 0 0 16px;
	width: inherit;
	/*flex-grow: 2;*/
	-webkit-appearance: none;
	background: transparent;

}




input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  /*border: 1px solid #000000;*/
  /*margin: 8px;*/
  height: 16px;
  width: 16px;
  /*border-radius: 50%;*/
  border-radius: 0;
  background: var(--accent-color);
  cursor: pointer;
  margin-top: -8px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

input[type=range]::-webkit-slider-thumb::before {
	content: '';
	width: 32px;
	height: 32px;
	background-color: green;
	opacity: 0.5;
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  /*border-radius: 50%;*/
  border-radius: 0;
  background: var(--accent-color);
  cursor: pointer;
  border:  unset;
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
  height: 16px;
  width: 16px;
  /*border-radius: 50%;*/
  border-radius: 0;
  background: var(--accent-color);
  cursor: pointer;
}


input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  background: var(--accent-color);
  /*border-radius: 1.3px;*/
  /*border: 0.2px solid #010101;*/
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: var(--accent-color);
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
  background: var(--accent-color);
  /*border-radius: 1.3px;*/
  /*border: 0.2px solid #010101;*/
}

input[type=range]::-ms-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  /*border-width: 16px 0;*/
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: var(--accent-color);
  /*border: 0.2px solid #010101;*/
  /*border-radius: 2.6px;*/
  /*box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;*/
}/*
input[type=range]:focus::-ms-fill-lower {
  background: #3071a9;
}
input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}
*/








#list article{
	flex-direction: column;
	padding: 32px 0;
	border-bottom: 1px solid var(--accent-color);
}


#list article:first-child{
	padding-top: 0;
}
#list article:last-child{
	/*margin: 0;*/
	border: none;
}

/*****************
DEFINITION STICKY
*****************/

article h3, .date-container, .date-container:before, .contact-header{
	/*top: calc(var(--font-size) + 35px);*/
	top: calc(var(--font-size) + 32px);
	position: sticky;
	background-color: var(--bg-color);
}

/********************
FIN DEFINITION STICKY
********************/

article h3{
	z-index: 1000;
	/*position: sticky;*/
	/*top: calc(var(--font-size) + 35px);*/
}

.date-container{
	z-index: 100;
	margin: 16px 0 0 0;
	flex-direction: row;
}
.date-container:before{
	content: '';
	position: absolute;
	top: -17px;
	left: -1px;
	width: calc(100% + 2px);
	height: 16px;
	border-left: 1px solid var(--accent-color);
	border-right: 1px solid var(--accent-color);
}

article h3 .society, .content ul{
	padding-left: 32px;
	position: relative;
}

 .content li{
	position: relative;
}

article h3 .society:before, .zlorg{
	content: '— ';
	display: block;
	position: absolute;
	height: 1px; width: 1px; 
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
}




/*

-------------------
BACKUP Before trait
-------------------
*/
article h3 .society:after, .content li:before, .title h3:after{
	content: '';
	display: block;
	position: absolute;
	left: 0;
}

article h3 .society:after, .content li:before{
	top:  calc((var(--font-size)*var(--line-height))/2);
	width: 24px;
	height: 1px;
	background-color: var(--accent-color);
}


.content li:before{
	left: -32px;
}



.arrow, .legal-separator{
	position: relative;
	flex-grow: 2;
	align-self: center;
	margin:  0 16px;
	height: 1px;
	background-color: var(--accent-color);
}

.arrow:after{
	content: "";
  box-sizing: border-box;
	position: absolute;
	right: 2px;
	top: -6px;
	width: 13px;
	height: 13px;
	border-right: 1px solid var(--accent-color);
	border-top: 1px solid var(--accent-color);
	transform: rotate(45deg);

}


/*footer{*/
#contact{
	border-bottom: none;
	flex-direction: column;
	/*height: 1200px;*/
}

.contact-header{
	border: 1px solid var(--accent-color);
	z-index:  100;
	justify-content: space-between;
}

.contact-header ul{
	padding: 8px;
	align-items: center;
}

.contact-header li{
	/*display: inline-block;*/
	/*padding: 8px;*/
}

.contact-header li a{
	display: block;
	padding: 8px;
	line-height: 0;
}

.contact-header .icon{
	width: 20px;
	height: 20px;
	fill: var(--contrast-color);
}

.contact-header li a:hover .icon{
	fill: var(--accent-color);
}

#contact form{
	flex-direction: column;
}

#contact-form fieldset{
	width: 100%;
	flex-direction: column;
	-webkit-appearance: none;
}

#contact-form input, textarea, button{
	padding: 16px;
	background: none;
	border: 1px solid var(--accent-color);
	color: var(--contrast-color);
	margin-bottom: 16px;
}

label{
	margin-bottom: 8px;
}

/*abbr[title~=required]{*/
abbr[title]{
	position: relative;
	margin-left: 4px;
	color: var(--accent-color);
	/*cursor: pointer;*/
	text-transform: unset;
	/*text-decoration: underline dotted;*/
	text-decoration:underline;
	text-decoration-style: dotted;
	/*border-bottom: dotted 2px var(--accent-color);*/
}


abbr:before{
	content: '';
	position: absolute;
	/*top: -6px;*/
	left: -11px;
	width: 32px;
	height: 32px;
	/*background-color: red;
	opacity: 0.5;*/
}



abbr[title]:hover::after,
abbr[title]:focus::after {
  content: attr(title);
  position: absolute;
  /*width: max-content;*/
  width: -moz-max-content;
  width: -webkit-max-content;
  width: -o-max-content;
  padding-left: 4px;
  text-decoration: none;

}

textarea{
	min-height: 50vh;
}

/*.zlorg{
	display: none;
}*/

button{
	border-radius: none !important;
	background-color: var(--accent-color);
	color: var(--bg-color);
	flex-direction: row;
}

button span{
	display: block;
}



button .arrow{
	margin-right: 0;
	background-color: var(--bg-color);
}

button .arrow:after{
	border-color: var(--bg-color);
}

button:hover{
	cursor: pointer;
	background: none;
	color: var(--accent-color);
}

button:hover .arrow{
	background-color: var(--accent-color);
}

button:hover .arrow:after{
	border-color: var(--accent-color);
}

.error{
	color: var(--contrast-color);
}

footer{
	flex-flow: row nowrap;
}


/*@media screen and (max-width: 323px){
	:root {
	  --font-size: 16px;
	}
}*/



@media screen and (min-width: 640px) {

	:root {
	  /*--font-size: 20px;*/
	}

	header{
		padding: 0 24px;
	}

	section, footer{
		margin: 16px 32px;
	}


	section#intro{
		margin: 0;
	}

	#about{
		flex-direction: row-reverse;
		align-items: flex-start;
	}
	#about .content{
		border-top: solid 1px var(--accent-color);
	}
	.profil-picture{
		top: calc(var(--font-size) + 32px);
		width: 35%;
		/*height: ;*/
		/*margin-bottom: 0;*/
		/*margin-bottom: calc(var(--font-size) * var(--line-height) + 33px);*/
		/*margin-left: 32px;*/
		margin-left: 8px;
	}

	.img-range-container{
		/*height: calc(50vw - 160px);*/
		/*height: calc(35vw - 80px);*/
		height: calc(35vw - 54px);
	}

	.profil-picture fieldset{
		bottom: unset;
		/*left: -1px;*/
		/*width: calc(100% + 2px);*/
		/*border:  1px solid var(--accent-color);*/
	}

	#about .content{
		width: 65%;
		margin-right: 8px;
	}

	.profil-picture, .title{
		position: sticky;
	}

	#list article{
		flex-flow: row wrap;
		justify-content: space-between;

	}



	#list h3, .date-container{
		width: calc(50% - 8px);
	}
	#list h3{
		/*margin-right: 8px;*/
	}

	.date-container{
		/*top: calc(var(--font-size) + 35px);*/
		top: calc(var(--font-size) + 32px);
		position: sticky;
		margin: 0;
		align-items: center;
	}

	.date-container:before{
		width: 16px;
		height: calc(100% + 2px);
		left: -17px;
		top: -1px;
		border-bottom: solid 1px var(--accent-color);
		border-top: solid 1px var(--accent-color);
		border-left: none;
		border-right: none;
	}


	.title h3:after{
		width: 16px;
		height: calc(100% - 16px);
		border: 1px solid var(--accent-color);
		border-top: none;
		border-bottom: none;
		top: 8px;
		bottom: unset;
		right: -8px;
	}

	textarea{
		min-height: 40vh;
	}

	footer ul{
		flex-flow: row nowrap;
		justify-content: space-between;
	}


}

@media screen and (min-width: 640px) and (max-width: 1024px){
	.profil-picture{
		margin-bottom: calc(var(--font-size) * var(--line-height) * 2 + 32px);
	}
	.profil-picture form{
		bottom: -84px;
		/*bottom: calc();*/
	}
	.profil-picture fieldset{
		flex-direction: column;
	}
	.profil-picture input[type="range"]{
		margin: 0;	
	}


}

@media screen and (min-width: 1024px) {

	:root {
	  --font-size: 20px;
	}

	header{
		padding: 0 56px;
	}

	section, footer{
		margin: 16px 64px;
	}

	/*.profil-picture{
		width: 35%;
	}

	#about .content{
		width: 65%;
	}*/

	.img-range-container{
		/*height: calc(35vw - 54px);*/
	}

	.profil-picture fieldset{
		bottom: 0;
		background-color: unset;
	}

	.contact-header .icon{
		width: 22px;
		height: 22px;
	}

	#contact form{
		flex-flow: row wrap;
		justify-content: space-between;
	}

	#contact-form fieldset{
		width: 100%;
		flex-direction: column;
	}

	#contact-form fieldset.half-fieldset{
		width: calc(50% - 8px);
	}

	textarea{
		min-height: 30vh;
	}

	#contact-form button{
		width: 100%;
	}

}

@media screen and (min-width: 1200px) {

	:root {
	  --font-size: 22px;
	}

	.contact-header .icon{
		width: 24px;
		height: 24px;
	}

}