/* Montréal — collective, expressive, immersive.
   Standalone stylesheet (the page no longer loads shared/base.css).
   Shape system, used everywhere with the same values:
   - the page is a light frame holding rounded colour blocks and photos;
   - the notch ("encoche"): the frame bites into a photo corner to hold one piece
     of information (logo, caption, category, number, call to action);
   - monumental rounded capitals (Righteous) for titles and figures;
   - tilted white stickers, in the figures band only. */

@font-face {
  font-family: Righteous;
  src: url("fonts/righteous.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../shared/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --frame: #eef1f6;
  --white: #fff;
  --navy: #0b1850;
  --blue: #3a3ff0;
  --blue-deep: #2a2ec8;
  --sky: #c8e4f8;
  --pink: #f7c6ec;
  --red: #d9263f;
  --muted: #4a5578;
  --line: #d5dbe8;
  /* Departments share the four discipline card colours. Dark backgrounds use
     white numbers; selection keeps the original colour. */
  --cd22: var(--sky);
  --cd29: var(--blue);
  --cd35: var(--navy);
  --cd56: var(--pink);
  --display: Righteous, "Arial Rounded MT Bold", Arial, sans-serif;
  --font: Outfit, "Segoe UI", Arial, sans-serif;

  --gap: clamp(8px, 0.8vw, 14px);
  --r: clamp(18px, 1.6vw, 26px);
  --gutter: clamp(20px, 4.5vw, 96px);
  --max: 1480px;
  --section: clamp(64px, 7vw, 120px);
  --grid-gap: clamp(12px, 1.2vw, 20px);

  --fs-body: 17px;
  --fs-small: 15px;
  --fs-lead: clamp(18px, 1.3vw, 21px);
  --fs-h1: clamp(58px, min(9vw, 15svh), 176px);
  --fs-h2: clamp(40px, 4.6vw, 84px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  padding: var(--gap);
  color: var(--navy);
  background: var(--frame);
  font: var(--fs-body) / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(dialog[open]) {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 > span,
h2 > span {
  display: block;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke-width: 2;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.ensemble :focus-visible,
.agenda :focus-visible,
.vss :focus-visible,
.partners :focus-visible {
  outline-color: white;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: white;
  padding: 16px;
}
.skip-link:focus {
  top: 16px;
}
.site {
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.block {
  position: relative;
  border-radius: var(--r);
  margin-bottom: var(--gap);
  overflow: hidden;
}
.section {
  padding-block: var(--section);
}

/* ---------- The notch ---------- */

.notch {
  --notch-bg: var(--frame);
  position: absolute;
  z-index: 2;
  background: var(--notch-bg);
}
.notch:before,
.notch:after {
  content: "";
  position: absolute;
  width: var(--r);
  height: var(--r);
  pointer-events: none;
  background: radial-gradient(
    circle at var(--fx) var(--fy),
    transparent calc(var(--r) - 0.5px),
    var(--notch-bg) var(--r)
  );
}
.notch--tl {
  --fx: 100%;
  --fy: 100%;
  top: 0;
  left: 0;
  border-bottom-right-radius: var(--r);
}
.notch--tl:before {
  top: 0;
  left: 100%;
}
.notch--tl:after {
  top: 100%;
  left: 0;
}
.notch--br {
  --fx: 0%;
  --fy: 0%;
  right: 0;
  bottom: 0;
  border-top-left-radius: var(--r);
}
.notch--br:before {
  bottom: 0;
  right: 100%;
}
.notch--br:after {
  bottom: 100%;
  right: 0;
}
.notch--bl {
  --fx: 100%;
  --fy: 0%;
  left: 0;
  bottom: 0;
  border-top-right-radius: var(--r);
}
.notch--bl:before {
  bottom: 0;
  left: 100%;
}
.notch--bl:after {
  bottom: 100%;
  left: 0;
}
/* A corner that holds a notch stays square (see each component), so the
   rounded clip never cuts the notch text. */

/* ---------- Shared pieces ---------- */

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}
.note {
  font-size: var(--fs-small);
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: white;
  font-size: var(--fs-small);
  font-weight: 650;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(32px, 3.4vw, 56px);
}
.section-head .lead {
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 11px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--blue-deep);
}
.btn-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
}
.btn-circle .icon {
  width: 18px;
  height: 18px;
}
.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover {
  background: var(--sky);
}
.btn-white .btn-circle {
  background: var(--blue);
  color: white;
}
.btn-red {
  background: var(--red);
  padding-inline: 18px 20px;
}
.btn-red:hover {
  background: #b81b32;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 650;
  color: var(--blue);
  white-space: nowrap;
}
.text-link .btn-circle {
  background: var(--blue);
  color: white;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.go {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  transition: transform 0.2s;
}
.photo {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform 0.5s;
}
.media-hover:hover .photo img {
  transform: scale(1.04);
}
.media-hover:hover .go {
  transform: rotate(-45deg);
}
/* Whole-card click target: the heading button stretches over its card. */
.card-link {
  text-align: left;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.card-link:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible:before {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r);
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--navy);
}
.social-btn .icon {
  width: 18px;
  height: 18px;
}
.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ---------- Header ---------- */

.header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  pointer-events: none;
}
.header > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header .brand {
  display: grid;
  grid-template-columns: auto auto;
  padding: 16px 26px 16px 16px;
}
.brand img {
  width: 54px;
  height: 78px;
  object-fit: contain;
}
.header .brand img {
  /* Let the text set the row height, then scale the logo to match. */
  width: auto;
  height: 0;
  min-height: 100%;
}
.brand-text {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.brand-text small {
  display: block;
  max-width: 22ch;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--muted);
}
.header-bar {
  position: absolute;
  top: clamp(12px, 1vw, 18px);
  right: clamp(12px, 1vw, 18px);
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.nav {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 14px;
  background: white;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--frame);
}
.nav .nav-help {
  display: none;
}
.header-bar .btn {
  min-height: 60px;
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
}
.menu-toggle .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */

.hero {
  height: clamp(620px, calc(100svh - 2 * var(--gap)), 1100px);
  border-bottom-right-radius: 0;
  background: var(--navy);
}
.hero-visual {
  position: absolute;
  inset: 0;
}
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.hero-photo:after,
.final-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    20deg,
    rgb(6 12 40 / 0.62) 0%,
    rgb(6 12 40 / 0.18) 42%,
    transparent 60%
  );
}
.hero h1 {
  position: absolute;
  z-index: 1;
  left: clamp(22px, 3vw, 56px);
  bottom: clamp(22px, 3vw, 56px);
  max-width: 62%;
  font-size: var(--fs-h1);
  line-height: 0.94;
  color: white;
}
.hero-aside,
.final-aside {
  width: clamp(360px, 30vw, 540px);
  padding: clamp(22px, 2.2vw, 38px) clamp(14px, 1.4vw, 24px)
    clamp(14px, 1.4vw, 24px) clamp(22px, 2.2vw, 38px);
}
.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
}
.hero-club {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
}
.hero-club-text b {
  display: block;
  font: 400 clamp(26px, 2vw, 34px) / 1 var(--display);
  text-transform: uppercase;
}
.hero-club-text small {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.hero-club .map-preview {
  width: clamp(104px, 8vw, 150px);
  margin-left: auto;
}
.hero-club:hover .go {
  background: var(--blue-deep);
  transform: rotate(-45deg);
}

/* ---------- Map (hero card and club finder) ---------- */

.map-dept {
  cursor: pointer;
  outline: none;
}
.map-dept path {
  stroke: var(--white);
  stroke-width: 1.25;
  stroke-linejoin: round;
  fill: var(--dept-color);
  transition:
    fill 0.2s,
    fill-opacity 0.2s;
}
.map-dept text {
  fill: var(--dept-ink, var(--navy));
  font: 400 18px var(--display);
  text-anchor: middle;
  pointer-events: none;
}
/* The selected department keeps its full colour; the others fade slightly
   while maintaining contrast with the white numbers on blue backgrounds. */
.map-dept[aria-pressed="false"] path {
  fill-opacity: 0.85;
}
.map-dept[aria-pressed="false"]:hover path {
  fill-opacity: 0.95;
}
.map-dept:focus-visible path {
  stroke: var(--blue);
  stroke-width: 4;
  stroke-dasharray: 6 4;
}

/* ---------- Un même sport (capsules) ---------- */

.ensemble {
  background: var(--blue);
  color: white;
  padding-block: var(--section);
}
.ensemble-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 64px);
}
.ensemble .lead {
  color: #e3e5ff;
  margin-bottom: 26px;
}
.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.capsule {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r);
  border-bottom-left-radius: 0;
  overflow: hidden;
  text-align: left;
}
.capsule .photo {
  position: absolute;
  inset: 0;
}
.play {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 1.4vw, 24px);
  right: clamp(16px, 1.4vw, 24px);
  display: grid;
  place-items: center;
  width: clamp(56px, 4.4vw, 72px);
  height: clamp(56px, 4.4vw, 72px);
  border-radius: 50%;
  background: white;
  color: var(--blue);
  transition: transform 0.2s;
}
.play .icon {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: currentColor;
  stroke-width: 1;
}
.capsule:hover .play {
  transform: scale(1.08);
}
.capsule-caption {
  --notch-bg: var(--blue);
  padding: 16px 30px 0 0;
  color: white;
}
.capsule-caption strong {
  display: block;
  font: 400 clamp(30px, 2.6vw, 46px) / 1 var(--display);
  text-transform: uppercase;
}
.capsule-caption small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-small);
  color: #e3e5ff;
}

