body {
}

@font-face {
  font-family: Mayenne;
  src: url(font/MayenneSansRegular.otf) format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: movment;
  src: url(font/Movement_Webfonts/Movement-IndirectBlack.woff2) format("WOFF2");
  font-weight: bold;
  font-style: normal;
}

#hello{
  margin-top: 50px;
    display: flex;
}

/*TITRE*/

header img{
  width: 25%;
}

.title{margin-left: 5%;
width: 60%;}

.title img{
mix-blend-mode: difference;
  position: fixed;
  z-index: 1;
width: 15%;
}


.title h1 a:hover{
color: #FFFFFF;
  text-shadow: #001e75 1px 1px 1px, #001e75 -1px 1px 1px, #001e75 -1px -1px 1px,#001e75 1px -1px 1px;
  text-decoration: none;}

h2{font-family: 'Mayenne';
    font-weight: bold;
    font-style: normal;
    font-size: 200%;
    color: #001e75;}

  p#accroche{
margin-left: 5%;
margin-top: -20px;
  color:#001e75;
  font-size: 150%;
  font-family: 'Asap',sans-serif;font-style:italic;

  }

h1{font-family: Asap;
  font-size: 150%;
  margin-left: 5%;
  margin-top: 85px;
  color: #001e75;
font-style: italic;}

h1 a{
  text-decoration: none;
  font-style: italic;
color: #001e75;
}

/*menu*/

nav{
    width: 60%;
    margin: 0 auto;
    background-color: white;
    position: sticky;
    top: 0px;
  font-family: 'Asap',sans-serif;
  margin-right: 40px;
  mix-blend-mode: difference;
  z-index:2;
}

nav ul{
    list-style-type: none;
    width: 40%;
    float: right;
    position: fixed;
}

nav ul li{
    float: right;
    width: 30%;
    text-align: center;
    position: relative;
    margin-top: -10px;
}

nav ul::after{
    content: "";
    display: table;
    clear: both;
}

nav a{
    display: block;
    text-decoration: none;
    color: #001e75;;
    border-bottom: 2px solid transparent;
    padding: 10px 0px;
  font-size: 130%;
}

nav a:hover{
    color: #001e75;
font-style: italic;

}

.sous{
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
}
nav > ul li:hover .sous{
    display: block;
}
.sous li{
    float: none;
    width: 100%;
    text-align: left;
}
.sous a{
    padding: 10px;
    border-bottom: none;
}
.sous a:hover{
    border-bottom: none;
    background-color: RGBa(0,0,0,0);
}
.deroulant > a::after{
    font-size: 12px;
}

.conteneur{
  margin: 50px 20px;
  height: 1500px;
}


/*PORJETS*/
#projet{
  max-width: 100%;
    padding-right: 3%;
      padding-top: 10vw;
    margin: 0 auto;
}

#projet ul{
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-column-gap: 25px;
  grid-row-gap: 21px;
  grid-auto-rows: min-content;
list-style-type: none;
}

#projet li{
width: 100%;
}

#projet img{
  width: 100%;
}


/*OVERLAY IMG/TITRE*/
.overlay-image {
  position: relative; /* Important pour positionner le contenu par dessus, relatif à l'élément */
  display: inline-block; /* Prendra la forme de son contenu */
}

.overlay-image img {
  vertical-align: middle;
}

.overlay-image .hover-image {

  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0; /* On cache l'élément via son opacité */
  transition: opacity 0.25s ease-in-out; /* Effet de transition sur le hover */
  background-color: rgba(0,30,117,0.6); /* Couleur par défaut */
  color: white;
  padding: 30px;
  align-items: left;
  flex-direction: column;

}

.overlay-image:hover .hover-image {
  opacity: 1; /* Lors du hover, on remet l'opacité à 1 */
}

figcaption p{
font-family: 'Mayenne';
position: absolute;
bottom: 0;
font-size: 150%;
color: #fff;
}

a .imgprojet{
  text-decoration: none;
  color:#fff;
}


/*TEXTE BAS DE PAGE*/
#texte{
  margin-top: 150px;
  width: 100%;
  text-align: center;
  padding-bottom: 100px;
}

