/* =====================================
   FONTS
   ===================================== */
@font-face {
  font-family: "GT Pressura Mono";
  src:
    url("fonts/GTPressuraMono.woff2") format("woff2"),
    url("fonts/GTPressuraMono.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GT Pressura Mono";
  src:
    url("fonts/GTPressuraMono-Light.woff2") format("woff2"),
    url("fonts/GTPressuraMono-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* =====================================
   RESET & BASE
   ===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Les variables de couleur sont maintenant définies dynamiquement
   via le snippet dynamic-colors.php depuis le backoffice Kirby */

html {
  font-size: 16px;
}

body {
  font-family: "GT Pressura Mono", monospace;
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: fadeIn 0.4s ease-in forwards;
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--color-yellow);
}

::selection {
  background-color: var(--color-yellow);
  color: var(--color-gray);
}

::-moz-selection {
  background-color: var(--color-yellow);
  color: var(--color-gray);
}

/* =====================================
   PAGE
   ===================================== */
.page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* =====================================
   BUTTON (BEM)
   ===================================== */
.button {
  display: inline-block;
  padding: 0.25rem 1.6rem 0.3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.275rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-weight: 400;
  min-width: 11.5rem;
}

.button:hover{
  color: var(--color-black)
}

.button--yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.button--yellow:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.button--gray {
  background-color: var(--color-gray);
  color: var(--color-yellow);
}

.button--gray:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =====================================
   BUTTON FIXED (BEM)
   ===================================== */
.button-fixed {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.button-fixed--top {
  top: 0;
}

.button-fixed--bottom {
  bottom: 0;
}

.button-fixed--double {
  gap: 1.5rem;
}

/* =====================================
   HOME (BEM)
   ===================================== */
.home {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.home__image {
  justify-content: center;
  width: 100%;
  display: flex;
}

.home__image img {
  width: 500px;
  max-width: 100%;
  height: auto;
}

/* =====================================
   LEARN MORE (BEM)
   ===================================== */
.learn-more {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.learn-more__image {
  display: flex;
  justify-content: center;
}

.learn-more__image img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.learn-more__text {
  font-size: 1.825rem;
  line-height: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  margin-top: .6rem;
}

.learn-more__text p {
  margin-bottom: 0;
}

/* =====================================
   CONTACT (BEM)
   ===================================== */

.contact {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.contact__image {
  display: flex;
  justify-content: center;
}

.contact__image img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.contact__text {
  font-size: 1.825rem;
  line-height: 2rem;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  margin-top: .6rem;
}

.contact__text p {
  margin-bottom: 0;
}

/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 768px) {
  .page {
    padding: 1rem;
  }

  .home__image img,
  .learn-more__image img,
  .contact__image img {
    max-width: 350px;
  }

  .home__text,
  .learn-more__text,
  .contact__text {
    font-size: 1rem;
  }

  .button {
    padding: 0.65rem 2rem;
    font-size: 0.8rem;
  }

  .button-fixed {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .home__image img,
  .learn-more__image img,
  .contact__image img {
    max-width: 100%;
  }

  .contact__image img {
  display: none;
  }

  .home__text,
  .learn-more__text,
  .contact__text {
    font-size: 1.45rem;
    line-height: 1.40rem;
    text-align: left;
    width: 100%;
  }

  .contact__text a{
    display: block;
  }
  .contact__text br{
    display: none;
  }

  .button {
    padding: 0.5rem 1.2rem;
    font-size: 1.05rem;
  }

  .button-fixed {
    padding: 2rem;
  }

  .button-fixed--double {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}
