/* Classique — claire, accueillante, pratique.
   Standalone stylesheet: the page no longer loads shared/base.css, so the
   type scale and the grid are defined once here instead of being overridden. */

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0b62a8;
  --blue-deep: #084b82;
  --ink: #14323d;
  --muted: #4a636d;
  --paper: #fff;
  --pale: #eaf3f5;
  --line: #d3e1e5;
  --red: #b8202a;
  /* One colour per department, used as-is everywhere (badges, buttons, maps).
     Two families, sea and sand: blues for 29 and 35, which don't touch,
     ochres for 22 and 56, one light and one dark. Each keeps at least 4.6:1
     contrast with white text and stays distinct from the others and from
     the blue clubs band, including for colour-blind visitors. */
  --cd22: #986603;
  --cd29: #062b5f;
  --cd35: #0a7ca6;
  --cd56: #883c00;
  /* Libre Franklin, a revival of Franklin Gothic: the sturdy grotesque of
     sports pages and fight posters. */
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 80px);
  --max: 1560px;
  --bleed: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --section: clamp(64px, 7vw, 112px);
  --radius: 14px;

  --fs-body: 17px;
  --fs-small: 15px;
  --fs-meta: 15px;
  --fs-lead: clamp(18px, 1.3vw, 21px);
  --fs-h1: clamp(46px, min(5.4vw, 10svh), 100px);
  --fs-h2: clamp(34px, 3.5vw, 56px);
  --fs-h3: clamp(21px, 1.6vw, 26px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 118px) + 12px);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: var(--fs-body) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:has(dialog[open]) {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
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: 1.8;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: white;
  padding: 16px;
}
.skip-link:focus {
  top: 16px;
}

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

.kicker {
  display: block;
  font-size: var(--fs-small);
  font-weight: 750;
  color: var(--blue);
  margin-bottom: 14px;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
}
.section {
  padding-block: var(--section);
}
.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 {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--blue-deep);
}
.btn-light {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover {
  background: var(--pale);
  border-color: var(--blue);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 750;
  color: var(--blue);
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.round-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  background: var(--blue);
  color: white;
}
.photo {
  position: relative;
  overflow: hidden;
  background: var(--pale);
  margin: 0;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.media-hover:hover img {
  transform: scale(1.03);
}
/* Whole-card click target: the heading button stretches over its card. */
.card-link {
  text-align: left;
  line-height: inherit;
  letter-spacing: inherit;
}
.card-link:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible:before {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
}
.social-btn .icon {
  width: 18px;
  height: 18px;
}
.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.to-provide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-meta);
  font-weight: 650;
}
.to-provide .icon {
  width: 20px;
  height: 20px;
}

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

/* Fixed rather than sticky, so the hero photo can run under it. */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: white;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}
/* At the top of the page the header lies on the photo (set by a script in the page). */
.header[data-over-photo] {
  background-color: transparent;
  border-bottom-color: transparent;
  color: white;
}
.header[data-over-photo] .brand-text small {
  color: #ffffffd9;
}
.header[data-over-photo] .nav a:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.header[data-over-photo] .help-link {
  color: #ffa3a8;
}
.header[data-over-photo] .menu-toggle {
  border-color: #ffffff66;
}
.header[data-over-photo] :focus-visible {
  outline-color: white;
}
.header-inner {
  min-height: 96px;
  padding-block: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.brand img {
  width: 50px;
  height: 72px;
  object-fit: contain;
}
.header .brand {
  display: grid;
  grid-template-columns: auto auto;
}
.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: 19px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.brand-text small {
  display: block;
  max-width: 24ch;
  margin-top: 6px;
  line-height: 1.3;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--muted);
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
}
.nav a {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.nav a:hover {
  color: var(--blue);
}
.nav .nav-help {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 750;
  color: var(--red);
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  place-items: center;
}
.menu-toggle .icon {
  width: 26px;
  height: 26px;
}

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

/* The photo runs edge to edge, under the header. At the bottom left the white
   page rises into it with a rounded shoulder and carries the title. */
.hero {
  --arch: clamp(72px, 8vw, 150px);
}
.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  /* Fills the screen, without turning into a narrow strip on tall windows. */
  min-height: clamp(560px, min(100svh, 80vw), 1400px);
  padding-top: calc(var(--header-h, 118px) + 24px);
  background: var(--ink);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus);
}
/* Darkens the top of the photo so the header stays readable on any image. */
.hero-photo:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(#0a1a21a6, #0a1a2100);
}
.hero-panel {
  position: relative;
  width: fit-content;
  max-width: calc(100% + var(--bleed));
  margin-left: calc(-1 * var(--bleed));
  padding: clamp(36px, 3.4vw, 60px) clamp(40px, 4.5vw, 96px)
    clamp(32px, 3vw, 52px) var(--bleed);
  background: var(--paper);
  border-radius: 0 var(--arch) 0 0;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.hero .lead {
  max-width: 50ch;
  margin-top: clamp(22px, 2.2vw, 36px);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 2.6vw, 44px);
}
.hero-depts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: clamp(28px, 2.6vw, 44px);
  color: var(--muted);
  font-size: var(--fs-small);
}
.hero-depts div {
  display: flex;
  gap: 6px;
}
.hero-depts-text {
  flex: 1 0 auto;
}
.hero-depts div span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dept-color);
  color: white;
  font-weight: 800;
  font-size: 15px;
}

