:root {
  --track: #F0560A;
  --track-deep: #C2440C;
  --ink: #08192F;
  --ink-soft: #16294A;
  --paper: #F4F4F2;
  --chalk: #FFFFFF;
  --volt: #F0560A;
  --steel: #6B7280;
  --line: #E5E5DF;

  --display: "Saira Condensed", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--track);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Eyebrow */
.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--track);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--track);
  display: inline-block;
}

.on-ink .eyebrow {
  color: var(--volt);
}

.on-ink .eyebrow::before {
  background: var(--volt);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: .95;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--display);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--logo) center/cover no-repeat, var(--ink);
  flex: none;
  box-shadow: 0 0 0 1px rgba(8, 25, 47, .08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.brand-sub {
  font-family: var(--body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--track);
  margin-top: .32rem;
}

.brand .pip {
  width: 14px;
  height: 14px;
  background: var(--track);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a {
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--track);
}

.nav-links a.btn,
.nav-links a.btn:hover {
  color: var(--chalk);
}

.nav-links a.btn-volt,
.nav-links a.btn-volt:hover {
  color: var(--ink);
}

.btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: .95rem;
  background: var(--ink);
  color: var(--chalk);
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-volt {
  background: var(--volt);
  color: var(--ink);
  border-color: var(--volt);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.on-ink .btn-ghost {
  color: var(--chalk);
  border-color: rgba(255, 255, 255, .4);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--chalk);
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero-lanes {
  position: absolute;
  z-index: 1;
  top: -20%;
  right: -25%;
  width: 95%;
  height: 150%;
  background: repeating-linear-gradient(118deg,
      var(--track) 0 58px,
      var(--track-deep) 58px 62px,
      rgba(255, 255, 255, .92) 62px 66px,
      var(--track-deep) 66px 70px);
  transform: rotate(-2deg);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 30%, #000 35%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 80% 30%, #000 35%, transparent 72%);
  opacity: .9;
  animation: laneIn 1s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes laneIn {
  from {
    transform: rotate(-2deg) translateX(60px);
    opacity: 0;
  }

  to {
    transform: rotate(-2deg) translateX(0);
    opacity: .9;
  }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 4px rgba(240, 86, 10, .2);
}

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8rem);
  max-width: 13ch;
}

.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--chalk);
}

.hero .lede {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: rgba(255, 255, 255, .82);
  max-width: 46ch;
  margin: 1.6rem 0 2.2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 3.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.stat .num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--volt);
}

.stat .lbl {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Sections ---------- */
.sec-block {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
}

.sec-head h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

.sec-head .link {
  font-weight: 600;
  color: var(--track);
  font-size: .95rem;
  white-space: nowrap;
}

.sec-head .link:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Actualités ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(22, 24, 29, .5);
}

.card-visual {
  aspect-ratio: 16/10;
  position: relative;
}

.card-visual.v1 {
  background: linear-gradient(135deg, var(--track), var(--track-deep));
}

.card-visual.v2 {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
}

.card-visual.v3 {
  background: linear-gradient(135deg, #2e6f5e, #14463a);
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .16) 38px 40px);
}
.card-visual--photo {
  background-size: cover;
  background-repeat: no-repeat;
}
.card-visual--photo::after {
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 60%);
}

.cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--chalk);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: 6px;
}

.card-body {
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.card-date {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--steel);
}

.card h3 {
  font-size: 1.45rem;
  text-transform: none;
  line-height: 1.05;
  font-weight: 700;
}

.card p {
  font-size: .96rem;
  color: #41454d;
  flex: 1;
}

.card .more {
  font-weight: 600;
  color: var(--track);
  font-size: .92rem;
}

/* ---------- Calendrier ---------- */
.agenda {
  display: flex;
  flex-direction: column;
}

