/* Steel Fit — claire, vive, en mouvement.
   Standalone stylesheet (the page no longer loads shared/base.css).
   Shape system, used everywhere with the same values:
   - one corner cut at 45°, always top right (photos via clip-path, boxes via a gradient);
   - a solid plate offset behind the large photos;
   - three slanted "speed" bars, always at the same angle, as the signature mark;
   - condensed capitals for section titles, second line in outline. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../shared/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0c1d33;
  --navy-2: #15294a;
  --blue: #0b62a8;
  --blue-deep: #084b82;
  --blue-light: #7db8ec;
  --sky: #d5e5f5;
  --ice: #eef4fa;
  --paper: #fff;
  --ink: #0c1d33;
  --muted: #4a5f72;
  --line: #d3dfeb;
  --accent: #ff6a2b;
  --red: #b8202a;
  /* Department colours: a gradient of the orange accent, from apricot (22)
     to the accent itself (56), in number order so lists read as one ramp.
     Always with navy numbers (at least 5.5:1). Used as-is everywhere. */
  --cd22: #f8d0a2;
  --cd29: #f8b478;
  --cd35: #f7904b;
  --cd56: #f46622;
  /* Vivid versions, used when the department is selected. */
  --cd22-vivid: #ffc981;
  --cd29-vivid: #ffab51;
  --cd35-vivid: #fd8722;
  --cd56-vivid: #f95801;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font: Manrope, "Segoe UI", Arial, sans-serif;

  --gutter: clamp(20px, 4.5vw, 80px);
  --max: 1560px;
  --section: clamp(64px, 7vw, 112px);
  --cut-l: clamp(34px, 3.4vw, 60px);
  --cut-m: clamp(22px, 1.9vw, 32px);
  --cut-s: 14px;
  --plate: clamp(14px, 1.5vw, 24px);

  --fs-body: 17px;
  --fs-small: 15px;
  --fs-lead: clamp(18px, 1.3vw, 21px);
  --fs-h1: clamp(52px, min(6.4vw, 10.5svh), 120px);
  --fs-h2: clamp(40px, 4.2vw, 72px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
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,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
h1 > span,
h2 > span {
  display: block;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
}
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.9;
}
: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;
}

/* ---------- Shape system ---------- */

.cut {
  --cut: var(--cut-l);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    0 100%
  );
}
.cut-s {
  --cut: var(--cut-s);
}
.plate {
  position: absolute;
  inset: 0;
  transform: translate(var(--plate), var(--plate));
  background: var(--blue);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut-l)) 0,
    100% var(--cut-l),
    100% 100%,
    0 100%
  );
}
.plate-sky {
  background: var(--sky);
}
.plate-accent {
  background: var(--accent);
}
.bars {
  display: inline-flex;
  gap: 5px;
  margin-right: 14px;
  flex: none;
}
.bars i {
  width: 7px;
  height: 19px;
  background: var(--accent);
  transform: skewX(-24deg);
}
.bars i:nth-child(2) {
  opacity: 0.66;
}
.bars i:nth-child(3) {
  opacity: 0.36;
}

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