/* ---------- Disciplines ---------- */

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.discipline {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: clamp(560px, 46vw, 800px);
  border-radius: var(--r);
  overflow: hidden;
}
.discipline:nth-child(even) .photo {
  order: 2;
}
.discipline-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2vw, 34px);
}
.discipline h3 {
  font: 400 clamp(26px, 2.1vw, 38px) / 1 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}
.discipline p {
  margin-top: 12px;
  max-width: 26ch;
}
.discipline .go {
  margin-top: auto;
  align-self: flex-end;
}
.tone-blue .discipline-tile {
  background: var(--blue);
  color: white;
}
.tone-navy .discipline-tile {
  background: var(--navy);
  color: white;
}
.tone-sky .discipline-tile {
  background: var(--sky);
}
.tone-pink .discipline-tile {
  background: var(--pink);
}
.tone-blue .go,
.tone-navy .go {
  background: white;
  color: var(--blue);
}
.tone-sky .go,
.tone-pink .go {
  background: var(--navy);
}
.tone-blue p,
.tone-navy p {
  color: #e3e5ff;
}
.discipline .card-link:focus-visible:before {
  outline-offset: 4px;
}

/* ---------- La Ligue en chiffres ---------- */

.stats {
  background: var(--pink);
  padding-block: var(--section);
}
.stats-head {
  text-align: center;
}
.stats h2 {
  margin-top: 18px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 32px);
  margin-top: clamp(40px, 4vw, 72px);
}
.stat {
  --tilt: -3deg;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(200px, 16vw, 290px);
  padding: clamp(24px, 2.4vw, 40px);
  border-radius: var(--r);
  background: white;
  box-shadow: 0 18px 40px rgb(11 24 80 / 0.12);
  transform: rotate(var(--tilt));
  transition: transform 0.3s;
}
.stat:nth-child(2) {
  --tilt: 2deg;
}
.stat:nth-child(3) {
  --tilt: -1.5deg;
}
.stat:nth-child(4) {
  --tilt: 3deg;
}
.stat:hover {
  transform: rotate(0);
}
.stat strong {
  font: 400 clamp(64px, 6.4vw, 124px) / 0.9 var(--display);
  color: var(--blue);
}
.stat em {
  font-style: normal;
  font-size: 0.55em;
}
.stat span {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Actualités ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.news-card {
  position: relative;
}
.news-card .photo {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--r);
  border-top-left-radius: 0;
}
.news-tag {
  padding: 0 20px 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}