.event {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.6rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.event:last-child {
  border-bottom: 1px solid var(--line);
}

.event-date {
  font-family: var(--mono);
  font-weight: 700;
}

.event-date .d {
  font-size: 1.8rem;
  color: var(--track);
  display: block;
  line-height: 1;
}

.event-date .m {
  font-size: .82rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.event-main h3 {
  font-size: 1.5rem;
  text-transform: none;
  font-weight: 700;
}

.event-main .where {
  color: var(--steel);
  font-size: .95rem;
}

.tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}

.tag {
  font-size: .76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: #41454d;
  padding: .25rem .6rem;
  border-radius: 999px;
}

.event .btn {
  white-space: nowrap;
}

/* ---------- Records ---------- */
.records {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.board {
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.row {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 9rem 5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.row .disc {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.row .who {
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
}

.row .mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--volt);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row .who-cat {
  font-family: var(--mono);
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  text-align: right;
}
.row .rec-date {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  text-transform: none;
  color: rgba(255, 255, 255, .35);
}

/* ---------- Rejoindre ---------- */
.join-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.join-intro p {
  color: #41454d;
  font-size: 1.08rem;
  margin-top: 1rem;
  max-width: 42ch;
}

.join-cta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.group {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.group:hover {
  border-color: var(--track);
  background: #f5f4ff;
  transition: border-color .15s, background .15s;
}

.group .g-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.group .g-meta {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--steel);
  margin-top: .25rem;
}

/* ── Home groups (families) ───────────────────────────── */
.hg-families { display: flex; flex-direction: column; gap: 1.25rem; }

.hg-family-label {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--steel);
  margin-bottom: .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}

.hg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.hg-card {
  display: inline-flex;
  flex-direction: column;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .9rem;
  min-width: 110px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
  position: relative;
}

.hg-card--link:hover {
  border-color: var(--track);
  background: color-mix(in srgb, var(--track) 5%, #fff);
}

.hg-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.hg-sub {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--steel);
  margin-top: .15rem;
}

.hg-arrow {
  position: absolute;
  top: .5rem;
  right: .65rem;
  font-size: .8rem;
  color: var(--track);
  opacity: 0;
  transition: opacity .12s, transform .12s;
}

.hg-card--link:hover .hg-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ---------- Auth ---------- */
.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--paper);
}

.auth-card {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(8, 25, 47, .06);
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-header h1 {
  margin: .25rem 0 0;
  font-size: 2rem;
}

.auth-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.auth-form .field {
  margin-bottom: 1.25rem;
}

.auth-form .field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--ink);
}

.auth-form .field input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: .6rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

.auth-form .field input:focus {
  outline: none;
  border-color: var(--track);
  box-shadow: 0 0 0 3px rgba(240, 86, 10, .15);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.check-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  accent-color: var(--track);
  width: 16px;
  height: 16px;
}

.auth-link {
  font-size: .9rem;
  color: var(--track);
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: .9rem;
  font-size: 1rem;
}

.auth-back {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.site-footer .brand {
  color: var(--chalk);
  margin-bottom: 1rem;
}

.site-footer h4 {
  font-family: var(--body);
  font-weight: 700;
  color: var(--chalk);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.site-footer a:hover {
  color: var(--volt);
}

.site-footer .muted {
  font-size: .92rem;
  line-height: 1.7;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}

.foot-bottom .a11y {
  color: var(--volt);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gut) 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: .85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .btn {
    margin-top: .8rem;
  }

  .nav-toggle {
    display: flex;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .event {
    grid-template-columns: 70px 1fr;
  }

  .event>.btn {
    grid-column: 2;
    justify-self: start;
  }

  .row {
    grid-template-columns: 1fr auto;
    row-gap: .2rem;
  }

  .row .who {
    grid-column: 1;
    font-size: .9rem;
  }

  .row .who-cat {
    grid-column: 2;
  }

  .groups {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Backoffice ---------- */
.bo-flash {
  padding: .75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.bo-flash--ok,
.bo-flash--success {
  background: #d1fae5;
  color: #065f46;
}

.bo-flash--err,
.bo-flash--error {
  background: #fee2e2;
  color: #991b1b;
}

.bo-flash--warn,
.bo-flash--warning {
  background: #fef9c3;
  color: #854d0e;
}

.bo-table-wrap {
  overflow-x: auto;
}

.bo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.bo-table th {
  text-align: left;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
  padding: .6rem .8rem;
  border-bottom: 2px solid var(--line);
}

.bo-table td {
  padding: .85rem .8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.bo-table tr:hover td {
  background: rgba(0, 0, 0, .02);
}

.bo-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
}

.bo-badge--lg {
  font-size: .82rem;
  padding: .3rem .8rem;
}

.bo-badge--draft {
  background: #f1f5f9;
  color: #475569;
}

.bo-badge--review {
  background: #fef9c3;
  color: #854d0e;
}

.bo-badge--published {
  background: #d1fae5;
  color: #065f46;
}

.bo-badge--revision {
  background: #dbeafe;
  color: #1e40af;
}

.bo-badge--archived {
  background: #f1f5f9;
  color: #94a3b8;
}

.bo-row-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  white-space: nowrap;
}

.bo-link {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--track);
  padding: 0;
}

.bo-link:hover {
  text-decoration: underline;
}

.bo-link--danger {
  color: #dc2626;
}

.bo-transitions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bo-transitions__label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--steel);
  margin-right: .25rem;
}

.bo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.bo-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.bo-field--full {
  grid-column: 1 / -1;
}

.bo-field label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink-soft);
}

