:root {
  --blue: #0d54b7;
  --blue-deep: #06367b;
  --yellow: #ffe04c;
  --yellow-soft: #fff6b8;
  --paper: #f7f4ed;
  --paper-soft: rgba(255, 255, 255, 0.82);
  --ink: #0f2145;
  --ink-soft: #45618f;
  --line: rgba(15, 33, 69, 0.14);
  --shadow: 0 28px 70px rgba(6, 54, 123, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 224, 76, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(13, 84, 183, 0.22), transparent 34%),
    linear-gradient(180deg, #eef4ff 0%, #f4f6fb 24%, #f7f4ed 100%);
  padding: 22px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(to right, var(--blue) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blue) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 88%);
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
}

.hero {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 720px;
  background:
    linear-gradient(135deg, rgba(6, 54, 123, 0.12), rgba(13, 84, 183, 0.08)),
    var(--paper);
}

.hero-banner {
  position: relative;
  min-height: 360px;
  background:
    url("../images/bandeau.JPG") center 36%/contain no-repeat,
    #004aad;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 237, 0.96));
}

.banner-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 34px;
  color: white;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 224, 76, 0.22);
  color: var(--yellow-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.banner-copy h1,
.title,
.mini-card strong,
.logo-mark strong {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.banner-copy h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 0.9;
  margin: 18px 0 14px;
  text-wrap: balance;
}

.banner-copy p {
  margin: 0;
  max-width: 48ch;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.content-card {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border-radius: 30px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(15, 33, 69, 0.12);
  padding: 30px;
  transform: translateY(-36px);
}

.brand-block {
  display: grid;
  gap: 8px;
}

.brand-kicker {
  margin: 0;
  color: var(--blue);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.logo-mark strong {
  display: block;
  font-size: 1.9rem;
  line-height: 0.95;
  color: var(--blue-deep);
}

.logo-mark span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(13, 84, 183, 0.16), rgba(255, 224, 76, 0.8), rgba(13, 84, 183, 0.16));
  margin: 26px 0;
}

.message-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.title {
  margin: 0 0 14px;
  font-size: clamp(2.45rem, 6.1vw, 4.15rem);
  line-height: 0.92;
  color: var(--ink);
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.75;
  max-width: 56ch;
}

.status {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 224, 76, 0.18);
  color: var(--blue-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 76, 0.4);
}

.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 224, 76, 0.18);
}

.mini-panel {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(13, 84, 183, 0.98), rgba(6, 54, 123, 0.98));
  color: white;
  position: relative;
  overflow: hidden;
}

.mini-panel-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-panel-link:hover .mini-panel,
.mini-panel-link:focus-visible .mini-panel {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(6, 54, 123, 0.16);
}

.mini-panel-link .mini-panel {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tournaments-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 100%;
}

.tournaments-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tournaments-logo {
  width: 72px;
  height: 72px;
}

.tournaments-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tournaments-kicker {
  margin: 0 0 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.tournaments-header h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.tournaments-feed {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.tournament-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
  font-size: 1.05rem;
}

.tournaments-scroller {
  width: 100%;
  height: 180px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
}

.tournaments-track {
  display: grid;
  gap: 12px;
  animation: tournaments-scroll 18s linear infinite;
}

.tournaments-feed:hover .tournaments-track {
  animation-play-state: paused;
}

.tournament-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tournament-date {
  color: var(--yellow-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tournament-name {
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

@keyframes tournaments-scroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.mini-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 76, 0.28), transparent 70%);
}

.mini-panel p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.mini-panel a {
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.mini-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mini-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 84, 183, 0.1);
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-card-link:hover .mini-card,
.mini-card-link:focus-visible .mini-card {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(6, 54, 123, 0.12);
  border-color: rgba(13, 84, 183, 0.22);
}

.mini-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 0.95;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.mini-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

footer {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

footer a {
  color: inherit;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .content-card {
    transform: translateY(-24px);
  }

  .message-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .banner-copy h1 {
    font-size: 2.25rem;
  }

  .title,
  .tournaments-header h2 {
    font-size: 1.55rem;
  }

  .hero {
    border-radius: 24px;
  }

  .hero-banner {
    min-height: 300px;
  }

  .banner-copy,
  .content-card {
    padding: 20px;
  }

  .content-card {
    width: calc(100% - 20px);
    border-radius: 24px;
    transform: translateY(-18px);
  }

  .logo-row {
    gap: 18px;
  }
}