.news-date {
  margin-top: 18px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.news-card h3 {
  margin-top: 6px;
  font-size: clamp(22px, 1.6vw, 28px);
}
.news-card:hover h3 {
  color: var(--blue);
}
.news-card .text-link {
  margin-top: 10px;
}

/* ---------- Agenda ---------- */

.agenda {
  background: var(--navy);
  color: white;
  padding-block: var(--section);
}
.agenda-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 96px);
}
.agenda-intro {
  display: flex;
  flex-direction: column;
}
.agenda .lead,
.agenda .note {
  color: #c9d2f2;
}
.agenda .lead {
  margin-top: 22px;
}
.agenda-photo {
  flex: 1 0 240px;
  margin-top: clamp(28px, 3vw, 44px);
  border-radius: var(--r);
  overflow: hidden;
}
.agenda-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.agenda-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / 0.5);
  font-size: 16px;
  font-weight: 600;
}
.filter[aria-pressed="true"] {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--navy);
}
.event-count {
  margin-top: 14px;
  font-size: var(--fs-small);
  color: #c9d2f2;
}
.event-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.agenda-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}
.event {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: 14px 20px 14px 14px;
  border-radius: var(--r);
  background: white;
  color: var(--navy);
}
.event-date {
  display: grid;
  place-content: center;
  width: clamp(84px, 6.6vw, 104px);
  aspect-ratio: 1;
  border-radius: calc(var(--r) - 6px);
  background: var(--sky);
  text-align: center;
  line-height: 1;
}
.event-date b {
  font: 400 clamp(38px, 3vw, 48px) / 1 var(--display);
}
.event-date span {
  margin-top: 4px;
  font-size: var(--fs-small);
  font-weight: 600;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--muted);
}
.dept-tag:before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dept-color);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.public-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #e2f3e9;
  color: #1c5b3e;
  font-size: var(--fs-small);
  font-weight: 650;
}
.public-tag .icon {
  width: 15px;
  height: 15px;
}
.license-tag {
  font-size: var(--fs-small);
  color: var(--muted);
}
.event h3 {
  margin-block: 8px 6px;
  font-size: clamp(21px, 1.6vw, 26px);
}
.event:hover h3 {
  color: var(--blue);
}
.event-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}
.event-info .icon {
  width: 18px;
  height: 18px;
}
.event:hover .go {
  transform: rotate(-45deg);
}