.section {
  padding-block: var(--section);
}
.kicker {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  font: 600 18px/1.2 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.note {
  font-size: var(--fs-small);
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(36px, 3.6vw, 60px);
}
.section-aside {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 36ch;
}
.section-aside p {
  color: var(--muted);
}
.btn {
  --btn-bg: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 12px 28px 12px 26px;
  background: linear-gradient(315deg, transparent 9px, var(--btn-bg) 0);
  color: white;
  font: 600 19px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover {
  --btn-bg: var(--blue-deep);
}
.btn-ghost {
  --btn-bg: var(--paper);
  color: var(--navy);
}
.btn-ghost:hover {
  --btn-bg: var(--sky);
}
.btn-white {
  --btn-bg: white;
  color: var(--blue);
}
.btn-white:hover {
  --btn-bg: var(--ice);
}
.btn-red {
  --btn-bg: var(--red);
}
.btn-red:hover {
  --btn-bg: #951821;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font: 600 19px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}
.text-link .icon {
  transition: transform 0.2s;
}
.text-link:hover .icon {
  transform: translateX(4px);
}
.go {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  background: linear-gradient(315deg, transparent 7px, var(--navy) 0);
  color: white;
}
.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 {
  background: linear-gradient(315deg, transparent 7px, var(--blue) 0);
}
/* 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: 3;
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible:before {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.social-btn .icon {
  width: 18px;
  height: 18px;
}
.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 96px;
  padding-block: 16px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  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: 800 23px/0.95 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand-text small {
  display: block;
  max-width: 24ch;
  margin-top: 7px;
  font: 550 14px/1.3 var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
/* Nav items speak the button language: condensed caps, cut-corner block on hover and for the current page. */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  font: 600 19px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
}
.nav a:hover {
  background: linear-gradient(315deg, transparent 9px, var(--ice) 0);
}
.nav a[aria-current="page"] {
  background: linear-gradient(315deg, transparent 9px, var(--sky) 0);
}
.nav .nav-help {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  place-items: center;
  background: linear-gradient(315deg, transparent 9px, var(--ice) 0);
  color: var(--navy);
}
.menu-toggle:hover {
  background: linear-gradient(315deg, transparent 9px, var(--sky) 0);
}
.menu-toggle .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Giant word (hero + closing call) ---------- */

.big-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  overflow: hidden;
  white-space: nowrap;
  font: 800 clamp(160px, 24vw, 420px) / 0.8 var(--display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px #ffffff30;
  pointer-events: none;
  user-select: none;
}
.hero .big-word {
  -webkit-text-stroke-color: #b7cfe6;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ice);
  /* The bottom padding leaves a clear band for the giant word under the content. */
  padding-block: clamp(36px, 4vw, 72px)
    calc(clamp(160px, 24vw, 420px) * 0.5 + 24px);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(40px, 4.4vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.88;
}
.hero h1 .outline {
  -webkit-text-stroke-width: 2.5px;
}
.hero .lead {
  margin-top: clamp(22px, 2vw, 32px);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 2.4vw, 38px);
}
.community {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(26px, 2.4vw, 38px);
  padding: 14px 22px 14px 14px;
  background: linear-gradient(225deg, transparent 10px, white 0);
}
.faces {
  display: flex;
  flex: none;
}
.faces img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}
.faces img + img {
  margin-left: -14px;
}
.community b {
  display: block;
  font: 800 21px/1.1 var(--display);
  letter-spacing: 0.01em;
}
.community span {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.hero-visual {
  position: relative;
  margin-right: var(--plate);
  margin-bottom: var(--plate);
}
.hero-photo {
  aspect-ratio: 1 / 1.02;
  max-height: calc(100svh - 186px);
  width: 100%;
}
.bars-xl {
  position: absolute;
  z-index: 2;
  top: clamp(40px, 4vw, 64px);
  left: clamp(-44px, -2.6vw, -28px);
  gap: clamp(8px, 0.7vw, 12px);
  margin: 0;
}
.bars-xl i {
  width: clamp(12px, 1vw, 17px);
  height: clamp(64px, 6vw, 104px);
}
.map-card {
  position: absolute;
  z-index: 2;
  left: clamp(-64px, -3.6vw, -32px);
  bottom: clamp(32px, 3.4vw, 56px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(225deg, transparent 12px, white 0);
  box-shadow: 0 18px 36px #0c1d3326;
}
.map-card .map-preview {
  width: clamp(104px, 8.5vw, 150px);
  flex: none;
}
.map-card b {
  display: block;
  font: 800 clamp(22px, 1.7vw, 28px) / 1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.map-card small {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--muted);
}
.map-card:hover .go {
  background: linear-gradient(315deg, transparent 7px, var(--blue) 0);
}

/* ---------- Map (shared by the hero card and the club finder) ---------- */

.map-dept {
  cursor: pointer;
  outline: none;
}
.map-dept path {
  stroke: var(--map-gap, white);
  stroke-width: 2;
  stroke-linejoin: round;
  fill: var(--dept-color);
  transition:
    fill 0.2s,
    fill-opacity 0.2s;
}
.map-dept text {
  fill: var(--navy);
  font: 800 17px var(--display);
  text-anchor: middle;
  pointer-events: none;
}
/* The selected department switches to the vivid version of its colour and
   the others dim into the background, their number keeping its colour;
   outlines and numbers keep one weight. */
[data-dept="22"] {
  --dept-vivid: var(--cd22-vivid);
}
[data-dept="29"] {
  --dept-vivid: var(--cd29-vivid);
}
[data-dept="35"] {
  --dept-vivid: var(--cd35-vivid);
}
[data-dept="56"] {
  --dept-vivid: var(--cd56-vivid);
}
.map-dept[aria-pressed="true"] path {
  fill: var(--dept-vivid);
}
.map-dept[aria-pressed="false"] path {
  fill-opacity: 0.25;
}
.map-dept[aria-pressed="false"] text {
  fill: var(--dept-color);
}
.map-dept[aria-pressed="false"]:hover path {
  fill-opacity: 0.4;
}

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

.stats {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  padding-block: clamp(56px, 6vw, 100px);
}
.stats-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: var(--accent);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}
.stats-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(calc(24% + 12px) 0, 100% 0, 100% 100%, 12px 100%);
}
.stats-inner {
  position: relative;
}
.stats .kicker {
  color: var(--blue-light);
}
.stats h2 {
  max-width: 12ch;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 64%;
  margin-top: clamp(34px, 3.4vw, 56px);
}
.stat {
  padding-inline: clamp(16px, 2vw, 32px);
  border-left: 1px solid #ffffff2e;
}
.stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.stat strong {
  display: block;
  font: 800 clamp(56px, 5.4vw, 100px) / 0.9 var(--display);
  letter-spacing: 0.005em;
}
.stat em {
  font-style: normal;
  color: var(--accent);
}
.stat span {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #c7d5e3;
}

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

.everyone-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: center;
}
.everyone-visual {
  position: relative;
  margin: 0 var(--plate) var(--plate) 0;
}
.everyone-visual .photo {
  aspect-ratio: 4 / 4.6;
}
.float-chip {
  position: absolute;
  z-index: 2;
  right: clamp(-48px, -2.6vw, -24px);
  bottom: clamp(40px, 4vw, 64px);
  padding: 18px 26px 18px 22px;
  background: linear-gradient(225deg, transparent 12px, var(--navy) 0);
  color: white;
}
.float-chip b {
  display: block;
  font: 800 clamp(26px, 2vw, 34px) / 1 var(--display);
  text-transform: uppercase;
}
.float-chip span {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  color: #c7d5e3;
}
.everyone-copy .lead {
  margin-top: 22px;
}
.capsule-list {
  display: grid;
  gap: 12px;
  margin-block: 34px 20px;
}
.capsule {
  display: grid;
  grid-template-columns: clamp(112px, 9vw, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 1.6vw, 26px);
  width: 100%;
  padding: 10px 14px 10px 10px;
  background: linear-gradient(225deg, transparent 12px, var(--ice) 0);
  text-align: left;
}
.capsule:hover {
  background: linear-gradient(225deg, transparent 12px, var(--sky) 0);
}
.capsule:hover .go {
  background: linear-gradient(315deg, transparent 7px, var(--blue) 0);
}
.capsule-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.capsule-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--blue);
}
.play .icon {
  width: 17px;
  height: 17px;
  margin-left: 2px;
  fill: currentColor;
  stroke-width: 1;
}
.capsule-text strong {
  display: block;
  font: 800 clamp(26px, 2vw, 32px) / 1 var(--display);
  text-transform: uppercase;
}
.capsule-text small {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-small);
  color: var(--muted);
}

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

