html {
  font-size: 10px;
}

body {
  font-family: 'Noto Serif Display', serif;
  font-variant: no-common-ligatures proportional-nums;
  color: whitesmoke;
  line-height: 2;
  font-weight: 300;
  background-color: #a5a192;
}

h1 h2 {
  letter-spacing: 0.3rem;
  font-weight: bold;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.5rem;
}

h4 {
  font-size: 2rem;
}

a {
  color: whitesmoke;
}

/*------------------------------------------------------------ HEADER ------------------------------------------------------------*/
header {
  display: grid;
  grid-template-columns: 25% auto 25%;
  grid-template-rows: 25% auto;
  background-color:  #858275;
  font-size: 2rem;
}

header > a {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start:1;
  grid-row-end: 2;
  z-index: 1;
  justify-self: center;
  margin: 1.7rem 1rem 1rem 1rem;
}

header > h1 {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
  z-index: 1;
  justify-self: center;
  margin: 0.9rem 1rem 1rem 1rem;

}

header > nav {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 2;
  z-index: 1;
  justify-self: center;
  margin: 1.7rem 1rem 1rem 1rem;
}

header > img {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 3;
  z-index: 0;
  max-width: 100%;
  height: auto;
}

.menu-deroulant {
  position: relative; 
}

.menu-deroulant > p {
  position: relative; 
  left: 40%;
}

.menu-deroulant > p:after{
  content: '❯';
  margin-left: 1rem;
  display: inline-block;
}

@keyframes rotationFleche {

  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(45deg);
  }

  100%{
    transform: rotate(90deg);
  }

}

.menu-deroulant:hover > p:after{
  animation: rotationFleche 0.2s linear forwards;
}

.sous-menu {
  overflow: hidden;
  max-height: 0;
}

.menu-deroulant:hover > .sous-menu {
  animation: apparitionSousMenu 6s forwards;
}

@keyframes apparitionSousMenu {

  0% {
    max-height: 0;
  }

  100% {
    max-height: 50em;
  }
  
}

.sous-menu > li:hover {
  background-color: rgba(121, 119, 103, 0.3);
}

.sous-menu a {
  justify-content: center;
  display: flex;
  padding : 2rem;
  text-align: center;
}

.fleche {
  position: absolute;
  z-index: 2;
  margin: 53% 0 0 50%;
  width: 3.2rem;
  height: 2rem;
  background-color: whitesmoke;
  clip-path: polygon(100% 0, 0 0, 50% 100%);
  animation-duration: 2.5s;
  animation-iteration-count: infinite;
  animation-name: chuteFleche;
}

@keyframes chuteFleche {

  0% {
    transform: translateY(-100%);
  }

  20% {
    transform: translateY(0%);
  }

  80% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(-100%);
  }

}

/*------------------------------------------------------------ MAIN ------------------------------------------------------------*/
main > h3 {
  margin: -3.5% 0 0 60%;
  line-height: 1.3;
  letter-spacing: 0.4rem;
  position: relative;
  font-size: 2.6rem;
}

article {
  padding: 10% 0 0 0;
  margin: auto;
  width: 80%;
} 

article p {
  font-size: 1.5rem;
}

/*--------------- Articles "Présentation" ---------------*/
.presentation {
  display: grid;
  grid-template-rows: 7%  auto;
}

.presentation > P {
  grid-column-start: 2;
  grid-column-end:3;
  grid-row-start: 2;
  grid-row-end: 3;
  justify-self: center;
  letter-spacing: 0.1rem;
  text-align: center;
}

.presentation h2 {
  justify-self: end;
  margin-bottom: 2%;
}

.enSavoirPlus, .enSavoirPlus2 {
  display: none;
}

/*--------------- Articles "Mes conceptions et réalisations" ---------------*/
.conceptions > h2 {
  text-align: end;
  margin-bottom: 2%;
}

.gallery {
  justify-content: space-between;
  display: flex;
  overflow-x : scroll;
  margin-left: -12%;
  margin-right: -12%;
  align-items: center;
}

.imageGallery {
  max-width: 52rem;
  max-height: 40rem;
  margin-right: 5rem;
  opacity: 0.7;
  cursor: pointer;
}


/*--------------- Modal dans l'article "Mes conceptions et réalisations" ---------------*/
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2; /* Sit on top */
  padding-top: 7rem; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  opacity: 1;
  max-width: 120rem;
}

/* Add Animation */
.modal-content, .modal-caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.4s;
  animation-name: zoom;
  animation-duration: 0.4s;
}

@-webkit-keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 3.5rem;
  color: #f1f1f1;
  font-size: 4rem;
  font-weight: bold;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/*--------------- Articles "Mes engagements" ---------------*/

.engagements >h2 {
  text-align: start;
  margin-bottom: 2%;
}

.engagements > ul {
  justify-content: space-between;
  display: flex;
  font-size: 1.8rem;
  font-weight: 200;
  height: 20rem;
}

.engagements > ul > li {
  text-align: center;
  width: 17%;
}

.engagements > ul > li > p {
  font-size: 1.4rem;
}

.engagements > ul > li >img {
  padding: 5%;
  height: 45%;
  width: auto;
}

/*--------------- Articles "Mon partenaire" ---------------*/
.partenaires {
  display: grid;
  grid-template-rows: 7% auto;
  grid-template-columns: 20% 20% 10% auto 10%;
}
  
.partenaires > h2 {
  grid-column: 5/5;
  grid-row: 1/1;
  justify-self: end;
}

.partenaires > h4 {
  grid-column: 2/5;
  grid-row: 2/2;
  justify-self: center;
}

.partenaires > img {
  grid-column: 1/3;
  grid-row: 2/2;
  height: 21rem;
}

.partenaires > p {
  grid-column: 2/5;
  grid-row: 2/2;
  align-self: center;
  justify-self: center;
  text-align: center;
  color: #52514f;
}


/*------------------------------------------------------------ FOOTER ------------------------------------------------------------*/
footer {
  display: grid;
  grid-template-columns: 25% auto 25%;
  grid-template-rows: auto auto;
  font-size: 1.9rem;
  background: linear-gradient(#a5a192,#52514f );
  padding-top: 10%;
  margin-top: 5%;
  padding-bottom: 1%;
}

footer a, footer h2, footer h4 {
  justify-self: center;
  align-self: center;
}

footer a:first-child {
  grid-row: 1/1;
  grid-column: 2/2;
}

footer a:first-child img {
  width: 3.5rem;
}

footer a:nth-child(2) {
  grid-row: 2/2;
  grid-column: 1/1;
}

footer h2 {
  grid-row: 2/2;
  grid-column: 2/2;
}

footer h4 {
  grid-row: 2/2;
  grid-column: 3/3;
}