/* ---------- Trouver un club ---------- */

.clubs {
  background: var(--sky);
  padding-block: var(--section);
}
.clubs-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
}
.clubs h2 {
  font-size: clamp(56px, 6.4vw, 124px);
}
.clubs .lead {
  margin-top: 22px;
  color: #34406a;
}
.dept-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.dept-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 14px;
  background: white;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}
.dept-control b {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dept-color);
  box-shadow: inset 0 0 0 2px var(--navy);
  color: var(--dept-ink, var(--navy));
  font: 400 20px/1 var(--display);
}
.dept-control:hover {
  box-shadow: inset 0 0 0 2px var(--navy);
}
.dept-control[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.club-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 20px 20px 24px;
  border-radius: var(--r);
  background: white;
}
.club-result b {
  font: 400 clamp(26px, 2vw, 34px) / 1 var(--display);
  text-transform: uppercase;
}
.club-result p {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.club-map {
  padding: clamp(20px, 2.6vw, 44px);
  border-radius: var(--r);
  background: white;
}
.club-map svg {
  width: 100%;
  overflow: visible;
}
.map-caption {
  margin-top: 18px;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- Champions ---------- */

.champion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.champion .photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  border-bottom-left-radius: 0;
  background: var(--navy);
}
.champion-dept {
  --notch-bg: var(--dept-color);
  padding: 12px 20px 6px 16px;
  font: 400 clamp(40px, 3.4vw, 60px) / 0.9 var(--display);
  color: var(--dept-ink, var(--navy));
}
.champion-label {
  margin-top: 18px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--blue);
}
.champion h3 {
  margin-top: 6px;
  font: 400 clamp(26px, 2vw, 34px) / 1 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}
.champion-meta {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}
.champions-note {
  margin-top: 32px;
}

/* ---------- VSS ---------- */

.vss {
  background: var(--red);
  color: white;
  padding-block: clamp(44px, 4.6vw, 80px);
}
.vss-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}
.vss-icon {
  display: grid;
  place-items: center;
  width: clamp(72px, 6vw, 96px);
  height: clamp(72px, 6vw, 96px);
  border-radius: 50%;
  background: white;
  color: var(--red);
}
.vss-icon .icon {
  width: 42%;
  height: 42%;
  stroke-width: 1.8;
}
.vss-kicker {
  font-size: 17px;
  font-weight: 700;
}
.vss h2 {
  margin-block: 8px 12px;
  font-size: clamp(36px, 3.6vw, 64px);
}
.vss-text {
  max-width: 56ch;
}
.vss .btn-white .btn-circle {
  background: var(--red);
}

/* ---------- Partenaires ---------- */

