body {
	background-color: #383531;
	margin: 0;
}

main {
	font-family: 'Open Sans', sans-serif;
	max-width: 740px;
	height: 100%;
	margin: auto;
  	position: relative;
  	overflow: hidden;
}

article {
	display: flex;
  	align-items: center;
	height: 100%;
    width: 100%;
}

.grey { border-color:#383531 ; background-color: #383531; }
.grey2 { border-color:#404040 ; background-color: #404040; }
.purple { border-color:#80397B ; background-color: #80397B; }
.blue { border-color:#00618A ; background-color: #00618A; }
.blue2 { border-color:#6082BB ; background-color: #6082BB; }
.yellow { border-color:#CCA129 ; background-color: #CCA129; }
.green { border-color:#377C05 ; background-color: #377C05; }
.orange { border-color:#B36316 ; background-color: #B36316; }
/*.orange { border-color:#F5961E ; background-color: #F5961E; }*/
.red { border-color:#A52016 ; background-color: #A52016; }
/*.red { border-color:#DC3C00 ; background-color: #DC3C00; }*/

/*
.border-grey { border-color:#383531 ; }
.border-grey2 { border-color:#404040 ; }
.border-purple { border-color:#80397B ; }
.border-blue { border-color:#00618A ; }
.border-blue2 { border-color:#6082BB ; }
.border-yellow { border-color:#CCA129 ; }
.border-green { border-color:#377C05 ; }
.border-orange { border-color:#B36316 ; }
.border-red { border-color:#A52016 ; }*/

.center { text-align: center; }
.bold { font-weight: bold; }
.hide { display: none; }


ul.list-no-style { list-style-type: none; padding: 0; }
ul.list-no-style li { text-decoration: none; }

 .mg-l-5 { margin-left: 5px; }

.float-r { float: right; }

#CV {
	width: 100%;
	display: flex;
	flex-flow: row wrap;
    justify-content: center;
}

.tile {
	width: 240px;
	height: 240px;
	font-size: 14px;
	margin: 1px;
	padding: 2px;
	transform: scale(1);
	transition: transform 1.5s ease;
}

.tile.tile-xl {
	width: 486px;
}

.tile.invisible {
	transform: scale(0);
}

.tile:hover {
  animation: shake-tile 0.3s ease;
  transform: translate3d(0, 0, 0);
}

@keyframes shake-tile {
  33% { transform: translate3d(-0.5px, 0, 0); }
  66% { transform: translate3d(0.5px, 0, 0); }
}
	
#expand {
	transform: scale(0);
	background-color: grey;
	visibility: hidden;
  	transition: all 1s ease;
	position: absolute;
}

#expand.show {
	border: 1px solid;
    visibility: visible;
	width: calc(100% - 10px);
    top: 50%;
    margin: 0 4px;
    height: 552px;
    transform: scale(1) translateY(-50%);
}

#expand.show .expandable-hide {
	display: none;
}

.tile-content {
	height: 99%;
	border: 0px;
    margin: 0px;
    overflow: hidden;
	color: white;
    padding: 2px;
}

.tile-title {
	display: block;
}

.tile h1 {
	font-size: 27px;
	margin: 0px;
}
.tile h2 {
	font-size: 15px;
	margin: 0px;
}

.tile-text {
	opacity: 0.8;
    top: 0px;
}

ul.tag-words {
	margin: 5px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	line-height: 1.5rem;
}

ul.tag-words li.tag {
	display: block;
	margin: 2px;
	position: relative;
}

.tile-center {
	display: flex;
    align-items: center;
	height: 240px;
	position: absolute;
}

.expandable .expandable-show {
	display: none;
}

.expandable .expandable-show {
	display: none;
}

.smaller {
	font-size: 10px;
}

#me .tile-title {
	display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    height: 160px;
}

#age {
	font-size: 17px;
}

#post_BAC {
	font-size: 24px;
}

#post_BAC span {
	/*display: block;*/
}

#post_BAC_counter {
	font-size: 35px;
}

#post_BAC_counter::after {
	counter-reset: count 3;

	content: counter(count);
	animation: counter 2.5s linear;

	font-weight: 800;
	font-size: 35px;
}

@keyframes counter {
	0% {
		counter-increment: count -3;
	}
	33% {
		counter-increment: count -2;
	}
	66% {
		counter-increment: count -1;
	}
}

#studies ul {
	font-size: 14px;
}

#studies ul li {
	margin: 10px 0;
}

#intitule {
    font-size: 24px;
    text-align: center;
    margin-top: 26px;
}

#experience {
	font-size: 34px;
	font-weight: 800;
	margin-top: 20px;
	text-align: center;
}

#languages .tag {
	padding: 0 6px;	
	font-weight: bold;
}

#languages .tag-1 { font-size: 10px; }
#languages .tag-2 { font-size: 13px; }
#languages .tag-3 { font-size: 16px; }
#languages .tag-4 { font-size: 19px; }
#languages .tag-5 { font-size: 22px; }


#environments .tag {
	margin: 0;
	padding: 0 3px;	
	font-weight: bold;
}

