*{
  box-sizing: border-box;
}
html, body{
  height: 100%;
}
body {
  margin: 0;
  background-color: #fff;
  min-height: 100vh;
}

header{
  display: flex;
  align-items:center;
  justify-content : space-between;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
  background-color: #96CFB4;
  position: fixed;
  width: 100%;
  margin-bottom: 10em;
  z-index: 1;
}

#logo{
  width: 5em;
  height: 5em;
  margin-right: 0.5em;
  margin-top: 0.15em;
  margin-bottom: 0.15em;
}

#roundButton{
  max-width: 3em;
}

h1{
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  margin-right: 1em;
  /*margin-left: 1em;*/
}
#logoName a{
  display: flex;
  text-decoration: none;
}
h2{
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: 21pt;
  font-weight: bold;
  color: white;
  letter-spacing: 8px;
  text-transform: uppercase;
}
h3{
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
li{
  font-family: 'Catamaran', sans-serif;
}
ul{
  padding: 0;
}
.button{
  display: flex;
  align-content: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0em;
  border: 5px solid white;
  background-color: #178EA6;
  transition: background 1s;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15pt;  
  color: white;
  padding: .5em;
  text-decoration: none;
  text-align: center;
  width: 15em;
  text-transform: uppercase;
  font-weight: bold;
}

.button:hover{
  background: #F0536A;
  border: 5px solid #F0536A;
}

.reseauxSociaux{
  display: flex;
  align-content: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  visibility: visible;
}
.reseauxSociaux img{
  display: flex;
  margin: 1.5em;
  width: 2.5em;
  visibility: visible;
}

/*NAVIGATION ----------------------------------------------*/

/*#roundButton:active {
    background-color: #FFF;
}*/

#flyoutMenu {
    width: 100vw;
    height: 100vh;
    background-color: #141414;
    opacity: 0.95;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(-100vw, 0, 0);
    transition: transform .3s cubic-bezier(0, .52, 0, 1);
    z-index: 1000;
    list-style: none;
    margin-top: 0;
    padding: 0;
            /*padding-top: 40px;*/
}
#flyoutMenu.show {
            transform: translate3d(0vw, 0, 0);
}

header h2{
  color: white;
  text-align: center;
}

header li{
  display: block;
  margin-bottom: 2em;
  border: 5px solid #96CFB4; 
  transition: background 1s;
  margin-left: 30em;
  margin-right: 30em;
}

header li:hover{
  background: #F0536A;
  border: 5px solid #F0536A;
}
header li a:hover{
  color: white;
}

header li a{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px; 
  text-transform: uppercase;
  font-weight: bold;
  color:#96CFB4;
  text-decoration: none;
  display: block;
  padding: .5em;
  transition: color 1s;
}
#menu_title{
  text-decoration: none;
  border: none;
  background-color: transparent;
  color: white;
}
#menu_title:hover{
  border: none;
  background-color: transparent;
}
          
#roundButton {
    background : url('../images/header/burger.png');
    background-position: center;
    background-size: cover;
    outline: none;
/* transition: all .2s cubic-bezier(0, 1.26, .8, 1.28);*/
/*  margin-left: 1em;
            margin-top: 1em;*/
    margin-left: 2em;
    float: left;
}


/*PRESENTATION ----------------------------------------------*/
#presentation{
  padding-top: 10em;
  /*background-color: #96CFB4;*/
  /*padding-bottom: 1.5em;*/
  height: 60rem;
  width: 99vw;
}
#presTexte{
  margin-top: 4em;
}
#caroussel{
  height: 7em;
  display: flex;
  justify-content: left;
  text-align: left;
}
#presentationTitle{
  color: #F0536A;
  font-size: 30pt;
  display: flex;
  justify-content: left;
  text-align: left;
  letter-spacing: 6px;
  padding-left: 1em;
  flex-wrap: wrap;
}
.txt-rotate{
  margin-left: 0.7em;
  text-align: left;
}
#presTexte p{
  margin-left: 24em;
  margin-right: 5em;
  font-size: 18pt;
  padding-left: 1.5em;
  border-left: 5px solid #96CFB4;
}
p{
  display: flex;
  align-items:center;
  justify-content: center;
  margin-left: 20em;
  margin-right: 20em;
  text-align: justify;
  font-family: 'Catamaran', sans-serif;
}

