﻿body {
  font-family: Arial, sans-serif;
  background-color: #f3f3f3;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer {
  background-color: #002868;
  color: white;
}

header {
  position: relative;
  padding: 12px 20px;
}

h1 {
  margin: 0;
}
.menu-button {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-button:hover,
.menu-button:focus {
  background: rgba(255,255,255,0.18);
}
.language-button {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.language-button:hover,
.language-button:focus {
  background: rgba(255,255,255,0.18);
}

.season-jump {
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid #c8d1e0;
  border-radius: 6px;
  background: #fff;
  color: #002868;
  font-weight: bold;
}

.season-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.last-updated {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

h2 {
  color: #002868;
  margin: 0;
}

main {
  flex: 1;
}

.season-row {
  position: relative;
  margin-top: 10px;
}

.season-row .season-selector {
  margin-top: 0;
}

.season-selector, .language-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.language-switch {
  gap: 10px;
  flex-wrap: wrap;
}

.language-switch a, .year-grid a, .home-links a {
  color: #002868;
  background: #fff;
  border: 1px solid #c8d1e0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.language-switch a {
  padding: 7px 10px;
}

.arrow {
  font-size: 32px;
  color: #002868;
  text-decoration: none;
  transition: opacity 0.3s;
  user-select: none;
}

.arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.intro {
  max-width: 960px;
  margin: 12px auto 0;
  padding: 0 16px;
  color: #222;
  line-height: 1.45;
}

.seo-summary {
  max-width: 900px;
  margin: 2px auto 10px;
  padding: 0 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

.playoff-stage {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 90%;
  margin: 10px auto 4px;
  line-height: 0;
}

img#playoff-image {
  display: block;
  width: auto;
  max-width: 100%;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin: 0;
}

.home-panel {
  max-width: 960px;
  margin: 20px auto 28px;
  padding: 0 16px;
}

.home-panel h2 {
  margin-bottom: 12px;
}

.year-grid, .home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.home-links {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.year-grid a, .home-links a {
  display: block;
  padding: 10px 8px;
}

.year-grid a:hover, .year-grid a[aria-current="page"],
.language-switch a:hover, .language-switch a[aria-current="page"],
.home-links a:hover {
  background: #002868;
  color: #fff;
}

footer {
  font-size: 14px;
  padding: 10px 15px;
  text-align: center;
  margin-top: auto;
  line-height: 1.5;
}

#sponsor-box {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 2px solid #002868;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 400px;
  text-align: center;
  line-height: normal;
  z-index: 1500;
  visibility: hidden;
}

body.sponsor-ready #sponsor-box {
  visibility: visible;
}

#sponsor-box img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

#sponsor-box p {
  display: block;
  font-size: 15px;
  color: #002868;
  font-weight: bold;
  margin: 0;
  line-height: 1.35;
}

#close-sponsor {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: #002868;
  font-size: 18px;
  cursor: pointer;
}

#close-sponsor:hover {
  color: red;
}

#compteur-hotspot {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  z-index: 9999;
  pointer-events: auto;
}

#compteur-visites {
  position: fixed;
  right: 10px;
  bottom: 55px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10000;
  transform-origin: bottom right;
}

#compteur-hotspot:hover + #compteur-visites,
#compteur-visites:hover {
  opacity: 0.88;
  pointer-events: auto;
}

#compteur-visites img {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 48px;
}

@media (max-width: 700px) {
  header {
    padding: 10px 48px;
  }

  .language-button {
    right: 10px;
    min-width: 36px;
    height: 34px;
    padding: 0 9px;
  }

  h1 {
    font-size: 24px;
  }

  .menu-button {
    left: 10px;
    width: 34px;
    height: 34px;
  }

  .season-selector {
    gap: 14px;
    flex-wrap: wrap;
  }

  .last-updated {
    position: static;
    transform: none;
    flex-basis: 100%;
    order: -1;
  }

  .arrow {
    font-size: 28px;
  }

  #sponsor-box {
    position: static;
    transform: none;
    margin: 12px auto;
    max-width: calc(100% - 48px);
  }
}