/* On load, the photo settles while the white page rises into it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: hero-settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-panel {
    animation: hero-rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes hero-settle {
  from {
    transform: scale(1.05);
  }
}
@keyframes hero-rise {
  from {
    transform: translateY(56px);
  }
}

/* ---------- Stats ---------- */

.stats {
  padding-block: clamp(44px, 4.5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.stats-heading {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 20px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding-inline: clamp(20px, 2.4vw, 40px);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.stat strong {
  display: block;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.stat strong span {
  font-size: 0.55em;
  letter-spacing: -0.01em;
}
.stat p {
  margin-top: 12px;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 650;
}

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

.discipline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.78fr;
  grid-template-rows: repeat(2, clamp(250px, 22vw, 400px));
  gap: clamp(14px, 1.4vw, 24px);
}
.discipline-card {
  position: relative;
  grid-row: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  color: white;
  background: var(--ink);
}
.discipline-card .card-link:focus-visible:before {
  outline-color: white;
  outline-offset: -6px;
}
.discipline-card .photo {
  position: absolute;
  inset: 0;
  background: none;
}
.discipline-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #071b24e6 0%,
    #071b2466 38%,
    transparent 62%
  );
  pointer-events: none;
}
.discipline-card .photo img {
  object-position: var(--focus, 50% 50%);
}
.discipline-body {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 1.8vw, 30px);
  right: clamp(20px, 1.8vw, 30px);
  bottom: clamp(20px, 1.8vw, 30px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.discipline-body h3 {
  font-size: clamp(21px, 1.65vw, 28px);
}
.discipline-body p {
  margin-top: 8px;
  font-size: 16px;
  color: #e3eef2;
}
.discipline-card .round-arrow {
  background: white;
  color: var(--ink);
}
.discipline-card:hover .round-arrow {
  background: var(--blue);
  color: white;
}
.discipline-card:nth-child(n + 3) {
  grid-row: auto;
}

/* ---------- La savate pour tous ---------- */

.everyone {
  background: var(--pale);
}
.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}
.capsule {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  color: white;
  background: var(--ink);
}
.capsule img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform 0.5s;
}
.capsule:hover img {
  transform: scale(1.03);
}
.capsule:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #071b24e0 0%, transparent 55%);
}
.capsule-label {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #071b24c7;
  font-size: var(--fs-meta);
  font-weight: 650;
}
.capsule-caption {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 2vw, 32px);
  right: clamp(20px, 2vw, 32px);
  bottom: clamp(20px, 2vw, 32px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.capsule-caption strong {
  display: block;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.capsule-caption small {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: #e3eef2;
}
.play {
  width: clamp(50px, 4vw, 62px);
  height: clamp(50px, 4vw, 62px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: white;
  color: var(--blue);
}
.play .icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke-width: 1;
  margin-left: 3px;
}

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

.clubs {
  background: var(--blue);
  color: white;
}
.clubs-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.clubs .kicker {
  color: #cfe5f7;
}
.clubs .lead {
  color: #e2effa;
  margin-top: 20px;
}
.dept-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 36px;
}
.dept-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff17;
  border: 2px solid #ffffff38;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.dept-control b {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dept-color);
  color: white;
  font-size: 15px;
}
.dept-control:hover {
  border-color: white;
}
.dept-control[aria-pressed="true"] {
  background: white;
  border-color: white;
  color: var(--ink);
}
.club-result {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.club-result b {
  font-size: clamp(20px, 1.5vw, 24px);
  letter-spacing: -0.01em;
}
.club-result p {
  margin-top: 2px;
  font-size: var(--fs-small);
  color: #bfd3dc;
}
.club-result a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
}
.club-result a:hover {
  background: var(--pale);
}
.club-map svg {
  width: 100%;
  overflow: visible;
}
.map-dept {
  cursor: pointer;
  outline: none;
}
.map-dept path {
  stroke: white;
  stroke-width: 1.25;
  fill: var(--dept-color);
  transition: fill 0.2s;
}
.map-dept text {
  fill: white;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
}
/* The selected department keeps its full colour and the others fade to a
   lighter tint (with a dark number); outlines and numbers keep one weight. */