.bo-field input[type="text"],
.bo-field input[type="date"],
.bo-field input[type="email"],
.bo-field input[type="tel"],
.bo-field select,
.bo-field textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: .97rem;
  background: var(--chalk);
  color: var(--ink);
  transition: border-color .15s;
}

.bo-field input:focus,
.bo-field input[type="date"]:focus,
.bo-field select:focus,
.bo-field textarea:focus {
  outline: none;
  border-color: var(--track);
}

.bo-field .form-error {
  font-size: .83rem;
  color: #dc2626;
  margin-top: .2rem;
}

.bo-actions {
  display: flex;
  gap: .9rem;
  margin-top: 2rem;
}

/* Article public */
.article-breadcrumb {
  font-size: .85rem;
  color: var(--steel);
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.article-breadcrumb a:hover { color: var(--track); }
.article-breadcrumb .sep { color: var(--line); }
.article-breadcrumb .here { color: var(--ink); font-weight: 600; }

.article-head {
  max-width: 780px;
  margin: 0 auto;
  padding-block: 1.4rem 2.2rem;
}

.article-head h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  margin-top: .7rem;
  text-transform: none;
  line-height: 1.05;
}

.article-chapo {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 1.1rem;
  max-width: 64ch;
}

.article-meta {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--steel);
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.article-meta .sep { opacity: .4; }

.byline {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.byline .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--track);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  flex: none;
}

.byline .who {
  font-weight: 600;
  font-size: .95rem;
}

.byline .meta {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--steel);
}

.byline .meta + .meta::before {
  content: "·";
  margin-right: .85rem;
  opacity: .4;
}

.article-cover {
  max-width: 780px;
  margin: 0 auto;
}

.article-cover-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 18px;
  object-fit: cover;
}


.article-body {
  max-width: 780px;
  margin: 2.6rem auto 0;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #20262f;
  padding-bottom: .5rem;
}

.article-body p {
  margin-bottom: 1.3em;
}

.article-body h2 {
  font-size: 1.7rem;
  color: var(--ink);
  margin: 1.9em 0 .55em;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
}

.article-body h2::before {
  content: "";
  width: 26px;
  height: 4px;
  background: var(--track);
  flex: none;
  border-radius: 2px;
}

.article-body ul {
  margin: 0 0 1.3em 1.1em;
  display: flex;
  flex-direction: column;
  gap: .45em;
}

/* List block — tight top margin (no extra gap with preceding block) */
.article-body .ab-list {
  list-style: disc;
  margin-top: 0;
  padding-left: 1.3em;
}
.article-body p:has(+ .ab-list),
.article-body h2:has(+ .ab-list) {
  margin-bottom: .3em;
}

/* Table block */
.ab-table-wrap {
  overflow-x: auto;
  margin: 1.2em 0;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.ab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
}
.ab-table th,
.ab-table td {
  padding: .55em .85em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.ab-table thead th {
  background: var(--chalk);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--steel);
  white-space: nowrap;
}
.ab-table tbody tr:last-child td { border-bottom: 0; }
.ab-table tbody tr:hover td { background: var(--chalk); }

.article-body strong, .article-body b { font-weight: 700; color: var(--ink); }
.article-body em, .article-body i { font-style: italic; }

.article-body a {
  color: var(--track-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a::after {
  content: '';
  display: inline-block;
  width: .65em;
  height: .65em;
  margin-left: .2em;
  vertical-align: .1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23C2440C' stroke-width='1.8'%3E%3Cpath d='M5 2H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V7'/%3E%3Cpath d='M8 1h3v3M11 1 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Pull quote */
.pull {
  border-left: 4px solid var(--track);
  padding-left: 1.4rem;
  margin: 1.9em 0;
}

.pull q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--ink);
  text-transform: none;
  quotes: "«\00a0" "\00a0»";
  display: block;
}

.pull .src {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--steel);
  margin-top: .65rem;
}

/* Result board */
.result-board {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  margin: 2em 0;
}

.result-board .rb-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
}

.result-board .rb-sub {
  font-family: var(--mono);
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .6rem;
}

.rb-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .1rem 1rem;
  align-items: baseline;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.rb-row:last-child { border-bottom: 0; padding-bottom: 0; }

.rb-disc {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
}

.rb-who {
  color: rgba(255,255,255,.68);
  font-size: .88rem;
}

.rb-mark {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--volt);
  font-size: 1.45rem;
  text-align: right;
  grid-row: span 2;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.rb-subs {
  display: block;
  margin-top: .2rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .01em;
}