.disciplines {
  background: var(--ice);
}
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  align-items: start;
}
.discipline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 16px;
}
.discipline:nth-child(even) {
  margin-top: clamp(40px, 5vw, 88px);
}
.discipline .photo {
  --cut: var(--cut-m);
  grid-column: 1 / -1;
  aspect-ratio: 3 / 3.9;
}
.discipline h3 {
  font-size: clamp(24px, 1.9vw, 32px);
  text-transform: uppercase;
}
.discipline p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}
.discipline .go {
  align-self: start;
}

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

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 72px);
}
.news-lead {
  position: relative;
}
.split {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy);
}
.split img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.split-a {
  clip-path: polygon(0 0, 64% 0, 40% 100%, 0 100%);
}
.split-b {
  clip-path: polygon(64% 0, 100% 0, 100% 100%, 40% 100%);
}
.split-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.split-line line {
  stroke: var(--accent);
  stroke-width: 10;
}
.news-lead:hover .split img {
  transform: scale(1.03);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--muted);
}
.news-meta span:first-child {
  color: var(--blue);
}
.news-lead .news-meta {
  margin-top: 24px;
}
.news-lead h3 {
  margin-top: 10px;
  font-size: clamp(30px, 2.5vw, 42px);
  max-width: 26ch;
}
.news-lead p {
  margin-top: 12px;
  max-width: 54ch;
  color: var(--muted);
}
.news-lead .text-link {
  margin-top: 10px;
}
.news-list {
  display: grid;
  grid-auto-rows: 1fr;
}
.news-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(120px, 11vw, 176px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 1.6vw, 26px);
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child {
  padding-top: 0;
}
.news-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.news-item .photo {
  aspect-ratio: 4 / 3;
}
.news-item h3 {
  margin-top: 6px;
  font-size: clamp(22px, 1.7vw, 28px);
}

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