.map-dept path {
  stroke-linejoin: round;
}
.map-dept[aria-pressed="false"] path {
  fill: color-mix(in srgb, var(--dept-color) 55%, white);
}
.map-dept[aria-pressed="false"] text {
  fill: var(--ink);
}
.map-dept[aria-pressed="false"]:hover path {
  fill: color-mix(in srgb, var(--dept-color) 70%, white);
}
.map-dept:focus-visible path {
  stroke: var(--ink);
  stroke-width: 4;
}

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

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.agenda-intro {
  position: sticky;
  top: 150px;
}
.agenda-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.filter {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.event-count {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--muted);
  min-height: 26px;
}
.agenda-intro .text-link {
  margin-top: 20px;
}
.event {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
  padding-block: clamp(24px, 2.4vw, 36px);
  border-top: 1px solid var(--line);
}
.event:last-of-type {
  border-bottom: 1px solid var(--line);
}
.event-date {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--blue);
  line-height: 1;
}
.event-date b {
  font-size: 38px;
  letter-spacing: -0.03em;
}
.event-date span {
  font-size: var(--fs-meta);
  font-weight: 700;
  margin-top: -18px;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--muted);
}
.public-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e5f3ea;
  color: #1e5c3f;
  font-size: var(--fs-meta);
  font-weight: 750;
}
.public-tag .icon {
  width: 16px;
  height: 16px;
}
.event-license {
  font-size: var(--fs-meta);
  color: var(--muted);
}
.event h3 {
  margin-block: 10px 8px;
  font-size: clamp(21px, 1.7vw, 28px);
}
.event h3 button {
  text-align: left;
  letter-spacing: inherit;
}
.event h3 button:hover {
  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 .round-arrow {
  background: white;
  color: var(--blue);
  border: 1px solid var(--line);
}
.event .round-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.event-note {
  margin-top: 16px;
  font-size: var(--fs-meta);
  color: var(--muted);
}

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

.news {
  background: var(--pale);
}
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 48px);
}
.news-card {
  position: relative;
}
.news-card:hover h3 {
  color: var(--blue);
}
.news-card .photo {
  border-radius: var(--radius);
}
.news-lead .photo {
  aspect-ratio: 16 / 10;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--muted);
}
.news-meta span:first-child {
  color: var(--blue);
}
.news-card h3 {
  margin-top: 10px;
}
.news-lead h3 {
  font-size: clamp(25px, 2.2vw, 36px);
  max-width: 24ch;
}
.news-card p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 52ch;
}
.news-card .text-link {
  margin-top: 8px;
}
.news-side {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: clamp(20px, 2vw, 32px);
  align-content: space-between;
}
.news-side .news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.news-side .photo {
  aspect-ratio: 5 / 4;
}
.news-side h3 {
  font-size: clamp(19px, 1.35vw, 22px);
}
.news-side .news-meta {
  margin-top: 0;
}

/* ---------- Galerie ---------- */

.gallery {
  padding-bottom: 8px;
}
.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 290px);
  gap: 8px;
  margin-inline: 8px;
}
.gallery-grid .photo {
  border-radius: 6px;
}
.gallery-grid .photo img {
  object-position: var(--focus, 50% 50%);
}
.gallery-grid .span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-grid .span-2 {
  grid-column: span 2;
}
.gallery-grid .span-row-2 {
  grid-row: span 2;
}
.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #071b24c7;
  color: white;
  font-size: var(--fs-meta);
  font-weight: 650;
}

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

