html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Press Start 2P', monospace;
  background-color: #1b1b1b;
  color: #fff;
  image-rendering: pixelated;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  background-color: #2c2c2c;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 2px solid #444;
  position: relative;
  font-family: 'Press Start 2P', monospace;
}

/*Titres*/
.bitcount-grid-single-title {
  font-family: "Bitcount Grid Single", system-ui;
  font-optical-sizing: auto;
  font-weight: 400px ;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "CRSV" 0.5,
    "ELSH" 0,
    "ELXP" 0;
}



/*-------------*/



.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  width: 100px;
  height: 100px;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-right {
  justify-content: end;
}

a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}


main {
  flex: 1;
  padding: 4rem 2rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.7rem;
  color: #999;
}

.button {
  line-height: 1;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.75em 1em;
  padding-right: 1.25em;
  color: #fff;
  border: 1px solid transparent;
  font-weight: 700;
  border-radius: 2em;
  font-size: 1rem;
  box-shadow: 0 0.7em 1.5em -0.5em hsla(249, 62%, 51%, 0.745);
  transition: transform 0.3s;

  background: linear-gradient(
    90deg,
    rgba(77, 54, 208, 1) 0%,
    rgba(132, 116, 254, 1) 100%
  );
}

.button__icon {
  width: 1.5em;
  height: 1.5em;
}

.button:hover {
  border-color: #f4f5f2;
}

.button:active {
  transform: scale(0.98);
  box-shadow: 0 0.5em 1.5em -0.5em hsla(249, 62%, 51%, 0.745);
}


.one-button {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.one-button:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.one-button:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

.three-button {
  margin-top: 250px;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background: linear-gradient(270deg, rgba(14,14,26,1) 0%, rgba(14,14,26,1) 100%);
  background-size: 200%;
  background-position: left;
  color: rgb(234, 234, 234);
  font-weight: 700;
  transition:
    background-position 1s ease,
    color 1s ease,
    box-shadow 1s ease,
    transform 0.2s ease;
  -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.4));
  position: relative;
  overflow: hidden;
}

.three-button:hover {
  background: linear-gradient(270deg, rgba(2, 29, 78, 0.681) 0%, rgba(31, 215, 232, 0.873) 60%);
  background-size: 200%;
  background-position: right;
  color: rgb(4, 4, 38);
  box-shadow: 0 0 20px rgba(31, 215, 232, 0.6), 0 0 40px rgba(31, 215, 232, 0.4);
}

.three-button:active {
  transform: scale(0.92);
}

.three-button a {
  display: block;
  position: absolute;
  inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
  text-align: center;
  line-height: 90%; /* tu peux adapter ça selon la hauteur du bouton */
  text-decoration: none;
  color: white;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  z-index: 1;
}

.three-button span {
  position: relative;
  z-index: 2;
  background: white;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 15px;
  margin-top: 70px;
}

/*Titre mid page*/
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Cursor */
.cursor{
    position: relative;
    width: 24em;
    margin-left: 0px;
    margin-top: 100px;
    color: black;
    border-right: 2px solid rgba(0, 0, 0, 0.75);
    font-size: 26px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);    
}
/* Animation */
.typewriter-animation {
  animation: 
    typewriter 5s steps(50) 1s 1 normal both, 
    blinkingCursor 500ms steps(50) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 96%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(34, 34, 34, 0.75); }
  to { border-right-color: transparent; }
}

/*Dialog card*/

.dcard {
  --border-radius: 0.75rem;
  --primary-color: #7257fa;
  --secondary-color: #3c3852;
  width: 600px;
  margin-left: 40px;
  margin-top: 100px;
  font-family: 'Anonymous Pro', monospace;
  padding: 1rem;
  padding-bottom: 3.5rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  background: #f1f1f3;
  box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 3%);
  position: relative;
}

.dcard > * + * {
  margin-top: 0.6em;
}

.dcard .dcard__content {
  color: var(--secondary-color);
  font-size: 25px;
  font-family: 'Anonymous Pro', monospace;
  color: black;
}

.dcard .dcard__title {
  padding: 0;
  font-size: 1.3rem;
  font-weight: bold;
}

.dcard .dcard__date {
  color: #6e6b80;
  font-size: 0.8rem;
}

.dcard .dcard__arrow {
  position: absolute;
  background: var(--primary-color);
  padding: 0.4rem;
  border-top-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  bottom: 0;
  right: 0;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dcard svg {
  transition: 0.2s;
}

/* hover */
.dcard:hover .dcard__title {
  color: var(--primary-color);
  text-decoration: underline;
}

.dcard:hover .dcard__arrow {
  background: #111;
}

.dcard:hover .dcard__arrow svg {
  transform: translateX(3px);
}

/*dialog messages*/

.carre {
  width: fit-content;
  height: fit-content;
  background-color: #f1f1f3;
  display: flex;
  flex-direction: column;
  align-items: center ;
  justify-content: center;
  padding: 1rem;
  border-radius: 30px;
}

.carre .title,.content {
  text-align: left;
  margin-left: 0;
  color: black;
}

.carre .title {
  font-size: 26px;
}