@font-face {
  font-family: Barlow;
  src: url("assets/texte.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/accent.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/titre.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #f5f5ee;
  --ink: #10234a;
  --blue: #143abd;
  --yellow: #f8df36;
  --white: #fff;
  --muted: #4c5871;
  --line: #a4adbf;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --measure: 80rem;
  color: var(--ink);
  background: var(--paper);
  font: 400 100%/1.52 Barlow, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; top: .65rem; left: .65rem; z-index: 5; transform: translateY(-160%); padding: .75rem; color: var(--ink); background: var(--yellow); }
.skip:focus { transform: none; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.header { background: var(--paper); position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 5.4rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1.05; }
.brand img { width: 3.1rem; height: auto; border-radius: 50%; }
.brand strong { display: block; font: 800 2rem/.9 var(--display); }
.brand small { display: block; margin-top: .27rem; font-size: .91rem; font-weight: 600; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.9vw, 2.8rem); }
.desktop-nav a { padding-block: .65rem; text-decoration: none; font-weight: 600; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.mobile-menu { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.05rem; gap: 1rem; padding: .67rem 1.23rem; text-decoration: none; font-weight: 600; border: 2px solid transparent; line-height: 1.25; }
.button:hover { text-decoration: underline; text-underline-offset: .2em; }
.button-outline { border-color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--white); }
.button-yellow { color: var(--ink); background: var(--yellow); }
.button-yellow:focus-visible { outline-color: var(--white); }
.button-blue { color: var(--white); background: var(--blue); }
.button-blue:focus-visible { outline-color: var(--ink); }

.hero { display: grid; grid-template-columns: 1fr; background: var(--blue); color: var(--white); }
.hero-copy { padding: clamp(2.25rem, 5.2vw, 6rem) var(--gutter); }
.hero-content { max-width: 38rem; }
.location { display: flex; align-items: center; gap: .58rem; font-weight: 600; font-size: .97rem; }
.location span { width: .5rem; height: .5rem; background: var(--yellow); transform: rotate(45deg); }
.hero h1, h2 { font-family: var(--display); font-weight: 800; line-height: .94; letter-spacing: -.018em; }
.hero h1 { font-size: clamp(3.1rem, 6vw, 7rem); margin-top: .8rem; text-transform: uppercase; }
.hero-intro { font-size: clamp(1.05rem, 1.5vw, 1.27rem); max-width: 40ch; margin-block: 1.22rem 1.48rem; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 1.52; object-fit: cover; object-position: 52% 48%; }

.section { padding-block: clamp(3.1rem, 6vw, 6rem); }
h2 { font-size: clamp(2.68rem, 4.7vw, 5.05rem); text-transform: uppercase; }
h2 + p { margin-top: 1.2rem; }
.section p, .club p, .contact p { font-size: 1.13rem; max-width: 49ch; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; flex-wrap: wrap; gap: .42rem; margin-top: .45rem; font-weight: 600; text-underline-offset: .24em; }
.text-link:hover { color: var(--blue); }
summary { display: flex; justify-content: space-between; align-items: center; gap: .8rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.club { color: var(--white); background: var(--ink); }
.club-inner { display: grid; gap: 1.85rem clamp(2.6rem, 7vw, 7rem); align-items: center; padding-block: clamp(2.5rem, 6.2vw, 6rem); }
.club .text-link:hover { color: var(--yellow); }

.contact { background: var(--blue); color: var(--white); }
.contact-inner { display: grid; gap: 1.35rem; align-items: center; padding-block: clamp(2.6rem, 6vw, 5.1rem); }
.footer .brand img { width: 2.65rem; }
.footer .brand strong { font-size: 1.7rem; }

@media (min-width: 761px) {
  .hero { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
  .hero-copy { display: grid; justify-content: end; align-items: center; padding-right: clamp(1.2rem, 3.1vw, 3.3rem); }
  .hero-content { width: min(100%, 37rem); }
  .hero-photo img { position: absolute; inset: 0; }
  .club-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 4.3rem; }
  .brand img { width: 2.65rem; }
  .brand strong { font-size: 1.72rem; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { min-height: 2.75rem; padding: .35rem .62rem; border: 1px solid var(--ink); font-weight: 600; }
  .mobile-menu summary span { width: .5rem; height: .5rem; margin: -.2rem .1rem 0 0; border-bottom: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
  .mobile-menu[open] summary span { transform: translateY(.2rem) rotate(225deg); }
  .mobile-menu nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; border-bottom: 2px solid var(--ink); padding: .5rem var(--gutter); background: var(--paper); }
  .mobile-menu nav a { min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; text-decoration: none; }
  .mobile-menu nav a + a { border-top: 1px solid var(--line); }
  }

/* Navigation and editorial headings */
.desktop-nav { gap: clamp(.65rem, 1.9vw, 1.9rem); }
.header a[aria-current="page"]:not(.button) {
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 2px;
}
h3 { margin: 0; font: 800 clamp(1.55rem, 2.5vw, 2.6rem)/1.02 var(--display); }
figure img { width: 100%; height: auto; }
p.meta { color: var(--blue); font-size: 1rem; font-weight: 600; }
.section-head { display: grid; gap: .85rem; margin-bottom: clamp(1.4rem, 3.2vw, 2.65rem); }
.section-head p { margin: 0; }
.editorial-stack { display: grid; gap: 1rem; align-content: start; justify-items: start; }

/* Home */
.hero-copy { padding-block: clamp(2.5rem, 6vw, 6rem); }
.proof-strip { color: var(--ink); background: var(--yellow); }
.proof-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .15rem 1.2rem;
  padding-block: .45rem;
  font-size: .96rem;
  font-weight: 600;
}
.proof-strip a, .proof-strip-inner > span {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-underline-offset: .18em;
}
.intro-split, .solution-grid, .faq, .contact-grid {
  display: grid;
  gap: clamp(1.35rem, 5vw, 5rem);
  align-items: start;
}
.solution-band { background: #e6ebf5; }
.solution-grid { align-items: center; }
.solution-grid img, .club figure img {
  aspect-ratio: 1.48;
  object-fit: cover;
  object-position: center 57%;
}
.solution-grid img { object-position: 78% 55%; }
.club figure img { aspect-ratio: 1.25; }
.discipline-grid, .group-cards, .format-grid {
  display: grid;
  gap: 1rem;
}
.discipline-grid article { border-top: 3px solid var(--blue); padding-block: 1rem; }
.discipline-grid h3 + p, .group-cards h3 + p, .steps p { margin-top: .6rem; }
.event-ribbon {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  padding: 1.15rem 1.25rem;
  background: var(--yellow);
}
.event-ribbon strong {
  display: block;
  font: 800 clamp(1.65rem, 3vw, 2.8rem)/1 var(--display);
}
.event-ribbon small { font-size: 1rem; display: block; margin-top: .24rem; }
.event-ribbon > span:last-child { font-size: 1.65rem; }
.event-ribbon:hover strong { text-decoration: underline; text-underline-offset: .12em; }
.blue-panel { background: var(--ink); color: var(--white); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  counter-reset: step;
  display: grid;
  gap: 1.05rem 1.4rem;
}
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding: .8rem .15rem; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  margin-bottom: .65rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}
.group-cards article, .format-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 1.05rem clamp(1rem, 2.1vw, 2rem) 1rem;
}
.group-cards article { display: flex; flex-direction: column; align-items: flex-start; }
.group-cards h3, .format-grid h3 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); margin-top: .45rem; }
.group-cards a { margin-top: auto; padding-top: .8rem; min-height: 3.25rem; }
.format-grid + a { margin-top: .85rem; }