.champions {
  background: var(--ink);
  color: white;
}
.champions .kicker {
  color: #9fd0f5;
}
.champions .lead {
  color: #c4d6de;
}
.champions .text-link {
  color: white;
}
.champion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}
.champion-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: #ffffff0d;
}
.champion-portrait img {
  object-position: var(--focus, 50% 30%);
}
.champion-label {
  display: block;
  margin-top: 22px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #9fd0f5;
}
.champion h3 {
  margin-top: 6px;
}
.champion p {
  margin-top: 8px;
  color: #c4d6de;
  font-size: 16px;
}
.champion .social-btn {
  border-color: #ffffff4d;
}
.champion .social-btn:hover {
  background: white;
  color: var(--ink);
}
.champions-note {
  margin-top: 36px;
  font-size: var(--fs-meta);
  color: #c4d6de;
}

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

.vss {
  padding-bottom: 0;
}
.vss-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(32px, 3.6vw, 60px);
  border-radius: var(--radius);
  background: #fff0f1;
  border: 1px solid #efcdd2;
}
.vss-copy {
  display: flex;
  align-items: center;
  gap: 32px;
}
.vss-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: white;
  color: var(--red);
  border: 1px solid #e3aeb5;
}
.vss-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}
.vss .kicker {
  color: var(--red);
}
.vss-panel h2 {
  font-size: clamp(26px, 2.3vw, 38px);
  color: var(--red);
  max-width: 22ch;
}
.vss-panel p {
  margin-top: 14px;
  color: #7a3a44;
  max-width: 48ch;
}
.vss-panel .btn {
  flex: none;
  background: var(--red);
}
.vss-panel .btn:hover {
  background: #951821;
}

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

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}
.partner {
  min-height: clamp(140px, 11vw, 184px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.partner:hover {
  border-color: var(--blue);
  background: var(--pale);
}
.partner img {
  width: 100%;
  height: clamp(76px, 6.2vw, 104px);
  object-fit: contain;
}

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

.footer {
  background: var(--ink);
  color: white;
  padding: clamp(64px, 6vw, 96px) 0 110px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 5vw, 96px);
}
.footer .brand img {
  width: 60px;
  height: 84px;
  padding: 8px;
  background: white;
  border-radius: 10px;
}
.footer .brand-text {
  font-size: 20px;
}
.footer .brand-text small {
  color: #c4d6de;
}
.footer-intro {
  margin-top: 26px;
  color: #c4d6de;
  max-width: 34ch;
}
.footer .social-btn {
  border-color: #ffffff4d;
}
.footer .social-btn:hover {
  background: white;
  color: var(--ink);
}
.footer h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cd-name {
  font-size: 16px;
  font-weight: 650;
  color: #dbe7ec;
}
.cd-name b {
  display: block;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 6px;
}
.cd-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}
.cd-link:hover {
  text-decoration: underline;
}
.cd-link .icon {
  width: 18px;
  height: 18px;
}
.footer-note {
  margin-top: 16px;
  font-size: var(--fs-meta);
  color: #a9c0ca;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid #ffffff26;
  font-size: var(--fs-meta);
  color: #c4d6de;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer-links button,
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-meta);
}
.footer-links button:hover,
.footer-links a:hover {
  color: white;
  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;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 30px #14323d30;
  font-size: 14px;
  font-weight: 650;
}
.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(--ink);
  color: white;
}
.presentation-nav a:hover:not([aria-current="page"]) {
  background: var(--pale);
}
.presentation-nav .icon {
  width: 18px;
  height: 18px;
}
dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 30px 100px #0004;
}
dialog::backdrop {
  background: #031421a8;
  backdrop-filter: blur(4px);
}
.dialog-body {
  padding: clamp(28px, 4vw, 44px);
}
.dialog-body .eyebrow {
  display: block;
  font-size: var(--fs-small);
  font-weight: 750;
  color: var(--blue);
  margin-bottom: 12px;
}
.dialog-body h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  margin-bottom: 16px;
  padding-right: 40px;
}
.dialog-body p {
  color: var(--muted);
  margin-bottom: 20px;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pale);
}
.dialog-close:hover {
  background: var(--line);
}
.dialog-media {
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 40px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--muted);
  text-align: center;
}
.dialog-media .icon {
  width: 40px;
  height: 40px;
}
.dialog-media .small {
  font-size: var(--fs-meta);
}
.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: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
}
.resource-links a:hover {
  background: var(--pale);
}
.resource-links small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--muted);
}

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

