@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;600;700&family=Bebas+Neue&family=Caveat+Brush&display=swap");

:root {
  --s2w-ink: #182032;
  --s2w-muted: #536179;
  --s2w-blue: #2d6bff;
  --s2w-blue-dark: #17274e;
  --s2w-blue-soft: #deebff;
  --s2w-orange: #ff850f;
  --s2w-orange-soft: #fff1e2;
  --s2w-surface: rgba(255, 255, 255, 0.92);
  --s2w-border: rgba(24, 32, 50, 0.08);
  --s2w-shadow: 0 24px 60px rgba(24, 32, 50, 0.12);
  --s2w-radius: 28px;
}

body {
  font-family: "Barlow Semi Condensed", "Segoe UI", sans-serif;
  color: var(--s2w-ink);
  background:
    radial-gradient(circle at top left, rgba(45, 107, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 133, 15, 0.16), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #f2f5fc 100%);
}

p,
li {
  font-size: 1.02rem;
  line-height: 1.6;
}

a {
  color: var(--s2w-blue);
}

a:hover {
  color: var(--s2w-blue-dark);
}

.quarto-title-block {
  display: none;
}

#quarto-header .navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--s2w-border);
  box-shadow: 0 12px 40px rgba(24, 32, 50, 0.05);
}

#quarto-header .navbar-brand,
#quarto-header .nav-link {
  font-family: "Barlow Semi Condensed", "Segoe UI", sans-serif;
  font-weight: 700;
}

#quarto-header .navbar-brand {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.footer-logos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logos p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
}

.footer-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-logo-up {
  height: 2.4rem;
}

.footer-logo-forellis {
  height: 2.15rem;
}

main.content {
  max-width: 1180px;
  padding-top: 0.9rem;
  padding-bottom: 6.75rem;
}

.sticky-participate {
  position: fixed;
  left: 50%;
  bottom: 0.9rem;
  width: min(18rem, calc(100vw - 1.8rem));
  transform: translateX(-50%);
  z-index: 1100;
  pointer-events: none;
}

body:has(#participer-formulaire) .sticky-participate {
  display: none;
}

.sticky-participate-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a33, #ff7300);
  box-shadow: 0 18px 35px rgba(255, 133, 15, 0.28);
  color: #fff;
  font-family: "Barlow Semi Condensed", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  pointer-events: auto;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.sticky-participate-link:hover,
.sticky-participate-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(255, 133, 15, 0.34);
  color: #fff;
  text-decoration: none;
}

.hero-panel,
.poster-card,
.spotlight-panel,
.partners-panel,
.participate-panel,
.page-header,
.detail-card,
.wide-panel,
.poster-showcase {
  background: var(--s2w-surface);
  border: 1px solid var(--s2w-border);
  border-radius: 24px;
  box-shadow: var(--s2w-shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  background:
    linear-gradient(135deg, rgba(23, 39, 78, 0.98), rgba(45, 107, 255, 0.92)),
    linear-gradient(120deg, rgba(255, 133, 15, 0.15), rgba(255, 255, 255, 0));
  color: #fff;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  margin: 1rem auto 0;
  text-align: center;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 11rem;
  height: 11rem;
  right: -4rem;
  top: -4rem;
  background: rgba(255, 133, 15, 0.22);
}

.hero-panel::after {
  width: 8rem;
  height: 8rem;
  left: -3rem;
  bottom: -3rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-title,
.page-header h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.9rem, 15vw, 4.15rem);
  line-height: 0.94;
  letter-spacing: 0.04em;
  margin: 0;
}