#environments .tag-1 { font-size: 10px; }
#environments .tag-2 { font-size: 13px; }
#environments .tag-3 { font-size: 16px; }
#environments .tag-4 { font-size: 19px; }
#environments .tag-5 { font-size: 22px; }


#otherSkills_content div.expandable-hide ul li { margin: 4px 0px; }

#otherSkills_content div.expandable-hide ul li.line-1 { margin-left: 5%; }
#otherSkills_content div.expandable-hide ul li.line-2 { margin-left: 10%; }
#otherSkills_content div.expandable-hide ul li.line-3 { margin-left: 15%; }
#otherSkills_content div.expandable-hide ul li.line-4 { margin-left: 20%; }
#otherSkills_content div.expandable-hide ul li.line-5 { margin-left: 25%; }
#otherSkills_content div.expandable-hide ul li.line-6 { margin-left: 30%; }
#otherSkills_content div.expandable-hide ul li.line-7 { margin-left: 35%; }

#expand #otherSkills_content .tile-title h2 {
	/* margin: 5px 0px; */
}

#expand #otherSkills_content ul {
	margin: 0;
	padding-left: 20px;
}

#expand #otherSkills_content .tile-text > ul > li {
	font-weight: bold;
}

#spareTimeCanvas {
	background-color: #80397b;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

img {
	max-width: 100%;
	max-height: 100%;
}

a {
 	color: white;
    text-decoration: none;
    border-bottom: 1px dotted white;
}

#viewer {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    /* max-width: 700px; */
    max-width: 80%;
}

.modal-content { 
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

#viewer .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

#viewer .close:hover,
#viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#close_expand {
	margin-right: 10px;
}

.blink {
	animation: blinker 1s step-start infinite;
}

@keyframes blinker {
	50% {
		opacity: 0;
	}
}





.tabs {
	width: 100%;
	height: 100%;
    margin-top: 15px;
}

.tabs .tab {
    width: 48%;
    display: block;
    float: left;
	cursor: pointer;
    height: 50px;
    margin: 4px;
    text-align: center;
    border-radius: 8px;
    line-height: 50px;
}

.tabs .tab:first-child {
	width: 98%;
}

#expand_content .tabs {
	width: 100px;
	height: 100%;
	float: left;
    margin: 0px 15px 0px 0px;
	background-color: grey;
}

#expand_content .tabs .tab {
    width: 100px;
    display: block;
	cursor: pointer;
    height: 40px;
    margin: 5px 5px 5px 0px;
    text-align: center;
    border-radius: 8px 0px 0px 8px;
    line-height: 40px;
}

#expand_content .tabs-content {
	width: 100%;
	padding-top: 5px;
	height: 100%;
}

#expand_content .tab-content {
	height: 100%;
	border-radius: 0px 8px 0px 0px;
}

.tab-content-title {
	text-align: center;
	font-weight: bold;
	padding: 15px 0px 10px 0px;
}

.tab-content-subtitle {
	opacity: 0.8;
	font-size: 15px;
	text-align: center;
	margin-bottom: 4px;
}

.tab-content-text {
	width: 50%;
    float: left;
    height: 100%;
    padding: 4px;
    font-size: 13px;
}

.tab-content-text img {
	width: 150px;
	margin: 10px;
}

img.smaller {
	width: 130px;
}


.tab-content-resume {
	width: 31%;
    float: left;
    border-left-style: solid;
    border-width: 2px;
    height: 100%;
}

.tab-content-resume div {
	height: 12%;
	text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.tab-content-resume div.techno {
	height: 20%;
	border-bottom: 1px solid;
}





@media screen and (max-height: 739px) {
	main {
		overflow: unset;
	}

	article {
		height: initial;
	}
}

@media screen and (max-width: 738px) {
	main {
		overflow: unset;
	}

	article {
		height: initial;
	}


	#CV .tile:nth-child(1) { order: 1; }
    #CV .tile:nth-child(2) { order: 2; }
    #CV .tile:nth-child(3) { order: 4; }
    #CV .tile:nth-child(4) { order: 3; }
    #CV .tile:nth-child(5) { order: 5; }
    #CV .tile:nth-child(6) { order: 6; }
    #CV .tile:nth-child(7) { order: 7; }
    #CV .tile:nth-child(8) { order: 8; }
    #CV .tile:nth-child(9) { order: 9; }

	#expand.show {
		top: 4px;
	    transform: unset;
	    height: 100%;
	}
}

@media screen and (max-width: 510px) {
    #CV .tile:nth-child(3) { order: 3; }
    #CV .tile:nth-child(4) { order: 4; }

    .tile {
		width: 100%;
	}

	.tile.tile-xl {
		width: 100%;
	}
}





/* Partie maintenance version mobile le temps de pouvoir retravailler correctement dessus pour éviter que ca parte dans tous les sens */
#maintenance {
	display: none;
}

@media screen and (max-width: 738px) {

    article {
		display: none;
	}

	#maintenance {
		display: flex;
		height: 100%;
	}

	#maintenance div {
		padding: 5px;
		text-align: center;
		color: white;
	}
}
