@import url("./modules/fonts.css");
@import url("./modules/vars.css");
@import url("./modules/basics.css");
@import url("./modules/template-categories.css");
@import url("./modules/template-rubriques.css");
@import url("./modules/mobile.css");

/* ----ACCUEIL---- */
#home-body {
  background-image: url("img/bandeau.png");
  background-position: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--bg-colour);
  height: calc(100vh - 10vh);
  padding: 5vh 10vh;
  display: grid;
  grid-template-columns: min-content;
  grid-template-rows: repeat(3, minmax(min-content, 100px));
  row-gap: 4vh;
}

#home-header {
  grid-column: 1/2;
  grid-row: 1;

  img {
    width: 95%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}

#home-main {
  display: grid;
  grid-template-columns: repeat(8, minmax(50px, 1fr));
  grid-template-rows: repeat(2, minmax(100px, 1fr));
  width: calc(100vw - 20vh);
  height: min-content;
  grid-row: 2;
  row-gap: 4vh;
  column-gap: 4vh;

  #duras,
  #mobile-message {
    background-color: #f9ddccc0;
    box-shadow: 2px 3px 8px rgba(50, 30, 44, 0.5);
    padding: 2vh;
    border-radius: 5px;
    align-self: start;
  }
}

#duras {
  width: max-content;
  padding-top: 10vh;
}

#lilas {
  grid-row: 2;
  grid-column: 1/6;
  text-align: center;
  justify-content: end;
  align-self: end !important;
  font-style: italic;
  padding: 10px 0;
}

#home-nav {
  grid-row: 1/3;
  grid-column: 6/8;
  justify-self: end;
  align-self: end !important;
}

#mastodon {
  width: 1.1rem;
}

#mobile-message {
  display: none;
}

/* ----ABOUT---- */
body#about {
  padding-bottom: 2vh;
  height: fit-content;
  overflow-y: scroll;
}

#about-page {
  display: grid;
  justify-content: start;
  height: fit-content;
  grid-template-columns: repeat(3, max-content 56vh 56vh);
  grid-template-rows: repeat(1, minmax(max-content, 1fr));
  gap: 12vh;
}

#infos {
  display: flex;
  justify-content: center;
  align-items: center;
}

#medaillon {
  width: 30vh;
  margin-top: -5vh;
}

#bio {
  grid-column: 2/3;

  p {
    margin-bottom: 1vh;
  }
}

#IA {
  font-weight: bold;
  margin-bottom: 1vh;
}

.IA-info {
  font-size: .8rem;
}

#more-infos {
  margin-top: 2.3rem;

  img {
    margin-top: .8vh;
    width: 20%;
  }
}

#contact {
  margin-top: 8.5rem;
}

/* ---- ECRIT ---- */
#commons {
  margin-top: 2vh;
}

.details {
  font-size: 0.8rem;
  margin-top: .5vh;

  &:has(i) {
    font-size: .75rem;
  }
}

#ccLicense {
  min-width: 70px;
  height: auto;
  float: right;
  margin-top: -2vh;
}