.hero-subtitle {
  font-size: clamp(1.35rem, 7vw, 1.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-description,
.page-header > p,
.poster-copy > p {
  max-width: 56ch;
}

.hero-description {
  margin: 0;
}

.hero-meta {
  max-width: 62ch;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-header {
  padding: 1.3rem;
  margin-bottom: 1rem;
}

.page-header .section-kicker {
  background: var(--s2w-blue-soft);
  color: var(--s2w-blue-dark);
}

.page-header h1 {
  color: var(--s2w-blue-dark);
}

.page-header p {
  color: var(--s2w-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-actions p {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button-primary {
  background: var(--s2w-orange);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 133, 15, 0.28);
}

.button-primary:hover,
.button-primary:focus {
  color: #fff;
  background: #f06f00;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.button-ghost:hover,
.button-ghost:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.button-soft {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 39, 78, 0.14);
  box-shadow: 0 12px 26px rgba(24, 32, 50, 0.1);
  color: var(--s2w-blue-dark);
}

.button-soft:hover,
.button-soft:focus {
  color: var(--s2w-blue-dark);
  background: #eef3ff;
  border-color: rgba(23, 39, 78, 0.2);
  box-shadow: 0 16px 30px rgba(24, 32, 50, 0.14);
}

.feature-grid,
.hub-grid,
.spotlight-grid,
.pill-grid,
.participate-grid,
.detail-grid,
.poster-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-grid,
.hub-grid,
.spotlight-grid,
.participate-grid {
  margin-top: 1rem;
}

.feature-grid .poster-card {
  margin-top: 0;
}

.hub-card {
  display: grid;
  gap: 0.8rem;
  height: 100%;
  align-content: start;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(222, 235, 255, 0.62), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(45, 107, 255, 0.12);
  box-shadow: var(--s2w-shadow);
}

.hub-card > section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  height: 100%;
}

.hub-card p {
  margin: 0;
  color: var(--s2w-muted);
}

.hub-card section > p:last-child {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.hub-card h3 {
  margin: 0;
  font-size: 1.28rem;
  color: var(--s2w-blue-dark);
}

.hub-card-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s2w-blue);
}

.poster-card {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.poster-card,
.detail-card,
.wide-panel,
.spotlight-panel,
.partners-panel,
.participate-panel,
.poster-showcase {
  padding: 1.2rem;
  margin-top: 1rem;
}

.wide-panel {
  margin-top: 1rem;
}

.hand-label,
.section-heading,
.poster-mini-title {
  display: inline-block;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.8rem 0.36rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a33, #ff7300);
  color: #fff;
  font-family: "Caveat Brush", "Segoe UI", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: rotate(-1.5deg);
}

.section-heading,
.poster-mini-title {
  margin-bottom: 0.9rem;
}

.poster-mini-title {
  margin-top: 0;
}

.poster-card ul,
.detail-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.poster-card p {
  margin: 0;
}

.poster-card li + li,
.detail-card li + li {
  margin-top: 0.35rem;
}

.poster-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--s2w-blue-dark);
}

.poster-block {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(222, 235, 255, 0.55), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(45, 107, 255, 0.1);
}

.poster-block-title {
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s2w-blue-dark);
}

.poster-note {
  padding-top: 0.15rem;
  color: var(--s2w-muted);
  font-size: 0.98rem;
}

.poster-tags {
  font-weight: 700;
  color: var(--s2w-blue-dark);
}

.esport-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.esport-icon-card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 107, 255, 0.1);
}

.esport-icon-image {
  width: 100%;
  max-width: 10rem;
  max-height: 3.6rem;
  object-fit: contain;
}

.esport-icon-image-valorant {
  max-width: 11.8rem;
  max-height: 4.5rem;
}

.esport-icon-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--s2w-blue-dark);
}

.spotlight-grid h3,
.participate-grid h3 {
  font-size: 1.22rem;
  margin-bottom: 0.35rem;
  color: var(--s2w-blue-dark);
}

.pill-card,
.action-card,
.spotlight-card {
  height: 100%;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(222, 235, 255, 0.62), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(45, 107, 255, 0.12);
}

.pill-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pill-card strong {
  color: var(--s2w-blue-dark);
  font-size: 1.05rem;
}

.pill-card span,
.action-card p,
.spotlight-card p,
.hub-card p,
.wide-panel p,
.detail-card p,
.poster-copy p {
  color: var(--s2w-muted);
}

.panel-intro {
  margin-bottom: 1rem;
  color: var(--s2w-muted);
}

.poster-showcase {
  align-items: center;
}