.agenda {
  background: var(--ice);
}
.agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  text-align: right;
}
.agenda-head .kicker {
  justify-content: flex-end;
}
.chevrons {
  display: flex;
  align-self: center;
  gap: 2px;
}
.chevrons i {
  width: clamp(40px, 3.4vw, 60px);
  height: clamp(64px, 5.4vw, 96px);
  background: var(--accent);
  clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%);
}
.chevrons i + i {
  opacity: 0.4;
}
.agenda-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-block: clamp(32px, 3vw, 48px) 28px;
}
.agenda-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  min-height: 48px;
  padding: 10px 22px;
  background: linear-gradient(315deg, transparent 8px, white 0);
  font: 600 18px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter[aria-pressed="true"] {
  background: linear-gradient(315deg, transparent 8px, var(--navy) 0);
  color: white;
}
.event-count {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
}
.event {
  position: relative;
  background: linear-gradient(
    225deg,
    transparent calc(var(--cut-m) * 0.7071),
    white 0
  );
}
.event .photo {
  --cut: var(--cut-m);
  aspect-ratio: 16 / 10;
}
/* The date plate overlaps the bottom edge of the photo. */
.event-date {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: -34px 0 0 20px;
  width: max-content;
  padding: 10px 18px 10px 16px;
  background: linear-gradient(315deg, transparent 8px, var(--navy) 0);
  color: white;
}
.event-date b {
  font: 800 44px/0.9 var(--display);
}
.event-date span {
  font: 600 20px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.event-body {
  padding: 18px 24px 26px;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--muted);
}
.dept-tag:before {
  content: "";
  width: 6px;
  height: 16px;
  background: var(--dept-color);
  transform: skewX(-24deg);
}
.public-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e4f3ea;
  color: #1c5b3e;
  font-size: var(--fs-small);
  font-weight: 750;
}
.public-tag .icon {
  width: 15px;
  height: 15px;
}
.license-tag {
  font-size: var(--fs-small);
  color: var(--muted);
}
.event h3 {
  margin-block: 12px 10px;
  font-size: clamp(24px, 1.9vw, 30px);
}
.event-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}
.event-info .icon {
  width: 18px;
  height: 18px;
}
.event:hover h3 {
  color: var(--blue);
}
.agenda-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

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

.clubs-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding: clamp(32px, 4.4vw, 80px);
  background: linear-gradient(
    225deg,
    transparent calc(var(--cut-l) * 0.7071),
    var(--navy) 0
  );
  color: white;
}
.clubs .kicker {
  color: var(--blue-light);
}
.clubs h2 .outline {
  -webkit-text-stroke-color: var(--blue-light);
}
.clubs .lead {
  margin-top: 20px;
  color: #c7d5e3;
}
.dept-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 34px;
}
.dept-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  background: linear-gradient(315deg, transparent 8px, var(--navy-2) 0);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
}
.dept-control b {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 36px;
  background: linear-gradient(315deg, transparent 6px, var(--dept-color) 0);
  color: var(--navy);
  font: 800 20px/1 var(--display);
}
.dept-control:hover {
  background: linear-gradient(315deg, transparent 8px, #1f3a63 0);
}
.dept-control[aria-pressed="true"] {
  background: linear-gradient(315deg, transparent 8px, white 0);
  color: var(--navy);
}
.dept-control[aria-pressed="true"] b {
  background: linear-gradient(315deg, transparent 6px, var(--dept-vivid) 0);
}
.club-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #ffffff26;
}
.club-result b {
  font: 800 clamp(28px, 2.2vw, 36px) / 1 var(--display);
  text-transform: uppercase;
}
.club-result p {
  margin-top: 6px;
  font-size: var(--fs-small);
  color: #c7d5e3;
}
.club-result a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 24px;
  /* Blue like the other main buttons: the selected department stays the
     only bright orange of the club finder. */
  background: linear-gradient(315deg, transparent 9px, var(--blue) 0);
  color: white;
  font: 600 19px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.club-result a:hover {
  background: linear-gradient(315deg, transparent 9px, var(--blue-deep) 0);
}
.club-map svg {
  width: 100%;
  overflow: visible;
}
.clubs {
  --map-gap: var(--navy);
}
.map-dept:focus-visible path {
  stroke: white;
  stroke-width: 4;
  stroke-dasharray: 6 4;
}

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

