@import "./normalize.css";
@import "./fonts.css";

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 1em;
  line-height: 1.5;
  overflow-y: auto;
}

body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  height: calc(100vh - 80px);
  color: #ffffff;
  background-color: #191e1e;
  text-align: center;
}

body::after,
body::before {
  content: "";
  position: absolute;
  border: 0.5px solid #5f6969;
}
body::before {
  top: 0;
  right: 24px;
  bottom: 0;
  left: 24px;
  border-top: none;
  border-bottom: none;
}
body::after {
  top: 24px;
  right: 0;
  bottom: 24px;
  left: 0;
  border-left: none;
  border-right: none;
}

main {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.logo {
  display: none;
}

h1 {
  display: inline-block;
  margin: 0 0 16px;
  color: #ceff8f;
  font-family: "season", "neue", "Helvetica Neue", "SF Pro Display", "Segoe UI",
    "Arial", sans-serif;
  font-size: 2em;
  letter-spacing: -0.036em;
  font-weight: normal;
}

p {
  margin: 0;
  font-family: "neue", "Helvetica", "Verdana", "Arial", sans-serif;
  font-size: 1em;
  line-height: 1.4;
  letter-spacing: -0.028em;
  color: #cdcdcd;
  font-weight: normal;
}

.button {
  position: relative;
  display: inline-flex;
  padding: 12px 16px;
  margin-top: 32px;
  border-radius: 4px;
  border-width: 1px;
  border: 1px solid #ceff8f;
  background-color: #ceff8f;
  color: #191e1e;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "neue", "Helvetica", "Verdana", "Arial", sans-serif;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  white-space: normal;
  outline: none;
}

/* Coins supérieurs (top-left et top-right) */
.button::before,
.button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #ceff8f;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.button::before {
  left: -8px;
  top: -8px;
  border-bottom: none;
  border-right: none;
}

.button::after {
  right: -8px;
  top: -8px;
  border-bottom: none;
  border-left: none;
}

.button:hover::before,
.button:hover::after,
.button:focus::before,
.button:focus::after {
  opacity: 1;
}

.button__content {
  position: relative;
  display: inline-flex;
  white-space: normal;
  z-index: 1;
}

/* Coins inférieurs (bottom-left et bottom-right) */
.button__content::before,
.button__content::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid #ceff8f;
  opacity: 0;
  transition: opacity 0.2s ease;
  bottom: calc(-8px - 12px);
}

.button__content::before {
  left: calc(-8px - 16px);
  border-top: none;
  border-right: none;
}

.button__content::after {
  right: calc(-8px - 16px);
  border-top: none;
  border-left: none;
}

.button:hover .button__content::before,
.button:hover .button__content::after,
.button:focus .button__content::before,
.button:focus .button__content::after {
  opacity: 1;
}

@media (min-width: 961px) {
  body::before {
    right: 40px;
    left: 40px;
  }
  body::after {
    top: 40px;
    bottom: 40px;
  }
  main::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/noise-min.png");
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
  }
  .logo {
    display: block;
    max-width: 100%;
    margin: 0 auto 80px;
  }
  h1 {
    font-size: 3.25em;
  }
  .button {
    margin-top: 40px;
  }
}
