@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
:root {
  --color-primary: #5F543A;
  --color-n0: #5F543A;
  --color-n1: #8a8169;
  --color-n2: #C3BCAC;
  --color-n3: #DDD9D0;
  --color-n4: #EEECE7;
  --color-n5: #F7F4F1;
  --font-family-base: Inter, sans-serif;
  --size-h0: 2.985984rem;
  --size-h1: 2.48832rem;
  --size-h2: 2.0736rem;
  --size-h3: 1.728rem;
  --size-h4: 1.44rem;
  --size-h5: 1.2rem;
  --size-h6: 1rem;
  --size-base: 1rem;
  --size-small: 0.9375rem;
  --size-xsmall: 0.875rem;
  --weight-regular: 300;
  --weight-bold: 600;
  --line-height-base: 1.5;
  --line-height-heading: 1.1;
  --border-radius: 0.25rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family-base);
  font-size: var(--size-small);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  text-transform: lowercase;
  color: var(--color-n0);
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  font-weight: var(--weight-regular);
}

h1 {
  font-size: var(--size-h3);
}

h2 {
  font-size: var(--size-h4);
}

h3 {
  font-size: var(--size-h5);
}

h4 {
  font-size: var(--size-h6);
}

h5 {
  font-size: var(--size-h6);
}

h6 {
  font-size: var(--size-h6);
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-n0);
  text-decoration: none;
}
a:has(svg) {
  line-height: 0;
  display: inline-block;
}

button, input, select, textarea {
  font-family: var(--font-family-base);
  font-size: var(--size-base);
  line-height: var(--line-height-base);
  color: var(--color-n0);
  background: none;
  border: 0;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.preserve-case {
  text-transform: none;
}

.uppercase {
  text-transform: uppercase;
}

.icon {
  display: inline-block;
  width: 2em;
  height: 2em;
  fill: currentColor;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.logo h1 {
  font-size: var(--size-h3);
  color: var(--color-n0);
  line-height: 1;
}
.logo h2 {
  font-size: var(--size-h6);
  color: var(--color-n1);
}
.logo .pictogram {
  width: 30px;
  height: 42px;
}
.logo a {
  color: var(--color-n0);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-secondary {
  background-color: var(--color-n4);
  color: var(--color-n0);
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-n3);
}

.site-footer {
  padding: 1rem 5%;
  border-top: 1px solid var(--color-n2);
  background-color: var(--color-n4);
  margin-top: 20%;
  font-size: var(--size-xsmall);
  text-align: center;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home .site-header {
  display: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-n4);
}

.logo {
  margin: 5vh auto;
}

.intro {
  width: 100%;
  max-width: 992px;
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .intro {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.emotions-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: calc(10vh + 70px);
  overflow: hidden;
  margin-top: 3vh;
  border-top: 1px solid var(--color-n3);
}
.emotions-slider .emotion-slide {
  position: absolute;
  display: flex;
  align-items: center;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  opacity: 0;
  animation: slideInOut 15s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  white-space: nowrap;
}
.emotions-slider .emotion-slide:nth-child(1) {
  animation-delay: 0s;
}
.emotions-slider .emotion-slide:nth-child(2) {
  animation-delay: 2.5s;
}
.emotions-slider .emotion-slide:nth-child(3) {
  animation-delay: 5s;
}
.emotions-slider .emotion-slide:nth-child(4) {
  animation-delay: 7.5s;
}
.emotions-slider .emotion-slide:nth-child(5) {
  animation-delay: 10s;
}
.emotions-slider .emotion-slide:nth-child(6) {
  animation-delay: 12.5s;
}
.emotions-slider .emotion-slide svg {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin-right: 10px;
}
.emotions-slider .emotion-slide .emotion-name {
  font-size: var(--size-h3);
  opacity: 1;
  transform: none;
}
@media screen and (min-width: 768px) {
  .emotions-slider {
    border-top: none;
  }
  .emotions-slider .emotion-slide svg {
    width: 60px;
    height: 60px;
  }
  .emotions-slider .emotion-slide .emotion-name {
    font-size: var(--size-h2);
  }
}

.intro-text {
  margin: 0 auto;
  text-align: center;
  padding: 0 5%;
}
.intro-text h2 {
  margin-bottom: 0.75rem;
}
.intro-text p {
  margin-bottom: 1rem;
}

.boxed {
  max-width: 992px;
  margin: 0 auto;
}

.auth-container {
  width: 100%;
  margin: 5vh auto;
  text-align: center;
}
.auth-container h2 {
  margin-bottom: 1.5rem;
  color: var(--color-n0);
}

.oauth-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.oauth-buttons .btn {
  display: flex;
  align-items: center;
  text-transform: none;
  line-height: 1;
  min-width: fit-content;
  max-width: max-content;
  border: 1px solid var(--color-n2);
  background-color: var(--color-n5);
  transition: background-color 0.3s ease;
  color: var(--color-n0);
}
.oauth-buttons .btn:hover {
  background-color: var(--color-n4);
}
.oauth-buttons .btn svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}
@media screen and (min-width: 768px) {
  .oauth-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.features {
  width: 100%;
  margin: 5vh auto;
  padding: 0 1rem;
}
.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-n0);
}
.features .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media screen and (min-width: 768px) {
  .features .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.features .feature-item {
  border-radius: 0.25rem;
  padding: 1.5rem;
  text-align: center;
  background-color: var(--color-n4);
}
.features .feature-item h3 {
  color: var(--color-n0);
  margin-bottom: 0.5rem;
  font-size: var(--size-h5);
}
.features .feature-item p {
  text-transform: none;
}

@keyframes slideInOut {
  0%, 100% {
    left: 110%;
    opacity: 0;
    filter: blur(0);
  }
  3%, 16% {
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    filter: blur(0);
    animation-timing-function: ease-in-out;
  }
  16.5% {
    left: 45%;
    opacity: 0.95;
    filter: blur(1px);
    animation-timing-function: ease-out;
  }
  17% {
    left: 35%;
    opacity: 0.8;
    filter: blur(2px);
    animation-timing-function: ease-out;
  }
  17.5% {
    left: 20%;
    opacity: 0.6;
    filter: blur(3px);
    animation-timing-function: ease-out;
  }
  18% {
    left: 0%;
    opacity: 0.3;
    filter: blur(5px);
    animation-timing-function: ease-out;
  }
  18.5% {
    left: -20%;
    opacity: 0;
    filter: blur(8px);
  }
  19%, 99% {
    left: -30%;
    opacity: 0;
    filter: blur(8px);
  }
}