@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  color: hsl(236, 100%, 87%);
  font-optical-sizing: auto;
  background-color: hsl(226, 43%, 10%);
  font-size: 1rem;
}

.activity-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 70%;
}
@media (min-width: 1024px) {
  .activity-cards {
    grid-column: 2/5;
    grid-row: 1/3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    width: 90%;
  }
}
.activity-cards .activity {
  margin-bottom: -2rem;
}
.activity-cards .activity__img {
  overflow: hidden;
  margin: 2rem 0 -3rem 0;
  height: 5rem;
  padding: 2rem;
  border-radius: 0.5rem 0.5rem 0 0;
  width: 100%;
  position: relative;
}
.activity-cards .activity__img--icon {
  position: absolute;
  top: 0;
  right: 1rem;
  width: 3rem;
}
.activity-cards .activity__details {
  background-color: hsl(235, 46%, 20%);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: -2rem;
  z-index: 2;
  position: relative;
  width: 100%;
  height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.activity-cards .activity__details:hover {
  cursor: pointer;
  background-color: rgb(87.72, 71.4, 234.6);
}
@media (min-width: 1024px) {
  .activity-cards .activity__details {
    padding: 2rem;
    height: 10rem;
  }
}
.activity-cards .activity__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.activity-cards .activity__header--img {
  width: auto;
  height: 0.3rem;
}
.activity-cards .activity__stats {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.activity-cards .activity__stats--values {
  font-size: 2rem;
  font-weight: 300;
}
.activity-cards .activity__stats--span {
  font-size: 0.7rem;
  color: rgba(188.7, 193.12, 255, 0.5);
  margin-top: 0.9rem;
}
@media (min-width: 1024px) {
  .activity-cards .activity__stats {
    flex-direction: column;
  }
  .activity-cards .activity__stats--values {
    font-size: 2.5rem;
  }
  .activity-cards .activity__stats--span {
    font-size: 0.8rem;
  }
}
@media (min-width: 1024px) {
  .activity-cards .activity__img--icon {
    width: 3.5rem;
  }
}

/* Couleur de fond pour chaque activité */
.activity.work .activity__img {
  background-color: hsl(15, 100%, 70%);
}

.activity.play .activity__img {
  background-color: hsl(195, 74%, 62%);
}

.activity.study .activity__img {
  background-color: hsl(348, 100%, 68%);
}

.activity.exercise .activity__img {
  background-color: hsl(145, 58%, 55%);
}

.activity.social .activity__img {
  background-color: hsl(264, 64%, 52%);
}

.activity.self-care .activity__img {
  background-color: hsl(43, 84%, 65%);
}

.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 3rem;
}
.attribution a {
  color: hsl(195, 74%, 62%);
  text-decoration: none;
}
.attribution a:hover {
  color: hsl(348, 100%, 68%);
  text-decoration: underline;
}

/*style class user*/
.user {
  margin-top: 2rem;
  background-color: hsl(246, 80%, 60%);
  padding: 2rem;
  border-radius: 1rem;
  width: 70%;
  z-index: 2;
  /*Ecran a dessus de 1024px*/
}
.user__photo {
  width: 30%;
  height: 30%;
  border: 0.2rem solid hsl(236, 100%, 87%);
  border-radius: 50%;
  float: left;
  margin-right: 1rem;
}
.user__label {
  font-size: 0.8rem;
  color: rgba(188.7, 193.12, 255, 0.7);
}
.user__name {
  font-size: 4vw;
}
@media (min-width: 1024px) {
  .user {
    grid-column: 1/2;
    grid-row: 1/2;
    height: 19rem;
    margin: 7rem 0 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .user__photo {
    width: 5rem;
    height: 5rem;
  }
  .user__label {
    margin-top: 1.5rem;
    font-size: 1rem;
  }
  .user__name {
    font-size: 3vw;
    font-weight: 100;
  }
}

.timeframes {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background-color: hsl(235, 46%, 20%);
  padding: 2rem;
  border-radius: 0 0 1rem 1rem;
  width: 70%;
  margin-top: -1rem;
  z-index: 1;
}
.timeframes__button {
  background-color: hsl(235, 46%, 20%);
  border: none;
  cursor: pointer;
  width: 45%;
  color: rgba(188.7, 193.12, 255, 0.4);
  font-size: 3vw;
}
.timeframes__button:hover {
  color: hsl(236, 100%, 87%);
}
.timeframes__button.active {
  color: hsl(236, 100%, 87%);
}
@media (min-width: 1024px) {
  .timeframes {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    grid-column: 1/2;
    grid-row: 2/3;
    margin: -3rem 0 0 6rem;
    height: 9rem;
  }
  .timeframes__button {
    align-self: flex-start;
    width: auto;
    font-size: 1.3vw;
  }
}

/*style class container*/
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .container {
    display: grid;
    grid-template-columns: 20rem repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
  }
}

/*# sourceMappingURL=style.css.map */