.champion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
}
.champion .photo {
  --cut: var(--cut-m);
  aspect-ratio: 4 / 5;
}
.champion-dept {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 16px 6px;
  background: var(--dept-color);
  color: var(--navy);
  font: 800 30px/1 var(--display);
}
.champion-label {
  margin-top: 20px;
  font: 600 17px/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.champion h3 {
  margin-top: 8px;
  font-size: clamp(28px, 2.1vw, 36px);
  text-transform: uppercase;
}
.champion-meta {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}
.champions .note {
  margin-top: 32px;
}

/* ---------- Rejoindre ---------- */

.join {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: white;
  padding-block: clamp(72px, 8vw, 128px);
}
.join-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
}
.join .kicker {
  color: white;
}
.join h2 {
  font-size: clamp(48px, 5.6vw, 104px);
}
.join h2 .outline {
  -webkit-text-stroke-color: white;
}
.join .lead {
  margin-block: 24px 34px;
  color: #dcebf8;
}
.join-visual {
  position: relative;
  margin: 0 var(--plate) var(--plate) 0;
}
.join-visual .photo {
  aspect-ratio: 4 / 4.4;
}

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

.vss {
  padding-bottom: 0;
}
.vss-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 56px);
  background: linear-gradient(
    225deg,
    transparent calc(var(--cut-m) * 0.7071),
    #fff0f1 0
  );
}
.vss-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: white;
  color: var(--red);
}
.vss-icon .icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.6;
}
.vss .kicker {
  margin-bottom: 10px;
  color: var(--red);
}
.vss h2 {
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1;
  color: var(--red);
}
.vss-copy p:last-child {
  margin-top: 10px;
  color: #7a3a44;
}

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

.partners .section-head {
  align-items: center;
}
.partners h2 {
  font-size: clamp(34px, 3vw, 52px);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}
.partner {
  display: grid;
  place-items: center;
  min-height: clamp(140px, 11vw, 184px);
  padding: 24px;
  background: linear-gradient(
    225deg,
    transparent calc(var(--cut-m) * 0.7071),
    var(--ice) 0
  );
}
.partner:hover {
  background: linear-gradient(
    225deg,
    transparent calc(var(--cut-m) * 0.7071),
    var(--sky) 0
  );
}
.partner img {
  width: 100%;
  height: clamp(76px, 6.2vw, 104px);
  object-fit: contain;
  /* Several logos ship on a white background: blend it into the tile. */
  mix-blend-mode: multiply;
}

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