#texte p {
  font-family: 'Asap',sans-serif;
  line-height: 55px;
  font-size: 220%;
    color:#001e75;
}

#texte a{
  text-decoration: none;
}





@media screen and (max-width: 1200px) {
  body {
  }

  #hello{
    margin-top: 60px;
  }

  /*TITRE*/

  .title{margin-left: 5%;}

  .title h1{
    font-family: 'Mayenne';
    font-weight: bold;
    font-style: normal;
    font-size: 100%;
    color: #001e75;
    mix-blend-mode: difference;
    position: fixed;
  z-index: 1;
  margin-top: -25px;
  }

  .title h1 a:hover{
  color: #FFFFFF;
    text-shadow: #001e75 1px 1px 1px, #001e75 -1px 1px 1px, #001e75 -1px -1px 1px,#001e75 1px -1px 1px;
    text-decoration: none;}

  h2{font-family: 'Mayenne';
      font-weight: bold;
      font-style: normal;
      font-size: 100%;
      color: #001e75;}

    p#accroche{
    color:#001e75;
    font-size: 100%;
    font-family: 'Asap',sans-serif;font-style:italic;
margin-top: 0px;
    }




    @media screen and (max-width: 980px) {

      .bigbox{
        display: none;
      }

    h2{
    display: none;}

      .nav{
        right: 0;
      width: 100%;
      padding-top: 1.5vh;
      padding-bottom: 2vh;
      bottom:0;
      float: right;
      margin-right: 4%;
      position:fixed;
      z-index: 40;
      background-color: #ffffff
    }

      .nav  li a {
      text-decoration: none;
      font-size: 3vh;
      font-family: 'Mayenne';
      color: #282829;
      padding-left: 4px;
        padding-right: 4px;
    z-index: 40;}


        .nav  ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-content: flex-start;
        z-index: 40;
      }

      .nav  li{
        display: inline;
        list-style: none;

        z-index: 40;
      }


      .nav a:hover{
      color: #ffffff;
        background: #282829;
        padding-left: 4px;
          padding-right: 4px;
          z-index: 40;
      }
  /*NAVIGATION MENU*/
  .nav{
    width: 100%;
        background-color: #ffffff;
        position: fixed;
        bottom: 0;
        z-index: 1;
  }

.nav{
  width: 100%;
    background-color: #ffffff;
    position: fixed;
    bottom: 0;
    z-index: 1;}

  .nav ul{
 z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    position: relative;
    width: 100%;
  }

  .nav ul li {
      display: inline;
      font-family: 'Asap',sans-serif;

  }
  .nav a{
  font-size: 100%;
  color: #001e75;

  }

  /*PORJETS*/
  #projet{
    max-width: 1800px;
padding-left: 0;

        padding-top: 5vw;
      margin: 0 auto;
  }

  #projet ul{
    display: grid;
    grid-template-columns: repeat(1,minmax(0,1fr));
    grid-column-gap: 25px;
    grid-row-gap: 21px;
    grid-auto-rows: min-content;
  list-style-type: none;
  }

  #projet li{
  width: 100%;
  }

  #projet img{
    width: 100%;
  }


  /*OVERLAY IMG/TITRE*/
  .overlay-image {
    position: relative; /* Important pour positionner le contenu par dessus, relatif à l'élément */
    display: inline-block; /* Prendra la forme de son contenu */
  }

  .overlay-image img {
    vertical-align: middle;
  }

  .overlay-image .hover-image {

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0; /* On cache l'élément via son opacité */
    transition: opacity 0.25s ease-in-out; /* Effet de transition sur le hover */
    background-color: rgba(0,30,117,0.6); /* Couleur par défaut */
    color: white;
    padding: 30px;
    align-items: left;
    flex-direction: column;

  }

  .overlay-image:hover .hover-image {
    opacity: 1; /* Lors du hover, on remet l'opacité à 1 */
  }

  figcaption p{
  font-family: 'Mayenne';
  position: absolute;
  bottom: 0;
  font-size: 150%;
  color: #fff;
  }

  a .imgprojet{
    text-decoration: none;
    color:#fff;
  }


  /*TEXTE BAS DE PAGE*/
  #texte{
    display: none;
  }