/* Interior routes */
.inner-hero { color: var(--white); background: var(--blue); }
.inner-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(1.35rem, 4.6vw, 4rem);
  padding-block: clamp(2.35rem, 5.5vw, 5.25rem);
}
.inner-hero h1 {
  max-width: 15ch;
  font: 800 clamp(3.35rem, 6.5vw, 7rem)/.94 var(--display);
  letter-spacing: -.018em;
  text-transform: uppercase;
}
.inner-hero h1 + p {
  max-width: 55ch;
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  margin-top: 1rem;
}
.inner-hero .button { margin-top: 1.2rem; }
.inner-hero figure img { aspect-ratio: 1.62; object-fit: cover; object-position: center 55%; }
.inner-hero:has(+ #message) { background: var(--ink); }
.inner-hero .breadcrumb { margin-bottom: .85rem; font-weight: 600; }
.breadcrumb a { text-underline-offset: .2em; }
.breadcrumb span { margin-left: .3rem; color: var(--yellow); }
.soft-panel { background: #e6ebf5; }
.group-switch { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; padding-bottom: 2.2rem; }
.action-list { margin: 0; padding-left: 1.35rem; display: grid; gap: .6rem; font-size: 1.13rem; }

.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 1.07rem; min-height: 3.05rem; font-weight: 600; padding-block: .65rem; }
.faq summary span {
  width: .6rem; height: .6rem; flex: 0 0 auto; margin-right: .35rem;
  border-bottom: 2px solid; border-right: 2px solid; transform: rotate(45deg);
}
.faq details[open] summary span { transform: rotate(225deg); }
.faq details > div { padding: .12rem 1.45rem 1rem 0; max-width: 66ch; }
.contact-form { margin-top: 1.4rem; display: grid; gap: .95rem; max-width: 44rem; }
.contact-form[hidden] { display: none; }
.contact-form label { display: grid; gap: .32rem; font-weight: 600; }
.contact-form .optional { font-weight: 400; color: var(--muted); font-size: .97rem; }
.form-columns { display: grid; gap: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  min-height: 3rem; width: 100%; border: 1px solid var(--muted); color: inherit;
  font: inherit; font-weight: 400; background: var(--white); padding: .5rem .65rem; border-radius: 0;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; cursor: pointer; font-family: inherit; font-size: 1rem; }
.contact-aside { background: var(--white); border-top: 4px solid var(--blue); padding: 1.25rem; display: grid; gap: .65rem; }
.contact-aside h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.contact-aside a { color: var(--blue); min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; overflow-wrap: anywhere; }
.draft { margin-top: 1.6rem; background: #e6ebf5; border-left: 3px solid var(--blue); padding: 1.15rem; }
.draft h3 + p, .draft-body, .draft .button { margin-top: .6rem; }
.draft-body { white-space: pre-wrap; overflow-wrap: anywhere; }

.footer { border-top: 1px solid var(--line); }
.footer-grid {
  padding-block: 2.35rem;
  display: grid;
  gap: 1.2rem;
}
.footer-grid > div { display: grid; align-content: start; justify-items: start; gap: .18rem; }
.footer-grid > div > p { margin-top: .4rem; color: var(--muted); }
.footer-grid > div > a:not(.brand) { min-height: 2.75rem; display: inline-flex; align-items: center; text-underline-offset: .17em; }

@media (min-width: 640px) {
  .form-columns, .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) {
  .intro-split, .solution-grid, .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .discipline-grid, .group-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inner-hero-grid.with-image { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.35fr 1fr 1fr .7fr; }
}
@media (max-width: 760px) {
  .hero h1 br { display: none; }
  .proof-strip-inner { display: grid; gap: 0; }
  .proof-strip-inner > a + *, .proof-strip-inner > span + a { border-top: 1px solid var(--ink); }
  .solution-grid > div { grid-row: 1; }
  .mobile-menu nav a.button-outline { border: 0; border-top: 1px solid var(--line); padding-inline: 0; }
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* The season, the club archive and group guidance */
.session-examples, .profile-list, .event-archive { display: grid; gap: 1.25rem; }
.session-examples article, .profile, .event-archive article, .feature-event {
  border-top: 3px solid var(--blue);
  background: var(--white);
}
.session-examples article > div, .profile, .event-archive article > div, .feature-event > div {
  padding: clamp(1rem, 2.7vw, 2rem);
}
.session-examples h3 + p, .profile h3 + p, .event-archive h3 + p, .feature-event h2 + p { margin-top: .6rem; }
.session-examples p + p { margin-top: .6rem; }
.session-examples figure img, .event-archive figure img, .feature-event figure img {
  aspect-ratio: 1.58;
  object-fit: cover;
}
figcaption { color: var(--muted); font-size: .9rem; padding: .42rem .75rem; }
.profile { scroll-margin-top: 1rem; }
.profile h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.profile h3 span { font: 600 1rem/1.4 Barlow, system-ui, sans-serif; }
.profile ul { padding-left: 1.12rem; margin: 1rem 0; }
.profile li + li { margin-top: .45rem; }
.feature-event { display: grid; align-items: center; }
.feature-event .button { margin-top: 1rem; margin-right: .45rem; }
.feature-event .text-link { margin-bottom: .4rem; }
.season-list, .history-line, .result-list { list-style: none; padding: 0; margin: 0; }
.season-list li, .history-line li {
  display: grid;
  align-items: start;
  gap: .5rem 1.6rem;
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}
.season-list p, .history-line p { margin-top: .45rem; }
.season-list li > a { justify-self: start; margin: 0; }
.history-line li > time { font: 800 clamp(2.3rem, 5vw, 4.6rem)/1 var(--display); color: var(--blue); }
.club figcaption { color: var(--white); }

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: var(--ink);
}
.gallery-track figure { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-track img { aspect-ratio: 1.73; object-fit: cover; width: 100%; }
.gallery-track figcaption { color: var(--white); padding: .55rem 1rem; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 1.1rem; margin-top: .7rem; }
.gallery-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.gallery-controls button[aria-disabled="true"] { opacity: .52; cursor: default; }
.gallery-controls span { min-width: 7.5rem; text-align: center; }
.gallery + .text-link { margin-right: 1rem; }

.result-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  align-items: end;
  padding: 1rem;
  background: #e6ebf5;
  margin-bottom: 1.15rem;
}
.result-filters label { display: grid; gap: .3rem; font-weight: 600; }
.result-filters select {
  min-height: 2.75rem;
  min-width: min(100%, 10rem);
  background: var(--white);
  border: 1px solid var(--muted);
  color: var(--ink);
  padding: .4rem .55rem;
  font: inherit;
}
.result-filters p { align-self: center; }
.result-row {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  gap: .3rem 1rem;
  padding: .88rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.result-row > a { grid-column: 2; margin: 0; justify-self: start; }
.result-row h3 { margin-block: .12rem .25rem; }
.result-row small { display: inline-block; color: var(--muted); font-weight: 600; font-size: .92rem; }
.result-rank {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  color: var(--white);
  background: var(--blue);
  font: 800 2rem/1 var(--display);
}
.result-rank[data-rank="1"] { color: var(--ink); background: var(--yellow); }
[hidden] { display: none !important; }

@media (min-width: 761px) {
  .session-examples, .profile-list, .event-archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .season-list li { grid-template-columns: .72fr 2fr auto; }
  .history-line li { grid-template-columns: minmax(7rem, .45fr) minmax(0, 2fr); }
  .feature-event { grid-template-columns: 1.15fr 1fr; }
  .result-row { grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; }
  .result-row > a { grid-column: auto; }
  .gallery { max-width: 59rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: box-shadow .18s ease, transform .18s ease; }
  .button:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #10234a60; }
  .in-view { animation: arrive .42s ease-out both; }
  @keyframes arrive {
    from { opacity: .55; transform: translateY(.75rem); }
    to { opacity: 1; transform: none; }
  }
}

.inner-hero img[src$="boiron-arrivee.webp"],
.feature-event img[src$="boiron-arrivee.webp"],
.session-examples img[src$="boiron-arrivee.webp"],
.gallery-track img[src$="boiron-arrivee.webp"] { object-position: center 32%; }
.text-link { display: inline; line-height: 1.65; }
.text-link span { white-space: nowrap; }
.gallery + .text-link, .gallery + .text-link + .text-link { display: inline-block; }

/* Club photography, training timetable and result navigation */
.hero-photo img[src$="collectif-boiron-2026.webp"] { object-position: 50% 59%; }
.solution-grid { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
.solution-grid > div:first-child { grid-row: auto; }
.discipline-photos, .podium-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.9rem, 2vw, 1.55rem);
}
.discipline-photos figure, .podium-photos figure { background: var(--white); }
.discipline-photos figure { border-top: 4px solid var(--yellow); }
.discipline-photos img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.discipline-photos figcaption { display: grid; padding: .72rem 1rem; }
.discipline-photos strong { color: var(--ink); font: 800 1.65rem/1.15 var(--display); }
.inner-hero figcaption { color: var(--white); padding-inline: 0; }
.history-line figure { max-width: 22rem; }
.history-line figure img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.history-line figcaption { padding-inline: 0; }
.schedule-scroll { overflow-x: auto; }
.schedule { width: 100%; border-collapse: collapse; background: var(--white); min-width: 34rem; }
.schedule th, .schedule td { text-align: left; padding: .7rem .85rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.schedule thead th { color: var(--white); background: var(--ink); }
.schedule tbody th { font-weight: 600; color: var(--blue); }
.schedule td:nth-child(2) { white-space: nowrap; }
.schedule-scroll + .button { margin-top: 1rem; }
.boiron-programme { background: var(--ink); color: var(--white); align-self: stretch; }
.boiron-programme h3 { font: 800 1.7rem/1 var(--display); margin: 0 0 .4rem; }
.boiron-programme p + h3 { margin-top: .85rem; }
.boiron-programme a { display: inline-block; margin-top: .75rem; }
.boiron-programme a:hover { color: var(--yellow); }
#classements h1 { font: 800 clamp(2.8rem, 6.6vw, 6.6rem)/.95 var(--display); text-transform: uppercase; }
.result-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem 1.2rem;
  margin-top: 1.5rem;
}
.result-pagination button { font: inherit; font-weight: 600; cursor: pointer; }
.result-pagination button:disabled { opacity: .55; cursor: default; }
.podium-photos figure img { aspect-ratio: 1; object-fit: contain; background: var(--ink); }
.podium-photos { max-width: 54rem; }
@media (min-width: 761px) {
  .history-line li { grid-template-columns: minmax(6rem, .35fr) minmax(0, 1.75fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .schedule th, .schedule td { padding-inline: .65rem; }
  .discipline-photos img { aspect-ratio: 1.65; }
}
.result-row .result-name { margin-block: .16rem .22rem; font: 800 clamp(1.55rem, 2.5vw, 2.6rem)/1.02 var(--display); }
@media (max-width: 600px) {
  .schedule-scroll { overflow: visible; }
  .schedule { display: block; min-width: 0; background: transparent; }
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule tbody { display: grid; gap: .55rem; }
  .schedule tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .6rem .85rem;
    gap: .14rem .6rem;
    background: var(--white);
    border-top: 2px solid var(--blue);
  }
  .schedule tbody th, .schedule tbody td { padding: 0; border: 0; }
  .schedule tbody td:nth-child(n+3) { grid-column: 1 / -1; }
  .schedule tbody td:last-child { color: var(--muted); }
}

/* Photo rendering keeps original faces and club colours. */
.hero-photo img[src$="collectif-boiron-2026.webp"] {
  object-position: 50% 68%;
  filter: brightness(1.07) contrast(1.04);
}
img[src$="equipe-tri-b.webp"], img[src$="relais-boiron.webp"] {
  filter: brightness(1.09) contrast(1.045);
}
img[src$="souper-bilan-2026.webp"], img[src$="equipe-jeunes-boiron.webp"],
img[src$="groupe-2026-boiron.webp"] {
  filter: brightness(1.075) contrast(1.05);
}
img[src$="boiron-natation.webp"], img[src$="boiron-lac.webp"] {
  filter: brightness(1.06) contrast(1.025);
}
img[src$="podium-boiron-a.webp"], img[src$="podium-boiron-b.webp"] {
  filter: brightness(1.065) contrast(1.07);
}
img[src$="course-bleu-jaune.webp"], img[src$="velo-bleu-jaune.webp"],
img[src$="seances-velo-trib.webp"], img[src$="galerie-cyclisme.webp"] {
  filter: contrast(1.045);
}
img[src$="galerie-course.webp"], img[src$="galerie-medaille.webp"] {
  filter: brightness(1.035) contrast(1.04);
}
.gallery-track figure:has(img[src$="galerie-course.webp"]) img {
  object-fit: contain;
  max-width: 100%;
}
.training-location {
  padding: 1.2rem clamp(1rem, 3.6vw, 2.3rem);
  margin-bottom: 1.4rem;
  background: var(--white);
  border-left: 4px solid var(--blue);
}
#cotisations .section-head { margin-bottom: 0; }
.fee-table { width: 100%; border-collapse: collapse; background: var(--white); }
.fee-table th, .fee-table td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table thead th { background: var(--ink); color: var(--white); vertical-align: bottom; }
.fee-table td { white-space: nowrap; font-weight: 600; }

.training-location > div { margin-top: 1rem; }
.training-location h4 { font-size: 1rem; }
.training-location p { margin-top: .52rem; max-width: 76ch; }
.training-location a { display: inline-block; margin-top: .55rem; }

/* Home photograph, with room for the copy to the left of the riders. */
.hero {
  position: relative;
  isolation: isolate;
  grid-template: auto auto / minmax(0, 1fr);
  background: var(--ink);
}
.hero-photo { grid-row: 1; grid-column: 1; }
.hero-photo img {
  position: static;
  aspect-ratio: 1.55;
  object-position: 70% center;
}
.hero-photo figcaption {
  position: absolute;
  inset: auto .65rem .65rem auto;
  width: max-content;
  max-width: calc(100% - 1.3rem);
  margin: 0;
  color: var(--white);
  background: var(--ink);
  padding: .3rem .6rem;
}
.hero-copy {
  grid-row: 2;
  grid-column: 1;
  z-index: 1;
  padding: 1.25rem var(--gutter) 1.8rem;
}
.hero-content { border-left: .3rem solid var(--yellow); padding-left: 1rem; }
.hero h1 { font-size: clamp(2.65rem, 9.5vw, 6.7rem); max-width: 13ch; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-intro { margin-block: .9rem 1.2rem; }
@media (min-width: 851px) {
  .hero { display: grid; grid-template: minmax(clamp(33rem, 49vw, 44rem), auto) / minmax(0, 1fr); }
  .hero-photo { position: absolute; inset: 0; }
  .hero-photo img { width: 100%; height: 100%; object-position: 60% 19%; }
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #10234a 0%, #10234a87 28%, #10234a00 54%);
    pointer-events: none;
  }
  .hero-photo figcaption { z-index: 1; inset: auto var(--gutter) 1.35rem auto; }
  .hero-copy {
    grid-row: 1;
    display: flex;
    justify-content: flex-start;
    align-items: end;
    width: min(100%, 87rem);
    margin-inline: auto;
    padding: 3rem var(--gutter);
    pointer-events: none;
  }
  .hero-content {
    width: min(40%, 30rem);
    padding: clamp(1.05rem, 2.4vw, 2.2rem);
    background: #10234aef;
    pointer-events: auto;
  }
  .hero h1 { font-size: clamp(2.8rem, 4.7vw, 5.2rem); }
}

.page-start { padding-top: clamp(1.4rem, 3.2vw, 3.1rem); }
.page-title { margin-bottom: clamp(1.25rem, 2.6vw, 2.2rem); }
.page-title h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 4.7vw, 4.85rem);
  line-height: .96;
}
.page-title p { margin-top: .55rem; max-width: 60ch; }
.section-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .65rem; }
.section-actions { margin-top: 1.4rem; }
.contact-actions .button { font: inherit; font-weight: 700; }
.contact-actions .button-outline { background: var(--white); }
.contact-actions .button-outline:hover { color: var(--white); background: var(--ink); }
.contact-aside { align-self: start; }
.contact-aside .button { justify-content: space-between; font-weight: 700; }
.contact-aside .button-blue { color: var(--white); }
.contact-aside .button-outline:hover { color: var(--white); }
.contact-aside .contact-address { font-size: .95rem; overflow-wrap: anywhere; }
.contact-aside .button strong { white-space: nowrap; }
.contact-form label:has([required]) { color: var(--ink); }
#horaires .training-location { margin-top: 1.2rem; }
#horaires .training-location + .button { margin-top: 1rem; }
#discipline { padding-bottom: 1.65rem; }
#horaires { padding-top: 1.65rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: clamp(.85rem, 2vw, 1.5rem);
}
@media (min-width: 640px) {
  .event-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .event-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.photo-grid figure { background: var(--white); min-width: 0; }
.photo-grid a { display: block; }
.photo-grid img { width: 100%; aspect-ratio: 1.45; object-fit: cover; background: var(--ink); }
.photo-grid figcaption { padding: .6rem .8rem; font-weight: 600; }
.podium-gallery img { aspect-ratio: 1.12; object-fit: contain; }
img[src$="sortie-corrida.webp"] { filter: brightness(1.10) contrast(1.03); object-position: center 23%; }
img[src$="sortie-sohier.webp"] { filter: brightness(1.05) contrast(1.06); object-position: center 28%; }
img[src$="sortie-castel.webp"], img[src$="sortie-juin.webp"] { filter: brightness(1.08) contrast(1.04); }
img[src$="sortie-boiron.webp"] { object-position: center 41%; filter: brightness(1.055) contrast(1.045); }
img[src$="sortie-embrun.webp"] { object-position: center 35%; filter: contrast(1.04); }
.gallery-track img[src$="club-embrun-course.webp"],
.gallery-track img[src$="club-trail.webp"] { object-fit: contain; }
.result-place { font-weight: 700; color: var(--blue); margin-block: .2rem; }
.result-rank sup { font-size: .43em; margin-left: .04em; }
#classements .section-head p { max-width: 66ch; }

.inner-hero-grid { padding-block: clamp(1.7rem, 3.8vw, 3.5rem); }
.inner-hero h1 { font-size: clamp(2.6rem, 5vw, 4.65rem); }
.inner-hero figure img { max-height: 23rem; }

.schedule tbody tr { --day-tone: #e6effc; --day-edge: #2355a7; background: var(--day-tone); }
.schedule tr[data-day="Mercredi"] { --day-tone: #fff6cf; --day-edge: #866200; }
.schedule tr[data-day="Jeudi"] { --day-tone: #e7f4ed; --day-edge: #24674b; }
.schedule tr[data-day="Samedi"] { --day-tone: #edeafb; --day-edge: #5e4d95; }
.schedule tbody th { border-left: 5px solid var(--day-edge); }
.schedule tbody .day-start > * { border-top: 4px solid var(--day-edge); }
.schedule tbody td:nth-child(2) { font-weight: 700; }
@media (max-width: 760px) {
  .schedule tbody tr { background: var(--day-tone); border-left: 5px solid var(--day-edge); }
  .schedule tbody .day-start { margin-top: .55rem; border-top: 3px solid var(--day-edge); }
  .schedule tbody th, .schedule tbody .day-start > * { border: 0; }
}
.gallery-track img[src*="jeunes-"] { object-fit: contain; background: var(--ink); }
.inner-hero img[src$="souper-bilan-2026.webp"] { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: center 76%; }
.history-line .founders { width: min(100%, 12rem); min-width: 0; }
.founders .gallery-controls { justify-content: space-between; gap: .25rem; }
.founders .gallery-controls span { min-width: 0; }
.history-line .founders figure { margin: 0; max-width: none; }
.history-line .founders img { aspect-ratio: 1; width: 100%; object-fit: contain; }

.hero-photo img[src$="accueil-boiron.webp"] { filter: url(#net-photo) contrast(1.035); }
.discipline-photos img[src$="course-adultes.webp"] { object-position: center 29%; }

.affiliation-steps .text-link { display: inline-block; margin-top: .65rem; }
.blue-panel .affiliation-steps .text-link { color: var(--white); }
@media (min-width: 760px) {
  .affiliation-steps { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
}

.weekly-races { margin: 0; padding: 0; list-style: none; }
.weekly-races li { padding: .8rem 0; border-top: 1px solid var(--line); }
.weekly-races h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: .28rem; }
.weekly-races p { max-width: 76ch; }
.weekly-source { margin-top: .5rem; }
.club-note { margin-top: 1.5rem; border-left: .25rem solid var(--yellow); padding: .75rem 1rem; }
.club-note p { margin: .4rem 0; }
.week-detail { background: var(--white); border: 1px solid var(--line); padding: 1rem; margin-bottom: 1rem; }
.week-detail > h3 { margin-bottom: .35rem; }
.week-count { display: inline-block; font-weight: 700; margin-bottom: .65rem; }
.week-detail .weekly-races, .week-detail .weekly-source { padding-inline: 0; }
.season-calendar { margin-top: 1.5rem; }
.calendar-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.calendar-toolbar .button { min-width: 2.75rem; padding: .3rem .6rem; font-size: 1.5rem; }
.calendar-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: .55rem; margin-top: .8rem; }
.calendar-months > div { background: var(--white); border: 1px solid var(--line); padding: .65rem; }
.calendar-months h4 { margin: 0 0 .45rem; }
.week-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: .22rem; }
.week-cells > * { display: grid; place-items: center; min-height: 2.65rem; min-width: 0; border: 1px solid var(--line); font: inherit; font-weight: 700; }
.week-cells > span { background: #e9edf4; color: var(--muted); }
.week-cells > button { cursor: pointer; background: var(--blue); color: var(--white); }
.week-cells > button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.result-row { grid-template-columns: 4.65rem minmax(0, 1fr); }
@media (min-width: 760px) { .result-row { grid-template-columns: 4.65rem minmax(0, 1fr) auto; } }
.podium-icon { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; height: 3.75rem; }
.podium-step { position: relative; display: grid; place-items: end center; height: 1.65rem; background: #e6edf9; border: 1px solid #aebdd9; font-size: .75rem; font-weight: 700; padding-bottom: .12rem; }
.podium-step[data-step="1"] { height: 2.25rem; }
.podium-step[data-step="3"] { height: 1.35rem; }
.podium-step:has(b) { background: var(--yellow); }
.podium-step b { position: absolute; z-index: 1; bottom: calc(100% + .28rem); left: 18%; background: var(--blue); color: white; font-size: .46rem; line-height: 1.15; padding: .16rem .18rem; white-space: nowrap; }
.podium-step b::after { content: ''; position: absolute; top: 100%; left: 0; width: 1px; height: .55rem; background: var(--ink); }

.hero-photo { overflow: hidden; }
.hero-photo img { object-position: center 56%; transform: scale(1.1); transform-origin: 50% 54%; }
@media (min-width: 941px) {
  .hero { grid-template-rows: minmax(clamp(29rem, 42vw, 38rem), auto); }
  .hero-photo { left: 34%; }
  .hero-photo::after { background: linear-gradient(90deg, var(--ink), transparent 16%); }
  .hero-content { width: min(37%, 29rem); background: var(--ink); }
}
@media (max-width: 940px) {
  .hero { display: grid; grid-template: auto auto / minmax(0, 1fr); }
  .hero-photo { position: relative; inset: auto; width: 100%; }
  .hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: center 56%; transform: scale(1.1); }
  .hero-photo::after { content: ''; position: absolute; inset: 74% 0 0; pointer-events: none; background: linear-gradient(transparent, var(--ink)); }
  .hero-photo figcaption { inset: .65rem .65rem auto auto; z-index: 1; }
  .hero-copy { grid-area: 2 / 1; width: 100%; margin-top: -2.3rem; padding: 0 var(--gutter) 1.8rem; }
  .hero-content { width: min(100%, 32rem); padding: .9rem 1rem; background: var(--ink); }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
}

#bilans { padding-top: clamp(1.25rem, 3vw, 2.6rem); }
#bilans .page-title { margin-bottom: 1.1rem; }
.participations-intro, .calendar-year-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
}
.participations-intro { justify-content: space-between; margin-bottom: .65rem; }
.participations-intro h2, .calendar-toolbar h3 { font-size: clamp(1.4rem,3vw,1.9rem); }
.week-detail { padding: .65rem .85rem; margin-bottom: .6rem; scroll-margin-top: 6rem; }
.week-detail > h3 { display: inline-block; font-size: 1.3rem; margin-right: .55rem; }
.week-count { font-size: .9rem; margin: 0 0 .25rem; }
.week-detail summary { cursor: pointer; color: var(--blue); font-size: .93rem; font-weight: 700; }
.week-detail details[open] > summary { margin-bottom: .75rem; }
.week-detail .weekly-races li { padding: .45rem 0; }
.week-detail .weekly-races h4 { font-size: 1rem; margin: 0 0 .2rem; }
.week-detail .weekly-races p { max-width: 90ch; font-size: .95rem; }
[data-race-calendar]:not(.calendar-enhanced) [data-week-detail]:not([data-initial]):not(:target) { display: none; }
.season-calendar { margin-top: .9rem; scroll-margin-top: 6rem; }
.calendar-toolbar { justify-content: space-between; flex-wrap: wrap; }
.calendar-year-controls { gap: .5rem; font-weight: 700; }
.calendar-year-controls button:disabled { opacity: .44; }
.calendar-months { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.week-cells > * { min-height: 2rem; font-size: .9rem; }
.week-cells > a { background: var(--blue); color: var(--white); text-decoration: none; }
.week-cells > a[aria-current="true"] { background: var(--yellow); color: var(--ink); }
#moments-collectifs .collective-feature { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: .75rem 1.5rem; }
#moments-collectifs figure { margin: 0; width: min(100%, 16rem); }
#moments-collectifs figure img { width: 100%; height: auto; max-height: 15rem; object-fit: cover; object-position: center 25%; aspect-ratio: 1.25; }
#moments-collectifs figcaption { margin-top: .35rem; color: var(--white); }
#moments-collectifs p { font-size: 1.04rem; margin: .35rem 0; }
#moments-collectifs h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
#moments-collectifs .collective-stories { display: grid; gap: .75rem 1.35rem; margin-top: 1.35rem; }
#moments-collectifs .collective-stories article { padding-top: .7rem; border-top: 1px solid #7082a4; }
@media (min-width: 650px) {
  #moments-collectifs .collective-feature { grid-template-columns: minmax(0, 16rem) minmax(0, 36rem); }
  #moments-collectifs .collective-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-photo img {
  object-position: center 22%;
  transform: none;
}
.hero-photo::after {
  inset: 0;
  background: linear-gradient(0deg, var(--ink), rgb(16 35 74 / .16) 20%, transparent 42%);
}
@media (min-width: 941px) {
  .hero { grid-template-rows: minmax(clamp(31rem, 42vw, 40rem), auto); }
  .hero-photo { left: max(35%, calc(100% - 1040px)); }
  .hero-photo::after {
    background: linear-gradient(90deg, var(--ink), transparent 12%),
                linear-gradient(0deg, rgb(16 35 74 / .40), transparent 28%);
  }
  .hero-copy { align-items: center; }
  .hero-content { width: min(41%, 32rem); background: transparent; }
}
@media (max-width: 940px) {
  .hero-photo img { aspect-ratio: 1.43; }
  .hero-copy {
    display: block;
    margin-top: clamp(-4.75rem, -7vw, -2.35rem);
  }
  .hero-content {
    width: min(100%, 38rem);
    background: linear-gradient(0deg, var(--ink) 76%, transparent);
  }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
}
