/*@import url("https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap");*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');

:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: 'Roboto', sans-serif;
  color: white;
  --color-btn: #013710;
}

.footerperso {
  display: block;
  padding: 5%;
  background-color: #333;
}

.expos,
.legal,
.bio {
  font-size: 1.1em;
  margin-left: 5%;
  max-width: 50%;
  color: white;
}

.expos a {
  text-decoration: underline;
}

.legal a {
  text-decoration: underline;
}

.bio a {
  text-decoration: underline;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  background-color: black;
  background-size: cover;
  place-items: center;
}

a {
  text-decoration: none;
  color: white;
}

a :hover :active {
  color: white;
}

.page-content {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 3000px;
  margin: 0 auto;
  font-family: var(--font-sans);
  z-index: 100;

}


@media (min-width: 600px) {
  .page-content {
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(3, 1fr);

  }
}

@media (min-width: 600px) {
  .cardInfos {
    height: 350px;
  }
}

@media (min-width: 800px) {
  .page-content {
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(3, 1fr);
  }

  .cardInfos {
    height: 15vw;
  }

  .title {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0.1em 0.1em 0.2em black;
    line-height: 1.0;
  }
}

.cardInfos {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: white;
  background-color: rgba(245, 245, 245, 0);
}


.cardInfos:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
  border-radius: 15px;
}

.cardInfos:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 00%;
  pointer-events: none;
}

a:nth-child(1) .cardInfos:before {
  background-image: url(./img/minibio.jpg);
}

a:nth-child(2) .cardInfos:before {
  background-image: url(./img/expos.jpg);
}

a:nth-child(3) .cardInfos:before {
  background-image: url(./img/legal.png);
}



.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
  transition: transform var(--d) var(--e);
  z-index: 1;
}

.content>*+* {
  margin-top: 1rem;
}

.title {
  font-size: 1.8rem;
  /*font-weight: bold;*/
  line-height: 1.2;
}

.copy {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: bold;
  font-style: italic;
  text-shadow: 0.1em 0.1em 0.2em black;
  line-height: 1.35;

}

.btn {
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  text-shadow: 0.1em 0.1em 0.2em black;
  /*font-weight: bold;*/
  letter-spacing: 0.025rem;
  /*text-transform: uppercase;*/
  color: white;
  background-color: transparent;
  border: none;

}



.btn:hover {
  background-color: transparent;
}

.btn:focus {
  outline: 1px;
  outline-offset: 0px;
}

@media (hover: hover) and (min-width: 600px) {
  .cardInfos:after {
    transform: translateY(0);
  }

  .content {
    transform: translateY(calc(100% - 4.5rem));
  }

  .content>*:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }

  .cardInfos:hover,
  .cardInfos:focus-within {
    align-items: center;
  }

  .cardInfos:hover:before,
  .cardInfos:focus-within:before {
    transform: translateY(0%);
  }

  .cardInfos:hover:after,
  .cardInfos:focus-within:after {
    transform: translateY(-50%);
  }

  .cardInfos:hover .content,
  .cardInfos:focus-within .content {
    transform: translateY(0);
  }

  .cardInfos:hover .content>*:not(.title),
  .cardInfos:focus-within .content>*:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }

  .cardInfos:focus-within:before,
  .cardInfos:focus-within:after,
  .cardInfos:focus-within .content,
  .cardInfos:focus-within .content>*:not(.title) {
    transition-duration: 0s;
  }
}

/* image titre */

header {
  display: flex;
  height: calc(25vh - 5vw);
  justify-content: center;
  align-items: center;
}

.lettres {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 2vw;
  font-weight: normal;
  letter-spacing: 0.2em;
}

.titre {
  margin-top: 2vh;
  position: absolute;
  height: 100%;
  text-align: center;
  text-shadow: 0.1em 0.1em 0.2em black;
  transform: translate(-50%, -6vh);
  color: #f1f1f1;
  z-index: 3;
}

.lettres-comment {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5vw;
  font-weight: normal;
  letter-spacing: 0.2em;
}

.banniere::after {
  content: "";
  background: black;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 1;
}