/*reset*/
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100;300;400;500;700;900&display=swap');

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

body {
  font-size: 1.6rem;
  font-family: 'Encode Sans', sans-serif;
  margin: 0;
  font-weight: 500;
  background-color: #191c1f;
  text-transform: capitalize;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
section {
  margin: 0;
  padding: 0;
  list-style: none;
}

a,
button {
  text-decoration: none;
  padding: 0;
  border: 0;
}

img {
  display: inline-block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

* {
  box-sizing: border-box;
}

:root {
  --color-defaut: #222;
  --color-primary: #e8f3e8;
  --color-secondary: #12816b;
  --color-tertiaire: #12816b;
  --color-defaut: #975102;
  --color-header: #0a3409;
}

/* scroll bars */
* {
  /* For FF and non-webkit browsers */
  scrollbar-width: thin;
  scrollbar-color: #222 #333;
}

*::-webkit-scrollbar {
  width: 0.2rem;
}

*::-webkit-scrollbar-thumb {
  background-color: #222;
  outline: 0.1rem solid #333;
}

/*theme*/
header {
  padding: 1rem;
  margin: 1rem auto;
  color: #ffffff;
}

header h1 {
  text-align: center;
  font-size: 5rem;
  color: #fff;
  text-shadow:
    #fff 0px 0px 2px,
    #fff 0px 0px 6px,
    #fff 0px 0px 10px,
    var(--color-tertiaire) 0px 0px 20px,
    var(--color-tertiaire) 0px 0px 30px,
    var(--color-tertiaire) 0px 0px 40px,
    var(--color-tertiaire) 0px 0px 50px,
    var(--color-tertiaire) 0px 0px 75px;
  /*     text-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px var(--color-tertiaire), 0 0 30px var(--color-tertiaire), 0 0 40px var(--color-tertiaire), 0 0 55px var(--color-tertiaire), 0 0 75px var(--color-tertiaire);
 */
  color: #ffffff;
}

header img {
  display: inline-block;
  max-width: 9rem;
  transform: translateY(-0.5rem);
  vertical-align: middle;
  padding-right: 3rem;
}

main {
  display: flex;
  margin: 0 auto;
  padding: 2rem 0 2rem 0rem;
  align-items: flex-start;
}

main h3 {
  padding: 3rem 3rem;
  text-align: center;
  font-size: 3rem;
  color: #fff;
  transition: all 1s ease-in-out;
}

main h3:hover {
  letter-spacing: 0.3rem;
  text-shadow:
    0.3rem 0.3rem 0 #202d3a,
    0.5rem 0.5rem 0 #18212b;
}

main section h2 {
  text-align: center;
  font-size: 3rem;
  color: #fff;
}

main figure p a {
  background-color: #bdc3c7;
  padding: 0.5rem 4rem;
  color: #000;
  font-size: 2rem;
  border-radius: 1.5rem;
  border: solid 0.3rem #fff;
}

main figure {
  padding: 2rem;
  margin: 1rem auto;
  display: flex;

  justify-content: space-around;
  border-radius: 1rem;
}

main figure figcaption {
  display: none;
}

main figure img:hover figcaption {
  display: block;
  background-color: #fff;
}

main figure img {
  margin: 0rem auto;
  display: block;
  max-width: 50rem;
  object-fit: contain;
  border-radius: 0.75rem;
  align-items: center;
  box-shadow: 0rem 0rem 3rem rgb(0, 0, 0);
}

main ul {
  padding: 2rem;
  margin: 1rem auto;
  display: flex;
  justify-content: space-around;
  border-radius: 0.75rem;
  flex-wrap: wrap;
}

main ul li {
  margin: 1rem auto;
}

main ul li img {
  margin: 0rem auto;
  display: block;
  max-height: 50vh;
  max-width: 70rem;
  border-radius: 0.75rem;
  align-items: center;
  box-shadow: 0rem 0rem 2rem rgb(0, 0, 0);
}

main section p {
  text-align: center;
}

/*up*/
main .up {
  position: fixed;
  max-width: 4.5rem;
  padding: 1rem;
  max-height: 4.5rem;
  bottom: 2rem;
  right: 2rem;
  background-color: #fafafa;
  border-radius: 0.75rem;
  box-shadow: 0 0 0.5rem rgba(47, 47, 47, 0.725);
  border: solid 0.2rem rgb(0, 0, 0);
  transform: rotate(180deg);
}

/* Footer */
footer .contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.5rem;
}

footer {
  color: #fff;
  background-color: #111;
  padding: 1rem;
  border-top: solid 0.5rem rgba(0, 0, 0, 0.37);
}

footer ul {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

footer .tel img,
footer .mail img,
footer .cv img,
footer .link a:nth-child(1) img {
  filter: invert(1);
}

footer ul:first-child,
footer ul:nth-child(2) {
  border-right: solid 0.3rem rgb(255, 255, 255);
}

footer ul:last-child {
  border-left: solid 0.3rem rgb(255, 255, 255);
}

footer ul li {
  align-items: center;
}

footer ul li a img {
  display: inline-block;
  max-width: 5rem;
  vertical-align: middle;
  margin-right: 1rem;
}

footer ul li a {
  color: #fff;
  font-size: 2rem;
  text-align: center;
}

footer p {
  padding: 1rem;
  font-size: 1.6rem;
  text-align: start;
}

@media screen and (max-width: 75rem) {
  main {
    margin: 0rem auto;
  }

  main img {
    max-width: 100%;
  }

  main a {
    padding-left: 1rem;
    padding-bottom: 2rem;
  }

  main section h2 {
    padding-top: 0;
    padding-left: 0;
  }

  main h3 {
    font-size: 2.2rem;
  }

  main h3:hover {
    letter-spacing: 0;
    text-shadow: 0;
  }

  header h1:hover {
    letter-spacing: 0;
    text-shadow: 0;
  }

  main section #picture {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 auto;
  }

  nav ul {
    width: auto;
    margin: 0;
    margin-bottom: 0.1rem;
  }

  .caté {
    grid-template-columns: repeat(1, 1fr);
  }

  footer .contact {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  footer ul li a img {
    display: inline-block;
    vertical-align: middle;
    max-width: 3.5rem;
  }

  footer ul {
    padding: 1rem;
  }

  footer .ico {
    margin: 1rem;
  }

  footer ul:first-child {
    border-right: none;
  }

  footer ul:last-child {
    border-left: none;
  }

  footer ul li a {
    display: inline-block;
    vertical-align: middle;
  }

  main .up {
    position: fixed;
    max-width: 4rem;
    padding: 1rem;
    max-height: 4rem;
    bottom: 2rem;
    right: 2rem;
    background-color: #fafafa;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.5rem rgba(47, 47, 47, 0.725);
    border: solid 0.2rem #111;
    transform: rotate(180deg);
  }

  /* menu of */
  nav {
    position: relative;
    z-index: -1;
    height: 0;
    margin-bottom: 1rem;
    transition: all 500ms ease-in-out;
  }

  /* menu on */
  .open-menu {
    z-index: 1;
    height: 22.5rem;
  }

  nav ul li {
    display: block;
    width: auto;
    text-align: center;
  }

  nav ul li a {
    padding-left: 1rem;
  }

  header h1 .material-icons {
    display: inline-block;
    padding-right: 2rem;
  }
}