.poster-showcase > p {
  margin: 0;
}

.poster-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(24, 32, 50, 0.16);
}

.page-shell {
  margin-top: 0.1rem;
}

.form-launch-panel {
  max-width: 42rem;
  margin-top: 1.2rem;
  margin-inline: auto;
}

.form-launch-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(45, 107, 255, 0.12), rgba(255, 133, 15, 0.14));
  border: 1px solid rgba(45, 107, 255, 0.14);
}

#participer-formulaire .form-launch-card {
  justify-items: center;
  text-align: center;
  padding: 1.3rem 1.15rem;
  background: linear-gradient(160deg, rgba(45, 107, 255, 0.18), rgba(255, 133, 15, 0.2));
  border-color: rgba(45, 107, 255, 0.18);
}

.form-launch-card .hero-actions {
  margin-top: 0.2rem;
  justify-content: center;
}

.form-launch-lead {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--s2w-blue-dark);
}

.form-launch-note {
  margin: 0;
  color: var(--s2w-muted);
}

#participer-formulaire .form-launch-lead {
  max-width: 26ch;
  font-size: 1.18rem;
  text-wrap: balance;
}

#participer-formulaire .form-launch-note {
  max-width: 38ch;
  font-size: 1rem;
}

#participer-formulaire .form-launch-card .hero-actions,
#participer-formulaire .form-launch-card .hero-actions p {
  width: 100%;
  justify-content: center;
}

#quarto-content .page-columns {
  column-gap: 1.2rem;
}

@media (min-width: 640px) {
  main.content {
    padding-top: 1.1rem;
    padding-bottom: 7rem;
  }

  #quarto-header .navbar-brand {
    font-size: 1.9rem;
  }

  .hero-panel,
  .page-header,
  .poster-card,
  .detail-card,
  .wide-panel,
  .spotlight-panel,
  .partners-panel,
  .participate-panel,
  .poster-showcase {
    padding: 1.45rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions p {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .button-link {
    width: auto;
  }

  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esport-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy {
    margin-top: 1.35rem;
  }

  .sticky-participate {
    left: 50%;
    bottom: 1.2rem;
    width: auto;
  }

  .sticky-participate-link {
    min-width: 12rem;
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  p,
  li {
    font-size: 1.06rem;
  }

  .hero-panel {
    padding: 1.7rem;
  }

  .hero-title,
  .page-header h1 {
    font-size: clamp(3.6rem, 9vw, 4.9rem);
  }

  .hero-subtitle {
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    max-width: 28ch;
  }

  .hero-copy {
    gap: 0.85rem;
    max-width: 46rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }

  .detail-grid,
  .poster-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-grid,
  .spotlight-grid,
  .participate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hand-label,
  .section-heading,
  .poster-mini-title {
    font-size: 1.48rem;
  }
}

@media (min-width: 992px) {
  main.content {
    padding-top: 1.5rem;
    padding-bottom: 7.5rem;
  }

  .hero-panel {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--s2w-radius);
  }

  .hero-panel::before {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: -5rem;
  }

  .hero-panel::after {
    width: 14rem;
    height: 14rem;
    left: -4rem;
    bottom: -4rem;
  }

  .page-header,
  .poster-card,
  .detail-card,
  .wide-panel,
  .spotlight-panel,
  .partners-panel,
  .participate-panel,
  .poster-showcase {
    padding: 1.75rem;
    border-radius: var(--s2w-radius);
  }

  .hero-title,
  .page-header h1 {
    font-size: clamp(4.5rem, 8vw, 5.7rem);
  }

  .hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    max-width: 32ch;
  }

  .hero-copy {
    max-width: 58rem;
    gap: 1rem;
  }

  .spotlight-grid,
  .participate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spotlight-grid h3,
  .participate-grid h3 {
    font-size: 1.35rem;
  }

  .pill-card,
  .action-card,
  .spotlight-card {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .poster-image {
    border-radius: 22px;
  }

  .form-launch-card {
    padding: 1.4rem;
    border-radius: 24px;
  }
}