.footer {
  margin-top: var(--section);
  background: var(--navy);
  color: white;
  padding: clamp(64px, 6vw, 96px) 0 110px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: clamp(32px, 4vw, 72px);
}
.footer-cds {
  grid-column: 1 / -1;
  padding-top: clamp(32px, 3vw, 44px);
  border-top: 1px solid #ffffff24;
}
.footer .brand img {
  width: 76px;
  height: 100px;
  padding: 8px;
  background: linear-gradient(225deg, transparent 8px, white 0);
}
.footer .brand-text {
  font-size: 26px;
}
.footer .brand-text small {
  color: #c7d5e3;
}
.footer-intro {
  margin-top: 24px;
  max-width: 34ch;
  color: #c7d5e3;
}
.footer .social-btn {
  border-color: #ffffff40;
}
.footer .social-btn:hover {
  background: white;
  border-color: white;
  color: var(--navy);
}
.footer h3 {
  margin-bottom: 20px;
  font: 600 20px/1.1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.footer-col li + li {
  margin-top: 4px;
}
.footer-col a,
.footer-col button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #dbe6f0;
  text-align: left;
}
.footer-col a:hover,
.footer-col button:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cd-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  font-weight: 650;
  color: #dbe6f0;
}
.cd-name b {
  font: 800 40px/1 var(--display);
  color: var(--dept-color);
}
.cd .socials {
  gap: 8px;
  margin-top: 12px;
}
.cd .social-btn {
  width: 40px;
  height: 40px;
}
.cd-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}
.cd-link:hover {
  text-decoration: underline;
}
.cd-link .icon {
  width: 16px;
  height: 16px;
}
.footer-note {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: #9fb4c7;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid #ffffff24;
  font-size: var(--fs-small);
  color: #c7d5e3;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 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: 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 #0c1d3333;
  font: 650 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(--ice);
}
.presentation-nav .icon {
  width: 18px;
  height: 18px;
}
dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 85dvh;
  padding: 0;
  border: 0;
  color: var(--ink);
  box-shadow: 0 30px 100px #0005;
}
dialog::backdrop {
  background: #06121fb0;
  backdrop-filter: blur(4px);
}
.dialog-body {
  padding: clamp(28px, 4vw, 44px);
}
.dialog-body .eyebrow {
  display: block;
  margin-bottom: 12px;
  font: 600 18px/1.2 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
}
.dialog-body h2 {
  margin-bottom: 16px;
  padding-right: 44px;
  font-size: clamp(34px, 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: 46px;
  height: 46px;
  background: linear-gradient(315deg, transparent 7px, var(--ice) 0);
}
.dialog-close:hover {
  background: linear-gradient(315deg, transparent 7px, var(--sky) 0);
}
.dialog-media {
  display: grid;
  place-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 40px;
  background: var(--ice);
  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;
  background: linear-gradient(225deg, transparent 10px, var(--ice) 0);
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
}
.resource-links a:hover {
  background: linear-gradient(225deg, transparent 10px, var(--sky) 0);
}
.resource-links small {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}

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

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

@media (max-width: 1100px) {
  .discipline-grid,
  .champion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discipline:nth-child(even) {
    margin-top: clamp(40px, 6vw, 72px);
  }
  .discipline:nth-child(3) {
    margin-top: -24px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .clubs-panel {
    grid-template-columns: 1fr;
  }
  .club-map {
    max-width: 640px;
  }
  .stat-grid {
    width: 100%;
  }
  .stats-photo {
    display: none;
  }
  .partner-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .partner {
    grid-column: span 2;
  }
  .partner:nth-child(4) {
    grid-column: 2 / 4;
  }
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --fs-body: 16px;
  }
  .hero-grid,
  .everyone-grid,
  .join-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-photo {
    aspect-ratio: 4 / 3.2;
    max-height: none;
  }
  .map-card {
    left: 16px;
    bottom: 16px;
  }
  .bars-xl {
    top: -22px;
    left: 18px;
  }
  .bars-xl i {
    height: 52px;
  }
  .everyone-visual,
  .join-visual {
    max-width: 560px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .vss-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .vss-panel .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .cd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 84px;
    padding-block: 12px;
    gap: 14px;
  }
  .brand img {
    width: 42px;
    height: 60px;
  }
  .brand-text {
    font-size: 20px;
  }
  .brand-text small {
    display: none;
  }
  .header .btn {
    display: none;
  }
  .nav[data-open="true"] {
    grid-template-columns: 1fr;
  }
  .section-head,
  .agenda-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .agenda-head {
    text-align: left;
  }
  .agenda-head .kicker {
    justify-content: flex-start;
  }
  .chevrons {
    display: none;
  }
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .button-row .btn {
    justify-content: space-between;
  }
  .community {
    display: flex;
  }
  .map-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -40px 16px 0;
  }
  .map-card .map-preview {
    width: 92px;
  }
  .hero-visual {
    margin-right: var(--plate);
  }
  .float-chip {
    right: 12px;
    bottom: 24px;
  }
  .capsule {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }
  .discipline-grid {
    grid-template-columns: 1fr;
  }
  .discipline:nth-child(n) {
    margin-top: 0;
  }
  .discipline .photo {
    aspect-ratio: 4 / 3;
  }
  .news-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .news-item .go {
    display: none;
  }
  .dept-controls {
    grid-template-columns: 1fr;
  }
  .champion-grid {
    gap: 28px 12px;
  }
  .champion h3 {
    font-size: 26px;
  }
  .champion-label {
    font-size: 15px;
  }
  .vss-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .vss-panel .btn {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    text-align: left;
  }
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }
  .partner,
  .partner:nth-child(4) {
    grid-column: auto;
  }
  .partner:last-child {
    grid-column: 1 / -1;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .presentation-nav a {
    padding: 8px 10px;
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 18px;
  }
  .map-card .map-preview {
    display: none;
  }
  .champion-grid {
    grid-template-columns: 1fr;
  }
  .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;
  }
}
