/*
 * Theme Name: TownHall
 */

/* RESET */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent; }

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, font, 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 {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent; }

body {
  position: relative;
  line-height: 1;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll; }

a, a:link, a:hover, a:visited, a:active {
  text-decoration: none;
  color: black; }

ol, ul {
  list-style: none;
  padding: 0;
  margin: 0; }

img {
  max-width: 100%;
  max-height: 100%; }

:focus {
  outline: none; }

/* Colors */
html {
  margin-right: 0 !important;
  overflow: visible !important;
  font-size: 14px; }

body {
  font-family: "Lato", sans-serif; }

/**************************************************************/
/*************************   THEME   **************************/
/**************************************************************/
/* ANIMATION */
@-webkit-keyframes FloatingY {
  from {
    -webkit-transform: translate(0, 0px); }
  65% {
    -webkit-transform: translate(0, 15px); }
  to {
    -webkit-transform: translate(0, 0px); } }

.floating {
  -webkit-animation-name: FloatingY;
  -webkit-animation-duration: 3s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  -moz-animation-name: Floating;
  -moz-animation-duration: 3s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: ease-in-out; }

/**************** Common ****************/
h2 {
  padding: 20px 0;
  margin-bottom: 10px;
  font-family: "Lato", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #282828; }

h3 {
  margin-bottom: 40px;
  font-family: "Lato", sans-serif;
  font-size: 22px;
  color: white; }

section {
  position: relative;
  padding: 100px 0; }

.first-color {
  color: #f94c00; }

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; }

/************** Navigation **************/
nav#main-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  padding: 15px;
  background-color: white;
  border-bottom: 1px solid #e6e6e6;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2rem; }
  nav#main-nav .navbar-header, nav#main-nav .navbar {
    display: inline-block; }
  nav#main-nav a {
    display: inline-block;
    cursor: pointer; }
  nav#main-nav .navbar-header {
    font-family: "Lobster";
    font-weight: 900;
    font-size: 2rem; }
  nav#main-nav .navbar {
    padding: 0;
    float: right; }

/* Burger button */
#burger-button {
  width: 60px;
  height: 45px;
  position: relative;
  margin: auto;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
  /* Juste change this for size and position */
  transform-origin: right 10px;
  transform: scale(0.5); }
  #burger-button span {
    display: block;
    position: absolute;
    height: 9px;
    width: 50%;
    background: #f94c00;
    opacity: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out; }
    #burger-button span:nth-child(even) {
      left: 50%;
      border-radius: 0 9px 9px 0; }
    #burger-button span:nth-child(odd) {
      left: 0px;
      border-radius: 9px 0 0 9px; }
    #burger-button span:nth-child(1), #burger-button span:nth-child(2) {
      top: 0px; }
    #burger-button span:nth-child(3), #burger-button span:nth-child(4) {
      top: 18px; }
    #burger-button span:nth-child(5), #burger-button span:nth-child(6) {
      top: 36px; }
  #burger-button.open span:nth-child(1), #burger-button.open span:nth-child(6) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg); }
  #burger-button.open span:nth-child(2), #burger-button.open span:nth-child(5) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg); }
  #burger-button.open span:nth-child(1) {
    left: 5px;
    top: 7px; }
  #burger-button.open span:nth-child(2) {
    left: calc(50% - 5px);
    top: 7px; }
  #burger-button.open span:nth-child(3) {
    left: -50%;
    opacity: 0; }
  #burger-button.open span:nth-child(4) {
    left: 100%;
    opacity: 0; }
  #burger-button.open span:nth-child(5) {
    left: 5px;
    top: 29px; }
  #burger-button.open span:nth-child(6) {
    left: calc(50% - 5px);
    top: 29px; }

@media screen and (max-width: 991px) {
  #burger-button + .menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: calc(100vh - 62px);
    top: 62px;
    /* Height + border */
    right: -100%;
    background-color: white;
    text-align: center;
    font-size: 1.4rem;
    transition: all 0.2s linear; }
  #burger-button.open {
    overflow: hidden; }
    #burger-button.open + .menu {
      right: 0; } }

@media screen and (min-width: 992px) {
  nav#main-nav #burger-button {
    display: none; }
  nav#main-nav .menu {
    display: block;
    text-transform: uppercase; }
    nav#main-nav .menu li {
      display: inline-block; }
    nav#main-nav .menu a {
      position: relative;
      margin-left: 15px; }
      nav#main-nav .menu a::after {
        content: attr(data-hover);
        display: inline-block;
        position: absolute;
        top: 0px;
        left: 0px;
        max-width: 0;
        padding-bottom: 8px;
        border-bottom: 4px solid #f94c00;
        color: #f94c00;
        white-space: nowrap;
        overflow: hidden;
        transition: all 0.3s linear; }
      nav#main-nav .menu a:hover::after {
        max-width: 100%; } }

