/* Base */


:root{
    --color-body: #333333;
    --background-body: #ffffff;
}

* {
    box-sizing: border-box;
}

html{
font-size: 62.5%;
scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5b6c78;
    outline-offset: 2px;
}

body{
font-family: Verdana, 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: 'Comfortaa', cursive;
    color: #000;
    font-weight: 500;
    line-height: 1;
}

h1,
.h1{
    font-size: 4.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

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;
    align-items: center;
}

.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: 90%;
      }
}

/* bar menu */


section{
    padding: 9rem 0;
}

.section-title{
    margin-top: 0;
    font-size: 3.8rem;
}

.section-header{
    text-align: center;
}

.header{
    background: #f8f5f2;
    border-bottom: 2px solid rgb(136, 136, 136);
    position: sticky;
    top: 0;
    z-index: 1;
}

.header img{
  display: flex;
  width: 10rem;
  margin-left: 10px;
}

.header .logo{
    font-family: 'Comfortaa', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
    padding: 0%;
}


.header li {
    display: inline-flex;
    align-items: center;
    padding: 0 .5rem;
    
}

.header a {
    color: var(--color-body);
}

.header a:hover{
    color: red;
}

.header .right{
    display: flex;
    align-items: center;
}

.socials {
    display: flex;
}

.socials li {
    margin-bottom: 0;
  }

.socials a{
    padding: 0 2px;
}
.socials .icons{
    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: #333;
}

.burger .bar::before, .burger .bar::after {
    display: block;
    content:"";
    width: 22px;
    height: 3px;
    background: #333;
    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: #F5F5F5;
        transition: all .4s ease-out;
      }
    
      nav .menu li {
        display: flex;
        justify-content: center;
      }
    
      nav .menu a {
        display: block;
        font-size: 2rem;
        padding: 2rem;
        transition: all .4s;
      }
    
      .show-nav nav {
        opacity: 1;
        width: 100%;
        left: 0;
        z-index: 2;
      }
    
      .show-nav nav li a:hover {
        transform: scale(1.1);
        text-decoration: none;
      }
    
      .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;
    }
}


/* APROPOS */

.about{
  background: #9ea9af;
  color: rgb(0, 0, 0);
  padding: 14rem 0 10rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.about .title {
  font-family: 'Comfortaa', cursive;
  color: inherit;
  font-size: 2rem;
  margin: .5rem 0 6rem 0;
  border-bottom:1px dashed rgb(0, 0, 0)
} 

.about .section-title {
  font-family: 'Comfortaa', cursive;
  letter-spacing: 3px;
  margin-top: 2.8rem;
  font-weight: bolder;
}

.about p{
  color: rgb(100, 100, 100);
}

@media screen and (min-width:750px) {
  .about img {
    padding-right: 3rem;
  }

}



/* prestations */

.services{
    background: #f8f5f2;
  }
  
  .service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border: 2px solid #5b6c78;
    border-radius: 50%;
  }
  
  .service__icon svg {
    height: 35px;
  }
  
  .service__content {
    flex: 1;
    max-width: 100%;
  }
  
  .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;
    }
  }
  

/* PORTFOLIO */

  .portfolio {
    background: #9ea9af;
  }
  
  .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: #EEE;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 1rem;
  }
  
  .portfolio-filters a.active {
    color: #FFF;
    background: #5b6c78;
  }
  
  .modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 5;
    transform: scale(0);
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.5s;
  }
  
  .show.modal {
    transform: scale(1);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
  }
  
  .modal__content {
    background-color: #fefefe;
    height: 100vh;
    padding: 5rem 1rem;
    overflow: auto;
    text-align: left;
  }
  
  .modal img {
    margin-bottom: 2rem;
  }
  
  .modal__title {
    margin: 0 0 2rem;
  }
  
  .modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: 1px solid #eee;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 3.1rem;
    color: #666;
    cursor: pointer;
  }
  
  .modal .grid__item {
    max-width: 100%;
    margin-bottom: 0;
    opacity: 1;
    transition: all 1s ease;
  }
  
  @media screen and (max-width:749px) {
    .portfolio a {
      font-size: 1.4rem;
    }
  }
  
  @media screen and (min-width:750px) {
    .portfolio .grid__item {
      max-width: 33.3333%;
    }
  
    .portfolio-filters .grid__item {
      max-width: 20%;
    }
  
    .modal__content {
      padding: 3rem;
    }
  
    .modal .grid__item {
      max-width: 50%;
    }
  }
  
  .card {
    background: #f8f5f2;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
    border: 1px solid #EEE;
    overflow: hidden;
  }
  
  .card__inner {
    padding: 2rem;
  }
  
  .card__title {
    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 .3s;
  
  }
  
  .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;
  }
  
  .form {
    max-width: 600px;
    margin: 4rem auto 0 auto;
  }
  
  .form input,
  .form textarea {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .form textarea {
    min-height: 200px;
  }
  
  .form .btn {
    border: none;
    background: var(--color-body);
    color: #FFF;
    width: auto;
    min-width: 160px;
    font-size: 2rem;
    text-transform: uppercase;
  }
  
  .form .btn:hover {
    cursor: pointer;
    background: #000;
  }
  
  /* Footer */
  
  footer {
    background: #2f3131;
    color: #EEE;
    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: #FFF;
    border: 1px solid #FFF;
    border-radius: 50%;
    padding: 1rem;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    transition: all .4s;
  }
  
  footer .socials a:hover {
    background: #FFF;
    color: var(--color-body);
  }
  
  .toto {
    color: #555;
  }
  
  @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);
    }
  }
  
  
  .article__card {
    position: relative;
    margin-bottom: 2rem;
  }
  
  .article__img {
    opacity: 0.9;
  }
  
  .article__card:hover img {
    opacity: 1;
  }
  
  .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
  }
  
  @media screen and (min-width:750px) {
    .d-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-column-gap: 2rem;
    }
  
    .content-grid {
      display: grid;
      grid-template-columns: 6fr 2fr;
      grid-column-gap: 2rem;
      grid-template-areas:
        "article sidebar"
    }
  
    .article {
      grid-area: article;
    }
  
    .sidebar {
      grid-area: sidebar;
    }
  }