@media (max-width: 1240px) {
  .menu-toggle {
    display: grid;
  }
  .header-actions {
    margin-left: auto;
  }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    padding: 16px var(--gutter) 24px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 20px #14323d14;
  }
  .nav[data-open="true"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
  }
  .nav a {
    font-size: 18px;
    min-height: 56px;
  }
}

@media (max-width: 1000px) {
  .header .help-link {
    display: none;
  }
  .nav .nav-help {
    display: flex;
    color: var(--red);
  }
}

@media (max-width: 1100px) {
  .clubs-layout {
    grid-template-columns: 1fr 1fr;
  }
  .club-result {
    flex-direction: column;
    align-items: flex-start;
  }
  .discipline-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .discipline-card {
    grid-row: auto;
    aspect-ratio: 4 / 4.4;
  }
  .partner-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .partner {
    grid-column: span 2;
  }
  .partner:nth-child(4) {
    grid-column: 2 / 4;
  }
  .agenda-layout {
    grid-template-columns: 1fr;
  }
  .agenda-intro {
    position: static;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .news-side .news-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .news-side .news-meta {
    margin-top: 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --fs-body: 16px;
  }
  .clubs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The photo starts below the header, so the whole kick stays in frame,
     and the white page rises into its bottom edge. */
  .hero {
    --arch: 56px;
  }
  .hero-stage {
    display: block;
    min-height: 0;
    padding-top: var(--header-h, 85px);
    background: #06090b;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    z-index: auto;
    height: clamp(300px, 90vw, 560px);
  }
  .hero-photo:before {
    height: 30%;
    background: linear-gradient(#06090b, #06090b00);
  }
  .hero-panel {
    width: auto;
    max-width: none;
    margin: calc(-1 * var(--arch)) calc(-1 * var(--gutter)) 0;
    padding: 36px var(--gutter) 0;
  }
  .champion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .club-map {
    max-width: 640px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 24vw, 220px);
  }
  .gallery-grid > :last-child {
    grid-column: 1 / -1;
  }
  .vss-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .cd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 84px;
    padding-block: 12px;
    gap: 14px;
  }
  .brand img {
    width: 42px;
    height: 60px;
  }
  .brand-text {
    font-size: 17px;
  }
  .brand-text small {
    display: none;
  }
  .header .btn {
    display: none;
  }
  .nav[data-open="true"] {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .btn {
    justify-content: space-between;
  }
  .discipline-grid {
    grid-template-columns: 1fr;
  }
  .champion-grid {
    gap: 28px 12px;
  }
  .champion h3 {
    font-size: 19px;
  }
  .champion p {
    font-size: 15px;
  }
  .champion-label {
    margin-top: 14px;
    font-size: 15px;
  }
  .discipline-card {
    aspect-ratio: 4 / 3;
  }
  .capsule-grid {
    grid-template-columns: 1fr;
  }
  .capsule {
    aspect-ratio: 4 / 3.4;
  }
  .dept-controls {
    grid-template-columns: 1fr;
  }
  .club-result {
    flex-direction: column;
    align-items: flex-start;
  }
  .event {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
  }
  .event-date b {
    font-size: 30px;
  }
  .event-date span {
    margin-top: -12px;
  }
  .event > .round-arrow {
    display: none;
  }
  .news-side {
    grid-template-columns: 1fr;
  }
  .news-side .news-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .news-side .news-meta {
    margin-top: 0;
  }
  .news-side h3 {
    font-size: 18px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 42vw;
    gap: 6px;
    margin-inline: 6px;
  }
  .gallery-grid .span-2x2 {
    grid-column: 1 / -1;
  }

  .vss-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .vss-icon {
    width: 64px;
    height: 64px;
  }
  .vss-panel .btn {
    width: 100%;
    justify-content: space-between;
  }
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner,
  .partner:nth-child(4) {
    grid-column: auto;
  }
  .partner:last-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .presentation-nav {
    font-size: 14px;
  }
  .presentation-nav a {
    padding: 8px 10px;
  }
}

@media (max-width: 380px) {
  .champion-grid {
    grid-template-columns: 1fr;
  }
  .brand-text {
    font-size: 15px;
  }
  .presentation-nav a {
    padding-inline: 8px;
  }
  .presentation-nav > a:first-child {
    display: none;
  }
}

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