/**************** Footer ****************/
footer {
  position: fixed;
  z-index: -1;
  bottom: 0;
  width: 100%;
  padding: 30px 0;
  background-color: #f94c00;
  text-align: center;
  color: #282828; }
  footer .social-links, footer .legal-notice {
    margin: auto; }
  footer .social-links {
    margin-bottom: 25px; }

/***************** Home *****************/
#home-header {
  position: relative;
  z-index: 2;
  height: 100vh; }
  #home-header #bgvid {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%; }
  #home-header .text-slider {
    position: absolute;
    width: 100%;
    left: 0;
    top: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    font-family: "Lobster";
    font-size: 4rem;
    color: white; }
    #home-header .text-slider > .item {
      width: 100%;
      text-align: center;
      line-height: 6rem; }

section#competences, section#projects {
  background-color: white; }

section#projects .filter {
  display: inline-block;
  padding: 10px 0;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 10px;
  cursor: pointer; }
  section#projects .filter.active {
    color: #f94c00;
    border-top: 4px solid #f94c00; }

section#projects #projects-list .project a {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: block;
  overflow: hidden;
  text-align: center;
  color: white; }
  section#projects #projects-list .project a .overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    border: 0 solid rgba(249, 76, 0, 0.8);
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    display: inline-block;
    height: 100px;
    width: 100px;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    visibility: hidden;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms;
    background: none; }
  section#projects #projects-list .project a .txt-overlay {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms;
    height: 100%; }
    section#projects #projects-list .project a .txt-overlay img {
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
      top: -300px;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
      filter: alpha(opacity=0);
      opacity: 0;
      position: relative;
      left: 0;
      right: 0;
      margin: auto; }
    section#projects #projects-list .project a .txt-overlay h4 {
      padding-top: 30px;
      bottom: 100%;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
      color: #fff;
      font-size: 22px;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
      filter: alpha(opacity=0);
      opacity: 0; }
    section#projects #projects-list .project a .txt-overlay p {
      top: 100%;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
      color: #fff;
      font-size: 15px;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
      filter: alpha(opacity=0);
      opacity: 0; }
  section#projects #projects-list .project a:hover .overlay {
    border: 100px solid rgba(198, 60, 0, 0.8);
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
    visibility: visible;
    -moz-transform: scale(6);
    -ms-transform: scale(6);
    -o-transform: scale(6);
    -webkit-transform: scale(6);
    transform: scale(6);
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms; }
  section#projects #projects-list .project a:hover .txt-overlay {
    background: transparent;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms; }
    section#projects #projects-list .project a:hover .txt-overlay img {
      top: 30px;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
      filter: alpha(opacity=100);
      opacity: 1;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms; }
    section#projects #projects-list .project a:hover .txt-overlay h4 {
      bottom: 0;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
      filter: alpha(opacity=100);
      opacity: 1;
      font-size: 22px;
      font-weight: bold; }
    section#projects #projects-list .project a:hover .txt-overlay p {
      top: 0;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
      filter: alpha(opacity=100);
      opacity: 1;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms; }

section#tools {
  padding: 40px 0;
  background-image: url(../img/fun-fact.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-background-size: cover;
  background-size: cover; }
  section#tools .overlay {
    background-color: #f94c00;
    opacity: 0.7; }
  section#tools .owl-stage {
    display: table !important; }
    section#tools .owl-stage .owl-item {
      display: table-cell;
      float: none;
      vertical-align: middle; }
      section#tools .owl-stage .owl-item img {
        height: 80px;
        width: auto;
        margin: auto; }

section#contact {
  background-color: white; }
  section#contact .controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; }
    section#contact .controls a {
      top: 35px;
      border: 3px solid #dce7eb;
      background: #f3f3f3;
      -moz-border-radius: 50%;
      -webkit-border-radius: 50%;
      border-radius: 50%;
      display: inline-block;
      margin: 0 20px;
      padding: 15px;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
      cursor: pointer;
      position: relative;
      z-index: 1; }
  section#contact .infos {
    font-size: 1.5rem;
    font-weight: 700; }
    section#contact .infos img {
      height: 96px; }
    section#contact .infos a {
      display: block; }
  section#contact #map, section#contact #contact-form {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    -moz-transition: all 300ms;
    -o-transition: all 300ms;
    -webkit-transition: all 300ms;
    transition: all 300ms; }
  section#contact #contact-form {
    padding: 25px 0; }
    section#contact #contact-form label {
      font-size: 1.2rem;
      margin-bottom: 8px;
      color: #282828; }
    section#contact #contact-form input, section#contact #contact-form textarea {
      -moz-border-radius: 6px;
      -webkit-border-radius: 6px;
      font-style: italic;
      -moz-transition: all 300ms;
      -o-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
      border: 0;
      box-shadow: none;
      border-radius: 0;
      border-left: 1px solid #b2b2b2;
      background: whitesmoke;
      padding: 18px;
      font-size: 20px;
      color: #f94c00; }
      section#contact #contact-form input:focus, section#contact #contact-form textarea:focus {
        border-color: #f94c00;
        background: #e8e8e8;
        -webkit-transition: all 300ms;
        -moz-transition: all 300ms;
        -ms-transition: all 300ms;
        -o-transition: all 300ms;
        transition: all 300ms; }
    section#contact #contact-form textarea {
      height: 125px;
      resize: none; }
  section#contact #map {
    height: 100%; }

section#about {
  background-color: #f3f3f3; }