.partners {
  background: var(--blue);
  color: white;
  padding-block: var(--section);
}
.partners-head {
  text-align: center;
}
.pill-light {
  margin-top: 18px;
  background: rgb(255 255 255 / 0.16);
  color: white;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(36px, 3.6vw, 60px);
}
.partner {
  display: grid;
  place-items: center;
  min-height: clamp(150px, 12vw, 210px);
  padding: 24px;
  border-radius: var(--r);
  background: white;
  transition: transform 0.2s;
}
.partner:hover {
  transform: translateY(-4px);
}
.partner img {
  width: 100%;
  height: clamp(80px, 6.8vw, 116px);
  object-fit: contain;
}

/* ---------- À vous de jouer ---------- */

.final {
  height: clamp(520px, 74svh, 900px);
  border-bottom-right-radius: 0;
  background: var(--navy);
}
.final-visual {
  position: absolute;
  inset: 0;
}
.final-photo {
  position: absolute;
  inset: 0;
}
.final-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.final h2 {
  position: absolute;
  z-index: 1;
  left: clamp(22px, 3vw, 56px);
  bottom: clamp(22px, 3vw, 56px);
  font-size: var(--fs-h1);
  line-height: 0.94;
  color: white;
}
.final-aside p {
  margin-bottom: 18px;
  font-size: var(--fs-lead);
  line-height: 1.45;
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(44px, 4.6vw, 80px) 0 120px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: clamp(32px, 4vw, 72px);
}
.footer .brand img {
  width: 72px;
  height: 100px;
  padding: 8px;
  border-radius: 16px;
  background: white;
}
.footer .brand-text {
  font-size: 23px;
}
.footer-intro {
  margin-top: 22px;
  max-width: 36ch;
  color: var(--muted);
}
.footer-brand .note {
  margin-top: 12px;
}
.footer h3 {
  margin-bottom: 16px;
  font: 400 22px/1 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}
.footer-col li + li {
  margin-top: 2px;
}
.footer-col a,
.footer-col button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  text-align: left;
}
.footer-col a:hover,
.footer-col button:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-cds {
  margin-top: clamp(40px, 4vw, 64px);
  padding-top: clamp(32px, 3vw, 48px);
  border-top: 1.5px solid var(--line);
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cd-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}
.cd-name b {
  font: 400 46px/1 var(--display);
}
.cd .socials {
  margin-top: 12px;
}
.cd-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 650;
  color: var(--blue);
}
.cd-link:hover {
  text-decoration: underline;
}
.cd-link .icon {
  width: 16px;
  height: 16px;
}
.footer-cds .note {
  margin-top: 16px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  margin-top: clamp(40px, 4vw, 64px);
  padding-top: 24px;
  border-top: 1.5px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
}
.footer-links a:hover,
.footer-links button:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ---------- Presentation switcher & dialog ---------- */

.presentation-nav {
  position: fixed;
  z-index: 60;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  box-shadow: 0 6px 30px rgb(11 24 80 / 0.2);
  font: 600 14px/1.2 var(--font);
}
.presentation-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.presentation-nav > a:first-child {
  padding: 8px 12px;
}
.presentation-nav a[aria-current="page"] {
  background: var(--navy);
  color: white;
}
.presentation-nav a:hover:not([aria-current="page"]) {
  background: var(--frame);
}
.presentation-nav .icon {
  width: 18px;
  height: 18px;
}
dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  color: var(--navy);
  box-shadow: 0 30px 100px rgb(0 0 0 / 0.3);
}
dialog::backdrop {
  background: rgb(11 24 80 / 0.7);
  backdrop-filter: blur(4px);
}
.dialog-body {
  padding: clamp(28px, 4vw, 44px);
}
.dialog-body .eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--blue);
}
.dialog-body h2 {
  margin-bottom: 16px;
  padding-right: 48px;
  font-size: clamp(32px, 3vw, 44px);
}
.dialog-body p {
  margin-bottom: 20px;
  color: var(--muted);
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--frame);
}
.dialog-close:hover {
  background: var(--sky);
}
.dialog-media {
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 40px;
  border-radius: calc(var(--r) - 6px);
  background: var(--frame);
  color: var(--muted);
  text-align: center;
}
.dialog-media .icon {
  width: 40px;
  height: 40px;
}
.dialog-media .small {
  font-size: var(--fs-small);
}
.resource-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.resource-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--frame);
  color: var(--blue);
  font-size: 17px;
  font-weight: 650;
}
.resource-links a:hover {
  background: var(--sky);
}
.resource-links small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1400px) {
  .nav a[href="#comites"] {
    display: none;
  }
}

