@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic");

body {
  background-color: var(--tertiaryDark);
}
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lora", serif;
  scroll-behavior: smooth;
  user-select: none;
}
html {
  font-size: 100%;
  width: 100dvw;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  font-weight: bold;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100dvw;
  background-color: var(--tertiaryDark);
  padding: 1rem;
  position: fixed;
  z-index: 5;
}
#header h1 {
  color: var(--secondary);
  font-size: 3rem;
}
.subtitle {
  color: var(--primary);
  font-size: 1rem;
  padding: 0 1rem;
}
.header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#header nav a {
  color: var(--bgLight);
}

/* Main */

#main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  max-width: 1900px;
  margin: auto;
  padding: 2rem;
}

#main .thumb {
  overflow: hidden;
  position: relative;
  width: 390px;
  -moz-transition-delay: 2.525s;
  -webkit-transition-delay: 2.525s;
  -ms-transition-delay: 2.525s;
  transition-delay: 2.525s;
  height: calc(40vh - 2em);
  min-height: 20rem;
}

#main .thumb:after {
  background-image: -moz-linear-gradient(
    to top,
    rgba(10, 17, 25, 0.35) 5%,
    rgba(10, 17, 25, 0) 35%
  );
  background-image: -webkit-linear-gradient(
    to top,
    rgba(10, 17, 25, 0.35) 5%,
    rgba(10, 17, 25, 0) 35%
  );
  background-image: -ms-linear-gradient(
    to top,
    rgba(10, 17, 25, 0.35) 5%,
    rgba(10, 17, 25, 0) 35%
  );
  background-image: linear-gradient(
    to top,
    rgba(10, 17, 25, 0.35) 5%,
    rgba(10, 17, 25, 0) 35%
  );
  pointer-events: none;
  background-size: cover;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

#main .thumb > .image {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}
#main .thumb > .image img {
  width: 95%;
  height: 60%;
  object-fit: cover;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, 0);
}
#main .thumb > .image img:hover {
  width: 90%;
  height: 90%;
  transform: scale(2) translate(-25%, 0);
  transition: 3s;
  z-index: 3;
  object-fit: contain;
}

h2 {
  width: 60%;
  text-align: center;
  pointer-events: none;
  bottom: 1.9rem;
  font-size: 1rem;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0.4rem;
  color: var(--primary);
  background-color: var(--tertiary);
}

#main .thumb div {
  width: 80%;
  height: 40px;
  text-align: center;
  font-size: 0.8rem;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondaryLow);
  margin: 0;
  display: flex;
  align-items: end;
}
#main .thumb div p {
  margin: 0;
  width: 100%;
  text-align: center;
  padding-bottom: 0.5rem;
}

/* ajouts		 */
.icon::after {
  content: "\000020 \01F697";
}
.me::after {
  content: "1";
  font-size: 0.8rem;
  font-weight: bold;
  width: 1rem;
  height: 1rem;
  line-height: 0.9rem;
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  background-color: #a4c7c1;
  border-radius: 50%;
  color: red;
}
.template::after {
  content: "2";
  font-size: 0.8rem;
  font-weight: bold;
  width: 1rem;
  height: 1rem;
  line-height: 0.9rem;
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  background-color: #a4c7c1;
  border-radius: 50%;
  color: red;
}
.notes {
  display: flex;
  width: 100%;
  justify-content: end;
  gap: 2rem;
  position: absolute;
  top: 0.5rem;
  right: 0;
  transform: translateX(-2%);
}
.notes p.note {
  color: var(--primaryLow);
  margin: 0;
}
.note-me,
.note-template {
  font-size: 0.6rem;
  font-weight: bold;
  padding: 0 0.3rem;
  background-color: var(--secondaryLow);
  border-radius: 50%;
  color: var(--secondaryDark);
}
.nav a {
  padding: 1rem;
}

/* responsive */

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

@media screen and (max-width: 850px) {
  #main .thumb {
    width: 300px;
  }
}
@media screen and (max-width: 1280px) {
  .header-nav {
    display: none;
  }
}

@media screen and (max-width: 670px) {
  #main .thumb {
    overflow: hidden;
    position: relative;
    width: 500px;
    -moz-transition-delay: 2.525s;
    -webkit-transition-delay: 2.525s;
    -ms-transition-delay: 2.525s;
    transition-delay: 2.525s;
    /* height: calc(40vh - 2rem); */
    min-height: 50dvh;
  }
}
@media screen and (max-width: 580px) {
  .nav {
    position: absolute;
    right: 0;
    bottom: 0;
  }
}
@media screen and (max-width: 450px) {
  #header h1 {
    font-size: 2.5rem;
    padding-top: 1rem;
  }
  #header p {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
  }
  .notes {
    gap: 1rem;
    transform: scale(0.7);
  }
}
