@import "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";
@import "title.css";
@import "backgrounds.css";
@import "components/header.css";
@import "components/footer.css";
@import "components/select.css";
@import "components/button.css";
@import "sections/hero.css";
@import "sections/presentation.css";
@import "sections/projects.css";
@import "sections/skills.css";
@import "pages/bts-sio.css";
@import "pages/projets.css";

:root {
  --background-color: #ecfdf5;
  --border-color: #10b981;
  --text-color: #064e3b;

  --button-hover-color: #a7f3d0;
  --button-active-color: #6ee7b7;

  --standard-background-color: #ECFDF5;
  --standard-border-color: #10b981;
  --standard-text-color: #064E3B;
  --standard-hover-color: #A7F3D0;
  --standard-active-color: var(--standard-active-color);
}

@font-face {
  font-family: "Adwaita Sans";
  src: url("/fonts/AdwaitaSans-Regular.ttf");
}

@font-face {
  font-family: "Adwaita Sans";
  src: url("/fonts/AdwaitaSans-Italic.ttf");
  font-style: italic;
}

@font-face {
  font-family: "Adwaita Mono";
  src: url("/fonts/AdwaitaMono-Regular.ttf");
}

@font-face {
  font-family: "Adwaita Mono";
  src: url("/fonts/AdwaitaMono-Italic.ttf");
  font-style: italic;
}

@font-face {
  font-family: "Adwaita Mono";
  src: url("/fonts/AdwaitaMono-Bold.ttf");
  font-weight: bold;
}

@font-face {
  font-family: "Adwaita Mono";
  src: url("/fonts/AdwaitaMono-BoldItalic.ttf");
  font-style: italic;
  font-weight: bold;
}

body {
  font-family: "Inter", sans-serif;
  font-style: normal;

  background-color: var(--background-color);
  color: var(--text-color);

  margin: 0 auto;
}

input,
select,
textarea,
option {
  font-family: "Inter", sans-serif;
}

* {
  box-sizing: content-box;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

.tz-input,
.tz-textarea {
  width: 100%;
  padding: .5rem 1rem;
  box-sizing: border-box;
  margin-top: 8px;
  margin-bottom: 8px;
  outline: none;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 16px;
  background-color: transparent;
  border: 2px solid var(--border-color);
}


.tz-textarea {
  resize: vertical;
}

.tz-code-block {
  display: block;
  background-color: white;
  color: black;
  border: 2px solid var(--border-color);
  padding: 8px 16px;
  margin: 0;
}

.tz-center-element {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tz-cursor-blinking {
  animation: cursor-blinking-animation 500ms steps(1) infinite;
}

.tz-chips {
  padding: 8px 24px;
  border: 2px solid var(--standard-border-color);
  background-color: var(--standard-background-color);
  font-size: 16px;
  font-family: "Adwaita Sans";
  border-radius: 50px;
  cursor: pointer;
  font-weight: 400;

  display: inline-block;
  word-break: keep-all;

  transition: 50ms;

  &:hover {
    background-color: var(--standard-hover-color);
  }

  &:active {
    background-color: var(--standard-border-color);
    color: white;
  }
}

.tz-selected-chips {
  padding: 8px 24px;
  border: 1px solid var(--standard-border-color);
  background-color: var(--standard-border-color);
  color: var(--standard-background-color);
  color: white;
  font-size: 16px;
  font-family: "Adwaita Sans";
  border-radius: 50px;
  cursor: default;
  display: inline-block;
  word-break: keep-all;
  font-weight: 700;
}

@keyframes cursor-blinking-animation {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

::-webkit-scrollbar {
  background-color: var(--background-color);
  cursor: default;
}

::-webkit-scrollbar-thumb {
  background-color: #a7f3d0;
  cursor: default;
}

::selection {
  background-color: #a7f3d0;
}

.tz-timelines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media only screen and (max-width : 768px) {
  .tz-timelines-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

.tz-blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tz-blog-item,
.tz-project-item {
  border: 2px solid var(--standard-border-color);
  cursor: pointer;
  transition: 50ms;

  box-shadow: 0 0 0 var(--standard-border-color);

  &:hover {
    box-shadow: 16px 16px 0 var(--standard-border-color);
    opacity: 0.9;
  }

  &:active {
    box-shadow: 16px 16px 0 var(--standard-border-color);
    background-color: var(--standard-border-color);
    color: var(--standard-background-color);
  }
}

.tz-blog-item::after {
  padding-left: 5px;
  background-image: url("/images/background-diagonal-lines.svg");
  background-size: cover;
}

.tz-project-item {
  aspect-ratio: 16 / 9;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

@media only screen and (max-width : 768px) {
  .tz-blogs-grid {
    grid-template-columns: 1fr;
  }
}

.tz-back-button {
  transition: 100ms ease-in-out;

  &:hover {
    padding-right: 16px;
  }

  &:active {
    opacity: 0.5;
  }
}

article>p,
li {
  line-height: 175%;
}

article {
  box-sizing: content-box;

  & p img {
    width: 100%;
  }

  &>h1 {
    font-size: 48px;
    margin: 0;
    font-weight: 800;
    font-optical-sizing: auto;
  }

  &>h2 {
    font-weight: 800;
    font-size: 42px;
    margin: 0;
  }

  &>h3 {
    font-weight: 800;
    font-size: 36px;
    margin: 0;
  }

  &>h4 {
    font-weight: 800;
    font-size: 30px;
    margin: 0;
  }

  &>hr {
    border: none;
    border-bottom: 1px solid var(--text-color);
  }

  &>p>img {
    display: block;
    object-fit: cover;
  }

  & a {
    text-decoration: underline;

    &:hover {
      font-weight: 500;
      opacity: 0.7;
    }

    &:active {
      opacity: 0.5;
    }
  }

  &>p>code {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    box-shadow: 2px 2px 0 var(--border-color);
    word-break: keep-all;
  }

  &>blockquote {
    margin-left: 0;
    margin-bottom: 4px;
    padding: 2px 24px;
    border-left: 2px solid var(--border-color);
    font-style: italic;
  }

  & p,
  li,
  a,
  pre {
    font-size: large;
  }

  & code {
    line-height: 1.7;
  }
}

.tz-rss-button {
  background-color: #FFF7ED;
  border: 2px solid #9A3412;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 16px;
  transition: 50ms;

  &:hover {
    background-color: #FED7AA;
  }

  &:active {
    background-color: #9A3412;
    opacity: 80%;
    
    & path {
      fill: white;
    }
  }
}

.tz-table {
  border-collapse: collapse;
  border: 2px solid var(--border-color);
  width: 100%;

  & th,
  & td {
    border: 2px solid var(--border-color);
    padding: 8px;
  }

  & td {
    text-align: start;
  }
}