/* Base */

:root {
    --color-body: #333333;
    --background-body: #5b6c78;
  }
  
  * {
    box-sizing: border-box; 
  }
  
  html {
    font-size: 62.5%;
  }
  
  body {
    font-family: Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-body);
    margin:0;
    background: var(--background-body);  
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'workbench', sans-serif;
    color: #181a1b;
    line-height: 1;
  }
  
  h1,
  .h1 {
    font-size: 3.1rem; 
  }
  
  h2,
  .h2 {
    font-size: 2.8rem;
    text-transform: uppercase; 
  }
  
  h3,
  .h3 {
    font-size: 2.1rem;
  }
  
  a {
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  ul {
    padding-left: 2rem;
  }
  
  li {
    margin-bottom: 1rem;
  }
  
  .list-unstyled {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .category {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    color: #5b6c78;
  }
  
  .container {  
    padding:1rem 2rem;  
  }
  
  .d-flex {
    display: flex;
    align-items: center;
    justify-content:space-between;
  }
  
  .grid {
    display: flex;
    flex-wrap: wrap; 
  }
  
  .grid__item {
    flex-grow: 1;
    flex-shrink: 0;
    width: 100%; 
    padding:1rem;
  }
  
  @media screen and (min-width:750px) {
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;    
    }
  
    .grid__item {
      max-width: 50%;
    }
  }
  
  /* Sections */
  
  section {  
    padding: 5.5rem 0;
  }
  
  .section-title { 
    margin-top: 0;
    font-size: 3.8rem;
    text-align: center; 
  }
  
  .section-header {
    text-align: center;
  }
  
  @media screen and (min-width:750px) {
    .section-title {    
      font-size: 4.8rem;  
    }
  }
  
  .header {  
    background: #5b6c78; 
    border-bottom: 1px solid #333333;
    position: sticky;
    top:0;
    z-index: 1;
  }
  
  .header .logo {
    font-family: 'workbench', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: chartreuse;
    text-shadow: #000 1px 0 10px;
  }
  
  .header li {
    font-family: 'workbench', fantasy;
    display: inline-flex;
    align-items: center;
    padding: 0 .5rem;
    text-shadow: coral 1px 0 10px;
  }
  .header a {
    font-family: 'workbench', fantasy;
    color:  var(--color-body);
  }
  .header a:hover {
    color: #81ff02;
  }
  
  .header .right {
    display: flex;
    align-items: center;
  }
  
  .socials {
    display: flex;
  }
  
  .socials li {
    margin-bottom: 0;
  }
  
  .socials a {
    padding: 0 2px;
  }
  
  .socials .icon {
    height: 18px;
  }
  
  .burger {
    background:none;
    border:none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    position: relative;
    margin-left: 1rem;
  }
  
  .burger .bar {
    display: block;
    width: 22px;
    height: 3px;
    background: #81ff02;
  }
  
  .burger .bar::before, .burger .bar::after {
    display: block;
    content:"";
    width: 22px;
    height: 3px;
    background: #81ff02;
    position: absolute;
  }
  
  .burger .bar::before {
    transform: translateY(-8px);
  }
  
  .burger .bar::after {
    transform: translateY(8px);
  }

  @media screen and (max-width:749px) {
    nav {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      position: fixed;
      top: 55px;
      left: 110%;
      width: 0;
      overflow: hidden;
      opacity: 0;
      height: calc(100vh - 55px);
      background: #605b78;
      transition: all .4s ease-out;
    }
    nav .menu li {
      display: flex;
      justify-content: center;
    }
    nav .menu li a {
      font-family: 'workbench';
      color:coral;
      display: block;
      font-size: 2rem;
      padding: 2rem;
      transition: all .4s;
      text-shadow: #000 1px 0 10px;
    }
    .show-nav nav {
      opacity: 1;
      width: 100%;
      left: 0;
      z-index: 2;
     }
    .show-nav nav li a:hover {
      transform: scale(1.3);
    }
    .show-nav .burger .bar  {
      width: 0;
     }
    .burger .bar::before,
    .burger .bar::after {
      transition: all .2s ease-out;
    }
    .show-nav .burger .bar::before {
      transform: rotate(-45deg);
    }
    .show-nav .burger .bar::after {
      transform: rotate(45deg);
    }
  }
  
  @media screen and (min-width:750px) {
    .navbar {
      display: flex;
    }
  
    .burger {
      display: none;
    } 
  }
  
  .hero {
    background: #605b78;
    color: #ddff64;
    padding: 1rem 0 0 0;
  }
  
  .hero .title {
    color: inherit;
    font-size: 4rem;
    margin: 1.6rem 0 0 0;
    font-weight: 700;
    text-shadow: #000 1px 0 10px;
  }
  
  .hero__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .hero__item span {
    text-transform: uppercase;
  }
  
  .hero__item.left {
    animation-duration: 1s;
    animation-name: slideInleft;
  }
  
  .hero__item.right {
    animation-duration: 1s;
    animation-name: slideInRight;
  }
  
  @media screen and (max-width:749px) {
    .hero__item.left {
      order:2;
    }
  
    .hero__item.right {
      order:1;
    }
  }
  
  @media screen and (min-width:750px) {
    .hero__item {
      flex:1 0 50%;    
      text-align: left;
    }
  
    .hero__item.left {
      align-items:flex-start;
    }
  
    .hero .title {
      font-size: 4.7rem;
    }
  
    .hero__avatar img {
      max-width: 400px;
      border-radius: 50%;
    }
  }

  .about h3 {
    text-align: center;
  }

  .about li {
    color: #ffbd87;
  }

  .about p {
    color: #ffbd87;
    text-align: center;
  }

  .about .section-title {
    margin-top: 2.8rem;
    text-align: center;
  }
  
  @media screen and (min-width:750px) {
    .about img {
      padding-right: 3rem;
    }
  }
  
  .services {
    background: #ffbd87;
  }
  
  .service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;  
    border:2px solid #333333;
    border-radius: 50%;
  }
  
  .service__icon svg {
    height: 35px;
  }
  
  .service__content {
    flex:1;
  }
  
  .service h3 {
    margin-bottom: 0;
  }
  
  @media screen and (max-width:749px) {
    .service {
      text-align: center;
    }
  
    .service__icon { 
      margin:0 auto;
    }
  }
  
  @media screen and (min-width:750px) {
   .service {
      display: flex;
      align-items: center;
    }
  
    .service__icon { 
      margin-right:2rem;
    }
  }

  .skills .section-header p {
    color: #ffbd87;
  }
  
  .skills h4, .skills p {
    margin:0 0 0.3rem 0;
  }
  
  .skills li {
    background-color: #ccc;
    border-left:3px solid rgb(91,107,120);
    padding:.9rem 2rem;
  }
  
  .skills .progressbar {
    background: #ccc;
    color: #ffbd87;
    margin-bottom: 1rem;  
  }
  
  .skills .bar {
    background: #605b78;
    padding: 1rem;
  }
  
  .portfolio {
    background: #ffbd87;
  }
  
  .portfolio .grid__item {
    max-width: 50%;
    margin-bottom: 0;
    opacity: 1;
    transition: all 1s ease;
  }

  .portfolio .grid__item.hide {
    opacity: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    transition: all .4s ease;
  }
  
  .portfolio-filters .grid__item {
    max-width: 50%;
    margin-bottom: 0;
  }
  
  .portfolio-filters a {
    color: var(--color-body);
    background: #ccc;
    display: flex;
    flex:1;
    justify-content: center;
    padding:1rem;
  }
  
  .portfolio-filters a.active {
    color: #ddff64;
    background:#5b6c78;
  }

  .modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 4;
    transform: scale(0);
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    transition: all 0.5;
  }

  .show.modal {
    transform: scale(1);
    width: 100%;
    height: 100%;
    top: 0;
    left:  0;
    opacity: 1;
    visibility: visible;
  }

  .modal__content {
    background-color: #ffbd87;
    height: 100vh;
    padding: 5rem 1rem;
    overflow: auto;
    text-align: justify;
  }

  .modal img {
    margin-bottom: 2rem;
  }

  .modal__title {
    margin: 0 0 2rem;
  }

  .modal__close {
    position: absolute;
    right:  1rem;
    top:    1rem;
    background: none;
    border: none;
    width:   36px;
    height: 36px;
    border-radius: 50%;
    font-size: 3.1rem;
    color: #605b78;
    cursor: pointer;
  }

  .modal .grid__item {
    max-width: 100%;
    margin-bottom: 0;
    opacity: 1;
    transition: all 1s ease;
  }
  
  @media screen and (min-width:750px) {
    .container .modal .grid__item {
      max-width: 50%;
    }
    .modal__content {
      padding: 3rem;
      text-align: justify;
    }
  }

  @media screen and (max-width:749px) {
    .portfolio a {
      font-size: 1.4rem;
    }
  }
  
  @media screen and (min-width:750px) {
    .portfolio .grid__item {
      max-width: 33.333%;   
    }

    .portfolio-filters .grid__item {
      max-width: 25%;
    }
  }
  
  .card {
    background: #ccc;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 0 7px rgba(0,0,0,0.1);
    border: 1px solid #696969;
    overflow: hidden;
  }
  
  .card__inner {
    padding:2rem;
  }

  .category {
    text-align: center;
  }
  
  .card__title {
    text-align: center;
    margin:0 0 1rem;
    font-size: 1.6rem; 
  }
  
  .card__overlay {
    background: rgba(0,0,0,0.8);
    position: absolute;
    top:0;
    z-index:0;
    width: 100%;
    height: 100%;
    top: 110%;
    transition: all .4s;
  }
  .card__overlay a {
    font-size: 4.5rem;
    color:#FFF;
    flex:1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .card:hover .card__overlay {
    top: 0;
  }

  .contact .section-header p {
    color: #ffbd87;
  }
  
  .form {
    max-width: 600px;
    margin: 4rem auto 0 auto;
  }
  
  .form input, .form textarea {
   color: coral;
   display: block;
   width: 100%;
   padding: 1rem;
   margin-bottom: 2rem;
   background-color: #181a1b;
  }
  
  .form textarea { 
    min-height: 200px;
  }
  
  .form .btn {
    border:none;
    background:  var(--color-body);
    color: #ffbd87;
    width: auto;
    min-width: 160px;
    font-size: 2rem;
    text-transform: uppercase;
  }
  .form .btn:hover {
    cursor: pointer;
    background: #000;
  }
  
  /* Footer */
  
  footer {
    background: #000;
    color: #605b78;
    text-align: center;
    font-size: 1.4rem;
  }
  
  footer p {
    margin: 0;
  }
  
  footer .grid {
    align-items: center;
  }
  
  footer .socials {
    justify-content: center;
    text-align: center;
  }
  
  footer .socials li {
    padding:0 .7rem;
  }
  
  footer .socials a {
    color: #605b78;
    border:1px solid #605b78;
    border-radius: 50%;
    padding:1rem;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    transition: all .4s;
  }
  
  footer .socials a:hover {
    background: #81ff02;
    color:  var(--color-body);
  }
  
  
  @media screen and (min-width:750px) {
   footer {
    text-align: left;
   }
   footer .grid__item {
     max-width: 33.333%;
   }
  }
  
  @keyframes slideInleft {
    from {
      transform: translateX(-110%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(110%);
    }
    to {
      transform: translateX(0);
    }
  }
  
/* Composants */