header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 2rem auto;
  padding: clamp(18px, 4vw, 36px) var(--gutter-inline) 0 var(--gutter-inline);
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.header-card {
  position: relative;
  width: 100%;
  /* max-width: 680px; */
  margin: 0 auto 36px auto;
  aspect-ratio: 2/1.1;
  border-radius: var(--radius);
  /* overflow: hidden; */
  /* box-shadow: 6px 6px var(--accent-red);
  border: 2px solid var(--bg-color3);
  background: #ffffff; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-bg {
  position: absolute;
  inset: 0;
  /* background-image:
    url('../../images/bg_gradient.png'); */
    /* background: var(--bg-color4); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(7px);
}

.header-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.header-layer {
  --layers: 3;
  --blur: calc(sin(((var(--layers) - var(--index)) / var(--layers)) * 90deg) * 8);
  --stop: calc(sin(((var(--index)) / var(--layers)) * 90deg) * 20);
  position: absolute;
  inset: 0;
  background: hsl(0 0% 60% / 0.03);
  mask: radial-gradient(180% 160% at 45% 90%, #fff 10%, #0000 calc((10 + var(--stop)) * 1%));
}

.header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 34px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-family: var(--fontMono);
  font-size: clamp(2.2rem, 8vw, 5.4rem);
  font-weight: 900;
  color: #ff5656;
  letter-spacing: 0.09em;
  line-height: 0.96;
  text-shadow:
    4px 4px 0 #000000;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  user-select: none;
  transition: text-shadow .2s;
  translate: calc(var(--x, 0) * -18px) calc(var(--y, 0) * -10px);
}

.header-separator {
  width: 35ch;
  max-width: 95%;
  height: 3px;
  margin: 1.5em 0 0.5rem;
  background: var(--bg-color3);
  border-radius: var(--radius);
  /* box-shadow: 0 1.5px 6px #0003; */
  opacity: 0.96;
}

.header-infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* gap: 0.5em; */
  color: var(--text-color2);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.header-infos a {
  color: var(--accent-red);
  text-decoration: none;
  /* font-style: italic; */
  font-weight: 700;
  margin-left: 4px;
  transition: color 0.2s;
}
.header-infos a:hover{
  color: #ff0000;
  text-decoration: underline;
}


.typed-text {
  color: var(--text-color2);
  font-size: 1em;
  margin: 0.2em 0 0.1em 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 1.4em;
}

.header-infos i {
  color: #ff0000;
  font-size: 1.08em;
}

.header-infos .alternant-tag {
  margin-top: 0.7em;
}


.alternant-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .98rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #f6fff6;
  color: #000;
  border: 2px solid var(--accent-green);
  padding: 5px 15px;
  border-radius: var(--radius);
  box-shadow: 2.5px 2.5px 0 var(--accent-green);
  margin-block: 7px 12px;
}

.alternant-tag .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00ff15;
  box-shadow: 0 0 7px #00ff15;
  animation: blink 0.4s infinite alternate;
}

@keyframes blink {
  from {
    opacity: 1;
  }

  to {
    opacity: .3;
  }
}

/* Mobile responsive */
@media (max-width: 700px) {
  .header-card {
    max-width: 98vw;
    min-width: 0;
    border-radius: var(--radius);
    aspect-ratio: 2/1.2;
    margin-bottom: 24px;
  }

  .header-content {
    padding: 14px 0 12px;
  }

  .header-title {
    font-size: clamp(1.8rem, 9vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .header-separator {
    width: 80%;
    margin: 1em 0 0.5rem;
  }

  .header-infos {
    font-size: clamp(1rem, 2vw, 1.1rem);
    gap: 0.4em;
  }

  .alternant-tag {
    font-size: 0.9rem;
    padding: 4px 12px;
    margin-block: 6px 10px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: clamp(12px, 5vw, 20px) var(--gutter-inline);
  }

  .header-card {
    aspect-ratio: 2/1.3;
    /* box-shadow: 0 4px 24px #0002, 4px 4px 0 #000; */
  }

  .header-content {
    padding: 10px 0 8px;
  }

  .header-title {
    font-size: clamp(1.5rem, 10vw, 2.2rem);
    text-shadow:
      0 2px 0 #000,
      2px 2px 0 #000000,
      0 6px 12px #0004;
  }

  .header-separator {
    height: 2px;
    margin: 0.8em 0;
  }

  .header-infos {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  .typed-text {
    font-size: 0.95em;
    min-height: 1.2em;
  }

  .alternant-tag {
    display: block;
    width: fit-content;
    padding: 3px 10px;
    border-width: 1.5px;
    box-shadow: 2px 2px 0 var(--accent-green);
  }
}

/* NAVIGATION ------------------------- */
.left-side-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(3px);
  z-index: 99;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.left-side-nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.left-side-nav li {
  margin: 0;
  padding: 0;
  flex: 1 1 0;
}

.left-side-nav a {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: var(--bg-color4);
  color: var(--text-color);
  box-shadow: 3px 3px var(--accent-red);
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s, background .22s;
  border-bottom: 2.5px solid transparent;
}

.left-side-nav a.active,
.left-side-nav a:hover {
  color: var(--bg-color);
  background: var(--accent-red);
}

.left-side-nav a:active {
  filter: brightness(0.96);
}

@media (max-width: 700px) {
  .left-side-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100vw;
    background: rgba(255,252,237,0.98);
    border-radius: 0;
    border-top: 1.5px solid #eee;
    box-shadow: 0 -2px 12px #0001;
    padding: 0;
    z-index: 9999;
  }
  .left-side-nav ul {
    gap: 0;
    padding: 0;
  }
  .left-side-nav li {
    flex: 1 1 0;
  }
  .left-side-nav a {
    padding: 12px 0 10px 0;
    font-size: 1rem;
    border-radius: 0;
    box-shadow: none;
    border-bottom: none;
    border-top: 2.5px solid transparent;
    background: none;
    color: #222;
    transition: color .19s, background .18s, border-top .18s;
  }
  .left-side-nav a.active,
  .left-side-nav a:hover {
    color: var(--accent-red);
    background: none;
    border-top: 2.5px solid var(--accent-red);
  }
}

@media (max-width: 480px) {
  .left-side-nav {
    font-size: 0.97rem;
  }
  .left-side-nav a {
    font-size: 0.92rem;
    padding: 10px 0 8px 0;
  }
}