@media (max-width: 1240px) {
  .menu-toggle {
    display: grid;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 40px));
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgb(11 24 80 / 0.22);
  }
  .nav[data-open="true"] {
    display: grid;
  }
  .nav a,
  .nav a[href="#comites"] {
    display: flex;
    min-height: 54px;
    font-size: 18px;
  }
}

@media (max-width: 1100px) {
  .discipline-grid,
  .news-grid,
  .champion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discipline {
    height: clamp(520px, 70vw, 720px);
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
  .agenda-grid,
  .clubs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-photo {
    display: none;
  }
  .club-map {
    max-width: 700px;
  }
  .ensemble-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .partner-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .partner {
    grid-column: span 2;
  }
  .partner:nth-child(4) {
    grid-column: 2 / 4;
  }
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --fs-body: 16px;
  }
  .header-bar .help-btn {
    display: none;
  }
  .nav .nav-help {
    display: flex;
    color: var(--red);
  }
  .hero-aside,
  .final-aside {
    width: clamp(290px, 40vw, 340px);
  }
  .hero-club .map-preview {
    display: none;
  }
  .hero-club .go {
    margin-left: auto;
  }
  .vss-grid {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .vss-grid .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .cd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 700px) {
  .header .brand {
    padding: 12px 18px 12px 12px;
  }
  .brand img {
    width: 42px;
    height: 60px;
  }
  .header .brand-text {
    font-size: 17px;
  }
  .header .brand-text small {
    display: none;
  }
  .header-bar .cta-btn {
    display: none;
  }
  .menu-toggle {
    width: 52px;
    height: 52px;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero,
  .final {
    height: auto;
    overflow: visible;
    background: none;
  }
  .hero-visual,
  .final-visual {
    position: relative;
    height: max(460px, 72svh);
    border-radius: var(--r);
    overflow: hidden;
  }
  .final-visual {
    height: max(380px, 56svh);
  }
  .hero h1,
  .final h2 {
    top: auto;
    bottom: 22px;
    max-width: none;
  }
  .hero-aside,
  .final-aside {
    position: static;
    width: auto;
    padding: 22px 4px 8px;
    border-radius: 0;
    background: none;
  }
  .hero-aside:before,
  .hero-aside:after,
  .final-aside:before,
  .final-aside:after {
    display: none;
  }
  .final-aside .btn {
    width: 100%;
  }
  .ensemble .btn {
    width: 100%;
  }
  .capsule-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .capsule {
    aspect-ratio: 4 / 3.6;
  }
  .discipline-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .discipline {
    height: auto;
    grid-template-rows: none;
  }
  .discipline:nth-child(even) .photo {
    order: 0;
  }
  .discipline .photo {
    aspect-ratio: 16 / 10;
  }
  .discipline-tile {
    min-height: 200px;
  }
  .stat-grid {
    gap: 22px 14px;
  }
  .stat {
    min-height: 170px;
    padding: 20px;
  }
  .stat strong {
    font-size: clamp(46px, 13vw, 64px);
  }
  .stat span {
    font-size: 16px;
  }
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .news-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
  }
  .news-card .photo {
    grid-row: 1 / 4;
    aspect-ratio: 1 / 1.1;
  }
  .news-card .news-date {
    margin-top: 0;
  }
  .news-card h3 {
    font-size: 20px;
  }
  .news-card .text-link {
    display: none;
  }
  .news-tag {
    padding: 0 14px 8px 0;
    font-size: 15px;
  }
  .event {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }
  .event .go {
    display: none;
  }
  .event-date {
    width: 72px;
  }
  .event-date b {
    font-size: 32px;
  }
  .dept-controls {
    grid-template-columns: 1fr;
  }
  .club-result .btn {
    width: 100%;
  }
  .champion-grid {
    gap: 28px 12px;
  }
  .champion h3 {
    font-size: 24px;
  }
  .champion-dept {
    padding: 8px 14px 4px 10px;
    font-size: 36px;
  }
  .vss-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vss-grid .btn {
    width: 100%;
  }
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner,
  .partner:nth-child(4) {
    grid-column: auto;
  }
  .partner:last-child {
    grid-column: 1 / -1;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .presentation-nav a {
    padding: 8px 10px;
  }
}

@media (max-width: 400px) {
  .footer-main,
  .cd-grid,
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .presentation-nav > a:first-child {
    display: none;
  }
  .presentation-nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 360px) {
  .champion-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