/*COMPETENCES ------------------------------------------------*/
#competences{
  padding-top: 4em;
}
#competences h2{
  background-color: #178EA6;
  color: white;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 1.5em;
  margin-top: 0.5em;
}
#compstyle{
  margin-left: 6em;
}
/*GALERIE IMAGES ---------------------------------------------*/
#portfolio{
  background-color: #178EA6;
  color: white;
  padding-top: 1em;
  padding-bottom: 1em;
  font-size: 25pt;
}
.portCat{
  display: flex;
  height: 9em;
  margin-bottom: 9em;
  position: relative;
  /*top: -10pt;*/
  border-top: 10px solid #C0E4D0;
}
.portCat:after{
  content: "";
  width:50%;
  height:10.1px;/* slight higher to work around rounding errors(?) on some zoom levels in some browsers. */
  background-color:white;
  position: absolute;
  left:0;
  top:-10px;
}
#divPort h3{
	text-align: left;
  color: #F0536A;
  font-size: 19pt;
  font-weight: 1000;
  margin-top: 1em;
  /*text-orientation: sideways;
  writing-mode: sideways-rl;*/
  /*transform: rotate(90deg);*/
  transform-origin: left top 0;
  float: left;
  letter-spacing: 8px;
  border-left: 3px solid;
  padding-left: 1em;
  height: 1em;
  width: 15em;
  margin-left: 1em;
}
.content p{
  cursor: auto;
  border-left: 5px solid #96CFB4;
  padding-left: 1em;
  text-align: left;
  margin: 0;
}
#gallery{
  margin-left: 10em;
  margin-right: 10em;
  margin-bottom: 2em;
  margin-top: -7em;
}
.hello {
  opacity: 1 !important;
}
.full {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.full .content {
  background-color: rgba(0,0,0,0.75) !important;
  height: 100%;
  width: 100%;
  display: grid;
}
.full .content img {
  left: 50%;
  transform: translate3d(0, 0, 0);
  animation: zoomin 1s ease;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  z-index: 1;
}
.byebye {
  opacity: 0;
}
.byebye:hover {
  transform: scale(0.2) !important;
}
.gallery {
  display: grid;
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  /*grid-auto-rows: 8px;*/
}
.gallery img {
  max-width: 100%;
  border-radius: 8px;
  /*box-shadow: 0 0 16px #333;*/
  transition: all 1.5s ease;
}
.gallery img:hover {
  box-shadow: 0 0 16px #333;
}
.gallery .content {
  padding: 4px;
}
.gallery .gallery-item {
  transition: grid-row-start 300ms linear;
  transition: transform 300ms ease;
  transition: all 0.5s ease;
  cursor: pointer;
}
.gallery .gallery-item:hover {
  transform: scale(1.025);
}
#galleryP:hover{
  cursor: auto;
  transform: scale(1);
}
/*FOOTER/CONTACT ---------------------------------------------*/
/*main{

  max-width:1280px;
  min-height:100%;
  margin:0 auto;
  position:relative;

}*/
footer{
  background-color: #F0536A;
  padding-top: 1em;
  padding-bottom: 1em;
  position: absolute;
  left: 0;
/*  bottom: 0;*/
  width: 100%;
/*  position: relative;
  bottom: -10vh;*/
  margin-top: 2em;
}