/* Article tags + foot */
.article-tags {
  max-width: 780px;
  margin: 2em auto 0;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-tags .lbl {
  font-size: .78rem;
  color: var(--steel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .2rem;
}

.article-foot {
  max-width: 780px;
  margin: 2.4rem auto 0;
  padding: 1.6rem 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Generic inner-page hero (records, results, agenda…) */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero-title { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin: 0 0 .5rem; }
.hero-sub { color: var(--steel); font-size: 1.05rem; margin: 0; }

/* Public results page */
.results-public { padding-block: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; gap: 0; }

.pub-evt-header { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: .9rem .3rem .55rem; border-bottom: 2px solid var(--line); }
.pub-eh-date { font-family: var(--mono); font-weight: 700; color: var(--track); font-size: .8rem; white-space: nowrap; }
.pub-eh-name { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.2rem; }
.pub-eh-loc { color: var(--steel); font-size: .85rem; }

.pub-res-list { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: .5rem; }

.pub-res-row { display: flex; flex-direction: column; gap: .25rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); }
.pub-res-row:last-child { border-bottom: 0; }
.pub-res-row-top { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.pub-res-row-bottom { display: flex; align-items: center; gap: .45rem; overflow: hidden; }

.pub-res-ath { display: flex; align-items: center; gap: .65rem; min-width: 0; flex: 1; }
.pub-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--track); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .78rem; flex: none; }
.pub-nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pub-perf-main { display: flex; align-items: center; gap: .65rem; margin-left: auto; flex-shrink: 0; }
.pub-disc { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: 1.05rem; }
.pub-mark { font-family: var(--mono); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pub-secondary { font-size: .9rem; font-weight: 500; color: var(--steel); margin-left: .2em; }
.pub-extra { display: flex; align-items: center; gap: .4rem; }
.pub-wind { font-family: var(--mono); font-size: .74rem; color: var(--steel); }

.pub-sub-cat { font-family: var(--mono); font-size: .7rem; color: var(--steel); flex-shrink: 0; margin-right: .2rem; }
.pub-sub-perfs { display: flex; align-items: center; gap: .45rem; margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
.pub-sub-sep { color: var(--line); flex-shrink: 0; user-select: none; }
.pub-perf-sub { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; white-space: nowrap; }
.pub-sub-disc { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: .84rem; color: var(--steel); }
.pub-sub-mark { font-family: var(--mono); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.pub-sub-extra { display: flex; align-items: center; gap: .3rem; }

.bdg { font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .42rem; border-radius: 5px; white-space: nowrap; }
.bdg-rec    { background: var(--track); color: #fff; }
.bdg-season { background: color-mix(in srgb, #8B5CF6 80%, #fff); color: #fff; }
.bdg-top10  { background: color-mix(in srgb, #F59E0B 60%, #fff); color: #78350F; }
.bdg-pb     { background: color-mix(in srgb, var(--track) 13%, #fff); color: var(--track-deep); }

/* Home — derniers résultats */
.home-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.home-res-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }

/* Article image blocks */
.article-body figure.article-figure { margin: 1.5em 0; }
.article-body figure.article-figure img { display: block; width: 100%; border-radius: 12px; }
.article-body figcaption { font-size: .82rem; color: var(--steel); text-align: center; margin-top: .5rem; font-style: italic; }

/* Person card */
.ab-person-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 1.2em 0;
}
.ab-person-photo {
  width: 80px;
  height: 80px;
  flex: none;
  overflow: hidden;
}
.ab-person-photo--circle { border-radius: 50%; }
.ab-person-photo--square { border-radius: 12px; }
.ab-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-person-name {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
}
.ab-person-role {
  color: var(--steel);
  font-size: .88rem;
  margin-top: .2rem;
}

/* Address card */
.ab-address-card {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 1.2em 0;
  min-height: 300px;
}
.ab-address-map {
  flex: 0 0 55%;
  min-height: 300px;
}
.ab-address-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
}
.ab-address-info {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--chalk);
}
.ab-address-text {
  font-style: normal;
  line-height: 1.75;
  font-size: 1rem;
}
.ab-address-card--text-only {
  border-radius: 16px;
  padding: 1rem 1.4rem;
}
.ab-address-card--text-only .ab-address-info {
  padding: 0;
  background: transparent;
}

@media (max-width: 600px) {
  .ab-address-card { flex-direction: column; }
  .ab-address-map  { flex: none; min-height: 240px; }
}

/* Related articles */
.related {
  background: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .bo-form-grid {
    grid-template-columns: 1fr;
  }
}