:root {
  --color-bg: #0A0A1F;
  --color-header: #000000;
  --color-accent: #A5CFE7;
  --color-accent-hover: #7EC9F3;
  --color-text: #FFFFFF;
  --color-text-muted: #B0B8C1;
  --color-border: #1E2C3A;
  --norsen-font: 'Space Grotesk', sans-serif;
  --live-banner-height: 40px; /* ou la vraie hauteur de ton popup */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) #111;
}

html, body {
  scroll-behavior: smooth;
  height: 100%;
  font-family: var(--norsen-font);
  line-height: 1.6;
}

body {
  background-color: #0f0f0f;
  background-repeat: repeat;
  background-size: 400px;
  color: var(--color-text);
  margin-top: 10em;
}

.content{
  text-align: center;
}

#Logo {
    height: 50px;
}

.topbar {
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 1001;
}

.live-match-banner{
    width: 100%;
    background-color: #C00C0C;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-size: var(--norsen-font);
    font-weight: bolder;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    animation: pulse-bg 2.5s infinite ease-in-out;
    line-height: normal;
    text-align: center;
}

#live-banner{
  display: none;
}

.live-pulse a, #live-name a {
  text-decoration: none;
}

.Menu{
    width: 100%;
    padding: 0.5em 5em;
    display: inline-flex;
    justify-content: center;
    background-color: var(--color-header);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border-bottom: solid 1px var(--color-border);
}

.Menu ul{
    align-content: space-evenly;
    padding: 1em 3em;
}

.Menu ul li{
    display: inline-block;
}

.menu-button{
  position: relative;
  font-weight: bolder;
  color: var(--color-text);
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  font-size: 15px;
  border-radius: 6px;
  padding: 0px 16px;
  cursor: pointer;
  font-family: var(--norsen-font);
  transition: color 0.3s ease-in-out;
}

.menu-button::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-text);
  transform: translateX(-50%);
  transition: width 0.3s ease-in-out;
}

.menu-button:hover::after {
  width: 100%;
}


.live-pulse {
  animation: pulse-text 1.2s infinite ease-in-out;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}

@keyframes pulse-bg {
  0%, 100% { background-color: #570000; }
  50% { background-color: #ff3e3e; }
}

.footer {
  background-color: var(--color-header);
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  color: var(--color-accent-hover);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #111;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-accent);
  border-radius: 5px;
  border: 2px solid #111;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #fff;
}

.session-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  border-radius: 8px;
  background-color: #333;
  color: white;
  font-weight: bold;
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.session-alert.success {
  background-color: #28a745;
}

.session-alert.error {
  background-color: #dc3545;
}

.session-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}


/* === MENU RESPONSIVE === */
@media (max-width: 998px) {

  .Menu {
    padding: 0.5em 1em;
  }

  .Menu ul{
    padding: 0px;
  }

  .menu-button {
    min-width: 6em;
    line-height: normal;
    padding: 8px 10px;
    font-size: 14px;
  }

  .menu-button::after {
  bottom: -3px;
  }

  .content{
    margin: 12em 2em;
  }
}