footer li{
  display: flex;
  align-content: center;
  justify-content: center;
}
/*@MEDIA RESPONSIVE ------------------------------------------------*/
@media (max-width: 1435px){
	#presTexte{
		margin-top: 3em;
	}
  #caroussel{
    height: 9.5em;
  }
	#presTexte p{
		margin-right: 2em;
	}
}
@media (max-width: 1215px){
  header li{
    margin-left: 10em;
    margin-right: 10em;
  }
}
@media (max-width: 1252px){
	/*#maiFlat{
		width: 30em;
    height: 47em;
    margin-top: 2em;
    margin-left: 4em;
	}*/
	#caroussel{
    height: 10em;
  }
  #presentationTitle{
    font-size: 28pt;
    padding: 0;
  }
	#presTexte{
		margin-top: 0;
	}
	#presTexte p{
		font-size: 16pt;
	}
}
@media (max-width: 1090px){
  p{
    margin-left: 10em;
    margin-right: 10em;
  }
  
}
@media (max-width: 1001px){
	#presentation{
		height: auto;
		width: auto;
		display: flex;
		flex-direction: column;
    padding-top: 7em;
	}
	#caroussel{
    height: 6em;
  }
  #presentationTitle{
    margin-top: 0em;
    margin-bottom: 0;
    font-size: 25pt;
    margin-right: 2em;
    margin-left: 2.8em;
  }
  #animationContainer{
    margin-left: auto;
    margin-right: auto;
    height: 31em;
  }
	#maiFlat{
		height: 29.5em;
    width: 18.5em;
    margin-left: auto;
    margin-right: auto;
	}
  svg{
    height: 29.3em;
    width: 18.6em;
    margin-left: auto;
    margin-right: auto;
    right: 0;
  }
	#presTexte{
		margin-top: 1em;
	}
	#presTexte p{
		margin-left: 5em;
		margin-right: 5em;
		font-size: 14pt;
	}
	#presentation .button{
		margin-bottom: 0;
    width: 13em;
    font-size: 13pt;
	}
  #CV{
    margin-bottom: 0;
    width: 13em;
    font-size: 13pt;
  }
  #gallery{
    margin-bottom: 2em;
    margin-top: 0;
}
  /*.portCat{
    display: flex;
    height: 100%;
    top: 0;
    justify-content: center;
    margin-bottom: 2em;
    padding-top: 30pt;
  }
  .portCat:after{
    left: auto;
    right: 0;
  }
  #divPort h3{
    text-align: left;
    font-size: 24pt;
    font-weight: 1000;
    margin-top: 0;
    margin-bottom: 0;
    text-transform: uppercase;
    writing-mode: horizontal-tb;
    margin-left: 2em;
    margin-right: 2em;
    padding: 0;
    border: none;
  }*/
  .portCat{
    height: 5em;
    margin-bottom: 5em;
  }
  #divPort h3{
    font-size: 19pt;
    width: 22em;
  }
}
@media (max-width: 850px){
  header li{
    margin-left: 1em;
    margin-right: 2em;
  }
  h1{
    font-size: 19pt;
  }
  #logo{
    display: none;
  }
  #presentation{
  padding-top: 5em; 
  }
  #competences h2{
    margin: 0;
  }
  #compstyle{
    margin-left: 4em;
  }
}

@media (max-width: 650px) {
  h1{
    font-size: 15pt;
    margin-left: 1.5em;
    text-align: center;
  }
  #logo{
    /*width: 4em;
    margin-right: 2em;*/
    display: none;
  }
  #roundButton{
    max-width: 2em;
  }
  .button{
    font-size: 16pt;
  }
  #competences{
    padding-top: 3em;
  }
  #presentation{
  padding-top: 4.5em;
/*  width: 100vw;
  height: 100vh;*/
  }
  #caroussel{
    height: 6em;
  }
  #presentationTitle{
    font-size: 20pt;
    margin-right: 2em;
    margin-left: 3.8em;
  }
  #animationContainer{
    margin-left: auto;
    margin-right: auto;
    height: 25em;
    width: 20em;
  }
	#maiFlat{
    height: 22em;
    width: 14em;
  }
  svg{
    height: 22em;
    width: 13.9em;
    top: -1.25pt;
    right: -1.2pt;
  }
	#presTexte p{
		margin-left: 5em;
		margin-right: 5em;
		font-size: 14pt;
	}
  p{
    margin-left: 5em;
    margin-right: 5em;
  }
  #gallery{
    margin-left: 2em;
    margin-right: 2em;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }
}

