@charset "UTF-8";
@import "./base.css";
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
body {
  font-family: "Manrope", sans-serif;
  background-color: hsl(210, 46%, 95%);
  color: hsl(217, 19%, 35%);
  font-size: 13px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  height: 45vh;
  width: 55vw;
}

.container > img {
  width: 40%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: left;
     object-position: left;
}

.description {
  padding: 3em;
}

.description > p {
  line-height: 1.6em;
  font-size: 1vw;
}

h1 {
  font-size: 1.5vw;
  font-weight: 700;
  line-height: 1.3em;
  margin-bottom: 0.8em;
}

h2 {
  font-size: 1vw;
  font-weight: 500;
}

.publisher {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  line-height: 1.8em;
}

.date {
  color: hsl(212, 23%, 69%);
  font-size: 2vh;
}

.drawers {
  border-radius: 10px 0 0 10px;
  width: 65%;
}

.avatar {
  border-radius: 50%;
  margin-right: 1em;
  height: 6vh;
  width: 6vh;
}

i {
  background-color: hsl(210, 46%, 95%);
  color: hsl(214, 17%, 51%);
  padding: 0.5em;
  align-content: center;
  border-radius: 50%;
  font-size: 1.2em;
  height: 3vh;
  width: 3vh;
  cursor: pointer;
  transition: 0.3s ease;
}
i:hover {
  background-color: hsl(214, 17%, 51%);
  color: white;
}

i::before {
  display: flex;
  align-content: center;
  justify-content: center;
}

span {
  flex-direction: row;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 2em;
  line-height: 1.5em;
  position: relative;
}

.share-content {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: hsl(217, 19%, 35%);
  padding: 0.8em 1.3em;
  border-radius: 5px;
  height: 15%;
  width: 37%;
  justify-content: space-around;
  position: absolute;
  top: -80%; /* Aligne verticalement avec #share-button */
  left: 51%; /* Ajustez cette valeur pour centrer horizontalement si nécessaire */
  transform: translateX(50%);
}
.share-content::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 13px solid hsl(217, 19%, 35%);
  z-index: -1;
}

.share-content.active {
  display: flex;
  opacity: 1;
}

.share-content > p {
  font-weight: 100;
  font-size: 0.6vw;
  letter-spacing: 0.5em;
  margin-right: 0.5em;
  color: white;
}

.share-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 1em;
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    height: 85vh;
    width: 90vw;
  }
  .container .share-content {
    width: 100%;
    height: 100%;
  }
  .description > p {
    font-size: 3.63vw;
  }
  h1 {
    font-size: 4.4vw;
  }
  h2 {
    font-size: 3vw;
  }
  .avatar {
    height: 7vh;
    width: 7vh;
  }
  .drawers {
    border-radius: 10px 10px 0 0;
  }
  .container > img {
    width: 100%;
    height: 35vh;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
  }
  .container > img .share-content {
    width: 100%;
  }
  .share-content {
    transform: translateX(-50%);
    height: 150%;
  }
  .share-content::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
  .share-content p {
    font-size: 3vw;
    letter-spacing: 0.2em;
  }
  .share-content img {
    width: 3vh;
    height: 3vh;
  }
  .share-content.active {
    width: 115%;
    opacity: 1;
    top: 0px;
    border-radius: 0 0 10px 10px;
  }
}/*# sourceMappingURL=style.css.map */