html{
  margin: 0;
}

.accueil{

  overflow: hidden;
}

body{
    margin: 0
}
h1{
  font-size: 1.5rem;
  margin: 10px 0;
}
#mainNav{
  margin-top:10px;
  margin-bottom:15px;
}

ul{
  list-style: none;
}

nav ul{
  display: flex;
  margin: 0;
  flex: 0 1 25%;

  justify-content: center;
  align-items: center;
}

nav{
  margin-left: 1vw;
  margin-right: 1vw;
  padding: 20px;
  display: flex;
  position: sticky;
  top:0;
  background: white;
  z-index: 1;
}

nav  li, nav>img {
  margin: 10px 0px;
}
nav  li{
  flex: 1 1 0%;
  text-transform: uppercase;
  display: inline;
  vertical-align: middle;
  white-space: nowrap;
}

nav  img{
  width: 25px;
}

#carousel .w-100{
  height: 75vh;
  width: auto;
  text-align:center;
}
.carousel-control-prev-icon {
left: 95vw;
 background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
 height:2rem;
 width:2rem;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  height:2rem;
  width:2rem;
}
.carousel-inner img {
  margin: auto;
}



nav li img{
  vertical-align: middle;
}

a{
  cursor: pointer;
  color: black;
}
a:hover{
  color: black;
}

.underline {
  --line: #646b8c;
  --color: #2b3044;
  text-decoration: none;
  color: var(--color);
  position: relative;
}
.underline span {
  background-image: linear-gradient(0deg, var(--line) 0%, var(--line) 100%);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: var(--background-size, 100%) 1px;
  transition: background-size 0.2s linear var(--background-delay, 0.15s);
  font-size: 0.9rem;
  line-height: 20px;
  transform: translateZ(0);
}
.underline svg {
  vertical-align: top;
  display: inline;
  line-height: 1;
  width: 13px;
  height: 20px;
  position: relative;
  left: -2px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1px;
  stroke: var(--line);
  stroke-dasharray: 7.95 30;
  stroke-dashoffset: var(--stroke-dashoffset, 46);
  transition: stroke-dashoffset var(--stroke-duration, 0.15s) var(--stroke-easing, linear) var(--stroke-delay, 0s);
}
.underline:hover {
  --background-size: 0%;
  --background-delay: 0s;
  --stroke-dashoffset: 26;
  --stroke-duration: 0.3s;
  --stroke-easing: cubic-bezier(0.3, 1.5, 0.5, 1);
  --stroke-delay: 0.195s;
}

.titre{
  flex: 1 0 25%;
}

.titre div{
  margin-left: 20px;
}

.titre a{
  display: flex;
  text-decoration: none;
}

.logo{
  flex: 0 0 30px;
  height: 30px;
  margin-top: 10px;
}


.carousel-item{
  opacity: 0;
  transition: 1s opacity;
  position: absolute;
  height: 90vh;
  width: 100vw;
  display: flex;
}

.carousel-item a{
  margin: auto;
}

.active{
  opacity: 1;
  z-index: 5;
}
.noLoaded{
  display: none;
}

.lienProj{
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  bottom: 40px;
}

/******************/
.listeProjet{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
  margin:0 50px;
}

.caseProjet{
  width: 100%;
  position: relative;
  transition: 0.5s opacity;
  text-align: center;
}
.caseProjet img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s opacity;

}


.caseProjet:hover img{
  opacity: 0.2;
}

.caseProjet:hover p{
  opacity: 1;
}

.caseProjet p {
  transition: 0.2s opacity;
  position: absolute;
  top: 48%;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0
}

/*****************************************/
.projet{
  margin:0 5vw;
  width: 90vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.projet>img,.twoPhotos{
  flex: 0 0 51%;
  margin-top: 2%;
  width: 51%;
}

.projet .info{
  color: grey;
}

.twoPhotos {
  display: flex;
}

.twoPhotos img{
  width: 49%;
}

.twoPhotos img:nth-child(1){
  margin-right: 1%;
}
.twoPhotos img:nth-child(2){
  margin-left: 1%;
}



#navSmartphone{
  display: none;
}
/************************************/
h2{
    font-size: 2rem;
    margin-left: 5%;
}

.propos, .contact{
  margin: 2% 20% 5% 10% ;
  text-align: justify;
}

/* media queries */
@media only screen and (min-device-width : 581px) {
  .descriptionProj{
    flex: 0 0 50%;
    text-align: justify;
  }

}


@media only screen and (max-device-width : 580px) {
/*  #carousel .w-100{
  height: auto;
  width: 100vw;
}
body{
  padding: 0;
}
.listeProjet{
  grid-template-columns:1fr;
}
.titre{
  flex: 1 0 75%
}
.titre>div{
  justify-content: center;
  display: flex;
  white-space: nowrap;
}

nav ul{
  margin: auto;
  margin-top: 40px;
}

nav{
  flex-wrap: wrap;
}

h1{
  font-size: 2.5rem;
}

.underline span{
  font-size: 1.7rem;
}

.logo{
  flex: 0 0 40px;
  height: 40px;
  margin-top: 15px;
}
.burger{
  height: 40px;
  width: 40px;
  position: fixed;
  top: 35px;
  right:40px;

}
#mainNav{
  display: none;
}
.menu{
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  padding: 33vh 25vw;
  z-index: 20;
  background: #eeeeeeaa;
  text-align: center;
  transition: 0.5s;
  transform: translate(-100vw);
}
#navSmartphone{
  display:block;
}

nav ul{
  display: block;
  margin-top: 0;
}

nav li{
  display: block;
  flex: 1 1 100%
}

.projet>img,.twoPhotos{
  margin: 20px 0;
  width: 90vw;
}

.propos, .contact{
  margin: 2% 2% 5% 2% ;
  text-align: justify;
}*/

  #carousel .w-100{
    height: auto;
    width: 100vw;
  }
  body{
    padding: 0;
  }
  .listeProjet{
    grid-template-columns:1fr;
  }
  .titre{
    flex: 1 0 75%
  }
  .titre div{
    margin-left: 0;
  }
  .titre>div{
    justify-content: center;
    display: flex;
    white-space: nowrap;
    width: calc(100% - 60px);
  }

  nav ul{
    margin: auto;
    margin-top: 40px;
  }

  nav{
    flex-wrap: wrap;
    padding: 2px;
    z-index: 10;
    margin: 0;
  }

  h1{
    font-size: 1.5rem;
  }

  .underline span{1 0 75%
    font-size: 1.7rem;
  }

  .logo{
    flex: 0 0 30px;
    height: 30px;
    margin-top: 10px;
    margin-right: 10px;
  }
  .burger{
    height: 30px;
    width: 30px;
    position: fixed;
    top: 13px;
    right:10px;

  }
  #mainNav{
    display: none;
  }
  .menu{
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    padding: 33vh 25vw;
    z-index: 20;
    background: #eeeeeeaa;
    text-align: center;
    transition: 0.5s;
    transform: translate(-100vw);
  }
  #navSmartphone{
    display:block;
  }

  nav ul{
    display: block;
    margin-top: 0;
  }

  nav li{
    display: block;
    flex: 1 1 100%
  }

  .projet>img{
    margin: 20px 0;
    width: 90vw;
  }
  .twoPhotos{
    flex: 1 1 100%;
    margin: 20px 0;
  }

  .propos, .contact{
    margin: 2% 2% 5% 2% ;
    text-align: justify;
  }
}