@media (max-height: 495px){
  #flyoutMenu a{
    font-size: 16pt;
  }
  header li{
    margin-left: 18em;
    margin-right: 18em;
    margin-bottom: 0.5em;
  }
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }
}
@media (max-width: 730px){
  header li{
    margin-left: 5em;
    margin-right: 5em;
    margin-bottom: 0.5em;
  }
}
@media (max-width: 548px){
  #presentation{
  	padding-top: 7em; 
  }
  #presTexte p {
    margin-left: 3em;
    margin-right: 3em;
  }
  .portCat{
    display: flex;
    height: 100%;
    top: 0;
    justify-content: center;
    margin-bottom: 2em;
  }
  .portCat:after{
  left:auto;
  right:0;
  }
  #divPort h3{
    text-align: left;
    font-size: 15pt;
    font-weight: 1000;
    margin-top: 1em;
    margin-bottom: 0;
    margin-left: 2em;
    margin-right: 2em;
    height: auto;
  }
}
@media (max-width: 515px){
  #roundButton{
    margin-top: 1em;
  }
  #competences h2{
    padding-top: 4em;
  }
}
@media(max-width: 410px){
  header li{
    margin-left: 3em;
    margin-right: 3em;
  }
   #animationContainer{
    margin-left: auto;
    margin-right: auto;
    height: 20em;
    width: 15em;
  }
  #maiFlat{
    height: 19em;
    width: 12em;
  }
  svg{
    height: 19em;
    width: 11.9em;
    top: -1.1pt;
    right: 0;
  }
  #presentationTitle{
    font-size: 16pt;
    letter-spacing: 5px;
    margin-left: 2em;
  }
  #presTexte p{
  	font-size: 12pt;
  	margin-right: 2em;
  	margin-left: 2em;
  	text-align: left;
  }
  .content p{
    font-size: 12pt;
    width: 245px;
  }
}
@media (max-width: 400px) {
  h1{
    font-size: 13pt;
  }
  #presentation{
  padding-top: 6em; 
  }

  .reseauxSociaux img{
    margin: 1em;
  }
  #competences h2{
    padding-top: 4.5em;
  }
  #compstyle{
  margin-left: 2em;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }
  .portCat{
    display: flex;
    height: 100%;
    top: 0;
    justify-content: center;
    margin-bottom: 2em;
  }
  #divPort h3{
    text-align: left;
    font-size: 14pt;
    font-weight: 1000;
    margin-left: 2em;
    margin-right: 2em;
  }
}
@media (max-width: 315px){
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
  .content p{
    font-size: 10pt;
    width: auto;
  }
}

#presTexte{
    -webkit-animation-name: slidingstep;
    -webkit-animation-duration: 10s;
    -webkit-animation-iteration-count: 1;         
    -webkit-animation-direction: normal;
    -webkit-animation-timing-function: linear;
    -webkit-animation-fill-mode: forwards;
}

@-moz-keyframes zoomin {
  0% {
    max-width: 50%;
    transform: rotate(-30deg);
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
    transform: rotate(-80deg);
  }
  70% {
    max-width: 50%;
    transform: rotate(45deg);
  }
  100% {
    max-width: 100%;
    transform: rotate(0deg);
  }
}
@-webkit-keyframes zoomin {
  0% {
    max-width: 50%;
    transform: rotate(-30deg);
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
    transform: rotate(-80deg);
  }
  70% {
    max-width: 50%;
    transform: rotate(45deg);
  }
  100% {
    max-width: 100%;
    transform: rotate(0deg);
  }
}
@-o-keyframes zoomin {
  0% {
    max-width: 50%;
    transform: rotate(-30deg);
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
    transform: rotate(-80deg);
  }
  70% {
    max-width: 50%;
    transform: rotate(45deg);
  }
  100% {
    max-width: 100%;
    transform: rotate(0deg);
  }
}
@keyframes zoomin {
  0% {
    max-width: 50%;
    transform: rotate(-30deg);
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
    transform: rotate(-80deg);
  }
  70% {
    max-width: 50%;
    transform: rotate(45deg);
  }
  100% {
    max-width: 100%;
    transform: rotate(0deg);
  }
}
@-webkit-keyframes slidingstep {
    0%   { left: -100px; opacity:0;}
    5%   { left: -75px; opacity:0.2;}
    10%   { left: -50px; opacity:0.4;}
    15%   { left: -25px; opacity:0.6;}    
    20%  { left: 0px;opacity:1; }
    100% { left: 0px;opacity:1; }
  }