/* ==========================================================
   Club de curling St-Donat — global styles
   Editorial refresh of v4: cream background, magazine grid,
   warm-wood accents used sparingly.
   ========================================================== */

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

:root {
  /* surfaces */
  --cream:        #f7f3ec;
  --cream-2:      #efe8da;
  --cream-3:      #e6dcc8;
  --paper:        #fbfaf6;
  --ink:          #1d1916;
  --ink-2:        #4a4339;
  --ink-3:        #7c7368;
  --hairline:     rgba(29, 25, 22, 0.12);
  --hairline-2:   rgba(29, 25, 22, 0.06);

  /* brand accents */
  --wood:         #8a6a44;
  --wood-dark:    #5e4828;
  --rouge:        #b53028;
  --teal:         #2c6e5d;
  --navy:         #1f3a5f;
  --ocre:         #b8841f;

  /* type */
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  /* density (compact mode overrides these) */
  --pad-section: 96px;
  --pad-x:       40px;
  --gap-grid:    28px;
  --hero-h:      54vh;
  --type-scale:  1;
}

[data-density="compact"] {
  --pad-section: 56px;
  --pad-x:       28px;
  --gap-grid:    18px;
  --hero-h:      42vh;
  --type-scale:  0.92;
}

html, body { background: var(--cream); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: calc(16px * var(--type-scale));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ----- type ----- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif       { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; }
.serif-italic{ font-family: var(--serif); font-weight: 500; font-style: italic; }
.h-display   { font-family: var(--serif); font-weight: 500; letter-spacing: -0.022em; line-height: 0.98; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.018em; line-height: 1.08; }

/* ----- containers ----- */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); }
.container-wide  { max-width: 1480px; margin: 0 auto; padding: 0 var(--pad-x); }
.container-tight { max-width: 980px;  margin: 0 auto; padding: 0 var(--pad-x); }

/* ----- top ad banner ----- */
.adbar {
  background: var(--cream-2);
  border-bottom: 1px solid var(--hairline);
  padding: 10px var(--pad-x);
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.adbar-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
  white-space: nowrap;
}
.adbar-tag-end { opacity: 0.55; }
.adbar image-slot {
  width: 970px;
  max-width: 100%;
  height: 90px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
@media (max-width: 720px) {
  .adbar { gap: 10px; padding: 8px 16px; }
  .adbar-tag-end { display: none; }
  .adbar image-slot { height: 64px; }
}

/* ----- top promo strip (legacy) ----- */
.promo {
  background: var(--cream-2);
  border-bottom: 1px solid var(--hairline);
  padding: 10px var(--pad-x);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.promo .pmid { display: inline-flex; align-items: center; gap: 10px; }
.promo .dot  { width: 6px; height: 6px; background: var(--rouge); border-radius: 50%; display: inline-block; }
.promo .plinks { display: inline-flex; gap: 18px; }
.promo .plinks a:hover { color: var(--ink); }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--hairline-2), 0 8px 24px rgba(29,25,22,0.05); }
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 8px var(--pad-x); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* Nav : logo complet (carré, texte + emblème) — pas de texte séparé à côté */
.brand-logo-nav { display: block; height: 80px; width: auto; flex-shrink: 0; }
/* Pied de page : logo complet (vertical) en blanc sur fond foncé */
.brand-footer { display: inline-flex; }
.brand-logo-full { display: block; height: 104px; width: auto; }
.brand-text { line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); display: block; letter-spacing: -0.01em; }
.brand-text small  { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }

.nav-links { display: flex; gap: 4px; margin-left: auto; margin-right: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: background 160ms ease, color 160ms ease;
}
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--cream); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--cream-2); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.lang-toggle button {
  padding: 5px 10px; border-radius: 999px; color: var(--ink-3);
}
.lang-toggle button.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

.cta-pill {
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 160ms ease, transform 160ms ease;
}
.cta-pill:hover { background: var(--rouge); transform: translateY(-1px); }
.cta-pill.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.cta-pill.ghost:hover { background: var(--ink); color: var(--cream); }

.burger { display: none; padding: 8px; }
.burger svg { width: 22px; height: 22px; }

/* mobile nav drawer */
.drawer-back {
  position: fixed; inset: 0; background: rgba(29,25,22,0.4); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 90;
  width: min(420px, 88vw); background: var(--paper);
  transform: translateX(100%); transition: transform 280ms cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.16);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--hairline); }
.drawer-list { padding: 8px 12px; flex: 1; overflow: auto; }
.drawer-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 14px; border-bottom: 1px solid var(--hairline-2);
  font-family: var(--serif); font-size: 22px; color: var(--ink);
}
.drawer-list a .num { font-family: var(--sans); font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--hairline); display: grid; gap: 12px; }

/* ----- hero ----- */
.hero {
  position: relative; height: var(--hero-h); min-height: 390px;
  background: var(--cream-3);
  overflow: hidden; isolation: isolate;
}
.hero image-slot, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
/* Le cadre du composant image-slot a un fond gris de placeholder (vestige du
   design tool) qui apparaît le temps que la photo se charge. On le remplace
   par le crème du hero pour éviter le flash gris. */
.hero image-slot::part(frame) { background: var(--cream-3); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none; z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) 64px;
  color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
}
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.92; margin-bottom: 24px; }
.hero-meta .pip { width: 28px; height: 1px; background: rgba(255,255,255,0.6); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 116px);
  letter-spacing: -0.025em; line-height: 0.94; max-width: 20ch;
}
.hero h1 em { font-style: italic; color: #f4d8a4; font-weight: 400; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: 28px; flex-wrap: wrap;
}
.hero-foot p { max-width: 72ch; font-size: 15px; line-height: 1.55; opacity: 1; color: rgba(255,255,255,0.96); }
.hero-foot .btns { display: flex; gap: 10px; }
.hero-foot .cta-pill { background: #fff; color: var(--ink); }
.hero-foot .cta-pill:hover { background: var(--rouge); color: #fff; }
.hero-foot .cta-pill.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-foot .cta-pill.ghost:hover { background: #fff; color: var(--ink); }

/* hero side stats */
.hero-stats {
  position: absolute; right: var(--pad-x); top: 32%;
  z-index: 2; color: #fff;
  display: grid; gap: 22px;
  text-align: right;
}
.hero-stats .stat { display: grid; gap: 4px; }
.hero-stats .stat strong { font-family: var(--serif); font-size: 38px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.hero-stats .stat span { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }

/* ----- mosaic ----- */
.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.mtile {
  position: relative; aspect-ratio: 5 / 4;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden; cursor: pointer;
  background: var(--cream-2);
}
.mtile:nth-child(3n) { border-right: 0; }   /* dernière colonne */
.mtile:nth-child(n+4) { border-bottom: 0; }  /* dernière rangée (tuiles 4-6) */
.mtile--empty { cursor: default; }
.mtile image-slot, .mtile .ph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.mtile-link {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: auto;
  color: #fff;
}
.mtile-link--static { pointer-events: none; }
.mtile-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(20,15,10,0.7) 100%);
  pointer-events: none;
  z-index: -1;
}
.mtile::after { display: none; }
.mtile .label {
  position: absolute; left: 24px; right: 24px; bottom: 11px; z-index: 2; color: #fff;
}
.mtile .num { font-family: var(--mono); font-size: 11px; opacity: 0.7; letter-spacing: 0.18em; }
.mtile .label h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-top: 0; }
.mtile .label p  { font-size: 13px; opacity: 0.78; margin-top: 2px; }
.mtile:hover .ph    { transform: scale(1.04); }
.mtile .ph { transition: transform 600ms ease; }

/* ----- striped placeholder ----- */
.ph {
  background-image:
    repeating-linear-gradient(135deg, rgba(29,25,22,0.07) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--cream-2), var(--cream-3));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: center; padding: 16px;
}
.ph.dark {
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #2a241e, #1a1612);
  color: rgba(255,255,255,0.5);
}

/* ----- generic section ----- */
section.block { padding: var(--pad-section) 0; }
section.block.tight { padding: 64px 0; }
section.block.tight-top { padding-top: 40px; padding-bottom: var(--pad-section); }
section.block.tight-b { padding-bottom: 32px; }
.section-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); }
.section-head .rule { height: 1px; background: var(--hairline); margin-bottom: 14px; }
.section-head .more { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.section-head .more:hover { color: var(--rouge); }

/* ----- news grid ----- */
.news-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap-grid);
}
.news-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.news-card .img { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; position: relative; }
.news-card.feat .img { aspect-ratio: 16 / 11; }
.news-card .meta { display: flex; gap: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.news-card .meta .tag { color: var(--rouge); font-weight: 700; }
.news-card .meta .tag.t { color: var(--teal); }
.news-card .meta .tag.b { color: var(--navy); }
.news-card .meta .tag.o { color: var(--ocre); }
.news-card h3 { font-size: 22px; line-height: 1.18; }
.news-card.feat h3 { font-size: 32px; line-height: 1.1; }
.news-card p { color: var(--ink-2); font-size: 14.5px; max-width: 50ch; }
.news-card:hover h3 { color: var(--rouge); }
.news-card .img image-slot, .news-card .img .ph { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ----- editorial split ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split.reverse > :first-child { order: 2; }
.split .img-wrap { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.split .img-wrap--landscape { aspect-ratio: 3/2; }
.split .img-wrap image-slot, .split .img-wrap .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.split h2 { font-size: clamp(36px, 4.4vw, 64px); margin-bottom: 24px; }
.split p  { color: var(--ink-2); font-size: 16px; max-width: 52ch; margin-bottom: 14px; }

/* ----- pull quote ----- */
.pull {
  text-align: center; padding: 56px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.pull blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 48px); font-weight: 400; line-height: 1.18; max-width: 22ch; margin: 0 auto; }
.pull cite { display: block; margin-top: 18px; font-style: normal; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }

/* ----- trophée — winners list ----- */
.trophy-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}
.trophy-list-col { min-width: 0; }
.trophy-photo-col {
  position: sticky;
  top: 96px;
  aspect-ratio: 3/4;
}
.trophy-photo-col image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.trophy-subtitle {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.trophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
  max-width: 760px;
}
@media (max-width: 980px) {
  .trophy-split { grid-template-columns: 1fr; gap: 32px; }
  .trophy-photo-col { position: relative; top: 0; width: 320px; max-width: 100%; aspect-ratio: 3/4; margin: 0 auto; order: -1; }
  .trophy-list-col { order: 1; }
}
.trophy-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.trophy-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.trophy-team { display: flex; flex-direction: column; gap: 4px; }
.trophy-name {
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.trophy-members {
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: 0.005em;
}
@media (max-width: 720px) {
  .trophy-row { grid-template-columns: 72px 1fr; gap: 16px; padding: 14px 0; }
  .trophy-name { font-size: 16px; }
  .trophy-members { font-size: 12.5px; }
}

/* ----- trophées : onglets + étiquette jour/soir ----- */
.trophy-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--hairline);
}
.trophy-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.trophy-tab:hover { color: var(--ink-2); }
.trophy-tab.is-active { color: var(--ink); border-bottom-color: var(--rouge); }
.trophy-div-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-right: 8px;
}
@media (max-width: 720px) {
  .trophy-tabs { gap: 18px; }
  .trophy-tab { font-size: 18px; }
}

/* ----- trophées : bande de statistiques (entre onglets et liste) ----- */
.trophy-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
  margin: 0 0 32px;
  padding: 22px 26px;
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.trophy-stats--solo { grid-template-columns: auto; }
.trophy-stats-label, .trophy-highlight-label {
  display: block;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.trophy-highlight-label { color: var(--rouge); }
.trophy-podium { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.trophy-podium-row { display: flex; align-items: baseline; gap: 14px; }
.tp-count {
  font-family: var(--serif); font-weight: 500; line-height: 1;
  font-size: 27px; color: var(--rouge); min-width: 30px;
}
.tp-names { font-size: 15.5px; color: var(--ink); }
.trophy-podium-row:not(:first-child) .tp-count { font-size: 19px; color: var(--ink-2); }
.trophy-podium-row:not(:first-child) .tp-names { font-size: 14.5px; color: var(--ink-2); }
.trophy-highlight { border-left: 1px solid var(--hairline); padding-left: 44px; }
.trophy-highlight p { font-size: 15.5px; line-height: 1.5; color: var(--ink); max-width: 44ch; margin: 0; }
@media (max-width: 720px) {
  .trophy-stats { grid-template-columns: 1fr; gap: 20px; padding: 18px 20px; }
  .trophy-highlight { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 18px; }
}

/* ----- board (C.A.) — 3 on top, 2 centered below ----- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 24px;
  row-gap: 48px;
}
.board-card { grid-column: span 2; }
.board-card > div:first-child { max-width: 50%; margin-left: auto; margin-right: auto; }
.board-card:nth-child(4) { grid-column: 2 / span 2; }
.board-card:nth-child(5) { grid-column: 4 / span 2; }
.board-card h4, .board-card .muted { text-align: center; }
@media (max-width: 720px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); column-gap: 18px; row-gap: 28px; }
  .board-card,
  .board-card:nth-child(4),
  .board-card:nth-child(5) { grid-column: span 1; }
  .board-card > div:first-child { max-width: 70%; }
}

/* ----- footer ----- */
footer.footer {
  background: var(--ink); color: rgba(247,243,236,0.78);
  padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 0 var(--pad-x); max-width: 1280px; margin: 0 auto; }
.footer-grid > div { min-width: 0; }
.footer p, .footer a { overflow-wrap: anywhere; }
.footer h4 { color: var(--cream); font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 20px; letter-spacing: 0; }
.footer .brand-text strong { color: var(--cream); }
.footer .brand-text small  { color: rgba(247,243,236,0.5); }
.footer p, .footer a { font-size: 13.5px; line-height: 1.85; color: rgba(247,243,236,0.7); }
.footer a:hover { color: var(--cream); }
.footer ul { list-style: none; }
.footer .socials { display: flex; gap: 8px; margin-top: 14px; }
.footer .socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,243,236,0.18); display: grid; place-items: center; }
.footer .socials a:hover { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.footer .sponsor-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.footer .sponsor-row .ph { aspect-ratio: 2/1; font-size: 9px; opacity: 0.6; }
.footer-bottom {
  margin-top: 64px; border-top: 1px solid rgba(247,243,236,0.1);
  padding: 18px var(--pad-x); display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  font-size: 11px; letter-spacing: 0.12em; color: rgba(247,243,236,0.45); text-transform: uppercase;
}

/* ----- page header (non-home) ----- */
.page-head {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.page-head .crumb { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.025em; line-height: 0.96; max-width: 16ch; }
.page-head .lede { margin-top: 24px; max-width: 60ch; font-size: 17px; color: var(--ink-2); line-height: 1.55; }

/* ----- page header with background image ----- */
.page-head--has-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: none;
}
.page-head--has-bg image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.page-head--has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
  pointer-events: none;
  z-index: 1;
}
.page-head--has-bg .container {
  position: relative;
  z-index: 2;
}
.page-head--has-bg h1 {
  color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.35);
}
.page-head--has-bg .lede {
  color: rgba(255,255,255,0.88);
}
.page-head--has-bg .crumb {
  color: rgba(255,255,255,0.55);
}

/* ----- chip / tag ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--cream-2); color: var(--ink-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.chip.r { background: rgba(181,48,40,0.1); color: var(--rouge); }
.chip.t { background: rgba(44,110,93,0.1); color: var(--teal); }
.chip.b { background: rgba(31,58,95,0.1); color: var(--navy); }
.chip.o { background: rgba(184,132,31,0.12); color: var(--ocre); }

/* ----- standings filter pills + shift chip ----- */
.stand-filters {
  display: flex;
  gap: 6px;
}
.stand-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 160ms;
}
.stand-pill:hover { color: var(--ink); border-color: var(--ink-3); }
.stand-pill.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.stand-shift {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: 0.2em;
  background: var(--cream-2);
  color: var(--ink-3);
}
.stand-shift-jour { background: rgba(184, 132, 31, 0.15); color: var(--ocre); }
.stand-shift-soir { background: rgba(31, 58, 95, 0.12); color: var(--navy); }

/* ----- honneurs de la saison (club page) ----- */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 24px;
}
.honor-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.honor-photo {
  position: relative;
  max-width: 70%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 8px;
}
.honor-photo image-slot, .honor-photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.honor-title { letter-spacing: 0.22em; color: var(--rouge); }
.honor-name { font-size: 24px; letter-spacing: -0.01em; }
@media (max-width: 720px) {
  .honors-grid { grid-template-columns: 1fr; gap: 28px; }
  .honor-photo { max-width: 50%; }
}

/* ----- étiquette & règlements (play page) ----- */
.rules-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 24px;
}
.rules-sub {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.rules-list {
  list-style: none;
  counter-reset: rule;
  display: grid;
  gap: 4px;
}
.rules-list li {
  counter-increment: rule;
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--hairline-2);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.rules-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0; top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--rouge);
}
@media (max-width: 820px) {
  .rules-split { grid-template-columns: 1fr; gap: 36px; }
}

/* ----- calendar buttons + reservists/captains lists ----- */
.cal-col { display: flex; flex-direction: column; gap: 20px; }
.people-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
}
.people-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.people-row:last-child,
.people-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--hairline-2); }
.people-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.people-name { font-family: var(--serif); font-size: 17px; }
.captains-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.captain-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.captain-team {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.captain-name { font-size: 19px; letter-spacing: -0.005em; }
.captain-shift { margin-top: 6px; }
@media (max-width: 820px) {
  .captains-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: 1fr; }
}

/* ----- calendar + schedule (standings page) ----- */
.cal-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 28px;
}
.cal {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 16px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cal-head button {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: 1px solid var(--hairline);
  color: var(--ink-2); font-size: 16px; line-height: 1;
  display: grid; place-items: center;
}
.cal-head button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cal-title { font-family: var(--serif); font-size: 17px; letter-spacing: -0.01em; text-transform: capitalize; }
.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline-2);
}
.cal-cell {
  position: relative;
  aspect-ratio: 1; min-height: 32px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 4px;
  cursor: pointer;
}
.cal-cell:hover { background: var(--cream-2); color: var(--ink); }
.cal-cell.today { color: var(--rouge); font-weight: 600; }
.cal-cell.selected { background: var(--ink); color: var(--cream); }
.cal-cell.selected.today { background: var(--rouge); color: #fff; }
/* Jour avec au moins une partie : gras + fond teinté + pastille rouge */
.cal-cell.has-game { font-weight: 700; color: var(--ink); }
.cal-cell.has-game:not(.selected) { background: rgba(181, 48, 40, 0.12); }
.cal-cell.has-game::after {
  content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--rouge);
}
.cal-cell.selected.has-game::after { background: var(--cream); }
.cal-cell.empty { cursor: default; }
.cal-cell.empty:hover { background: transparent; }

.schedule-day { min-width: 0; }
.schedule-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.schedule-block { margin-bottom: 24px; }
.schedule-block:last-child { margin-bottom: 0; }
.schedule-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hairline);
}
.schedule-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.schedule-head .muted { font-size: 12px; color: var(--ink-3); }
.schedule-list {
  list-style: none;
  display: grid;
  gap: 2px;
}
.schedule-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--hairline-2);
  background: var(--paper);
  border-radius: 3px;
  margin-bottom: 4px;
}
.schedule-list li:nth-child(even) { background: var(--cream-2); }
.schedule-list li:last-child { border-bottom: 0; }
.schedule-sheet {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.schedule-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  font-family: var(--serif);
  font-size: 18px;
  align-items: baseline;
}
.schedule-match > :first-child { text-align: right; }
.schedule-match > :last-child  { text-align: left; }
.schedule-rank {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--rouge);
  margin-right: 8px;
  vertical-align: 0.18em;
}
.schedule-rank-r { margin-right: 0; margin-left: 8px; }
.schedule-vs {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Pointage des parties jouées, de chaque côté du « vs » (noir, un peu plus gros) */
.schedule-score {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-left: 12px;
}
.schedule-score-l { margin-left: 0; margin-right: 12px; }
@media (max-width: 820px) {
  .cal-split { grid-template-columns: 1fr; gap: 36px; }
  .cal { max-width: 360px; }
  .schedule-match { font-size: 15px; gap: 10px; }
}
@media (max-width: 480px) {
  .schedule-list li { grid-template-columns: 70px 1fr; gap: 10px; }
  .schedule-match { grid-template-columns: 1fr auto 1fr; }
}

/* ----- table (standings) ----- */
.standings-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; min-width: 880px; }
.standings tbody td,
.standings thead th { padding: 14px 8px; }
.standings tbody td:first-child,
.standings thead th:first-child { padding-left: 14px; }
.standings tbody td:last-child,
.standings thead th:last-child { padding-right: 14px; }
.standings thead th {
  text-align: left; font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  padding: 16px 14px; border-bottom: 1px solid var(--hairline);
  cursor: pointer; user-select: none;
}
.standings thead th .sort { display: inline-block; margin-left: 6px; opacity: 0.4; transition: opacity 160ms; }
.standings thead th.sorted .sort { opacity: 1; color: var(--rouge); }
.standings thead th:hover { color: var(--ink); }
.standings tbody td {
  border-bottom: 1px solid var(--hairline-2);
  font-size: 14.5px;
}
.standings tbody tr:hover { background: var(--paper); }
.standings .rank { font-family: var(--serif); font-size: 22px; color: var(--ink-3); width: 60px; }
.standings .rank.top { color: var(--rouge); }
.standings .team { font-weight: 600; color: var(--ink); }
.standings .num { font-variant-numeric: tabular-nums; text-align: right; }
.standings .num.pts { font-weight: 700; color: var(--ink); font-size: 16px; }
.standings .skip { color: var(--ink-3); font-size: 12.5px; display: block; margin-top: 2px; }

/* ----- gallery / lightbox ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 10px;
}
.gtile {
  position: relative; overflow: hidden; cursor: zoom-in;
  background: var(--cream-2);
}
.gtile image-slot, .gtile .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.gtile:hover::after {
  content: "+"; position: absolute; inset: 0; background: rgba(29,25,22,0.45); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 36px;
}
.lb-back {
  position: fixed; inset: 0; background: rgba(15,12,10,0.95); z-index: 200;
  display: grid; place-items: center; padding: 5vh 5vw;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.lb-back.open { opacity: 1; pointer-events: auto; }
.lb-stage { max-width: 1200px; max-height: 90vh; width: 100%; position: relative; }
.lb-img   { width: 100%; height: min(80vh, 800px); position: relative; background: #1a1612; overflow: hidden; }
.lb-img image-slot, .lb-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-cap { color: rgba(255,255,255,0.7); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 16px; display: flex; justify-content: space-between; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff;
  display: grid; place-items: center; transition: background 160ms;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-nav.prev { left: -64px; }
.lb-nav.next { right: -64px; }
.lb-close { position: absolute; top: -44px; right: 0; color: #fff; font-size: 13px; letter-spacing: 0.12em; }

/* ----- schedule ----- */
.schedule { display: grid; gap: 0; }
.s-row {
  display: grid; grid-template-columns: 120px 80px 1fr auto auto;
  gap: 24px; align-items: center; padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.s-row .day { font-family: var(--serif); font-size: 26px; }
.s-row .time { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; }
.s-row .what strong { font-family: var(--serif); font-size: 18px; display: block; }
.s-row .what span { font-size: 13px; color: var(--ink-3); }

/* ----- forms ----- */
.form-grid { display: grid; gap: 18px; }
.fld label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; font-weight: 600; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 4px;
  transition: border-color 160ms, background 160ms;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 0; border-color: var(--ink); background: #fff; }
.fld textarea { resize: vertical; min-height: 120px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ----- helpers ----- */
.divider-rule { height: 1px; background: var(--hairline); }
.muted { color: var(--ink-3); }
.text-center { text-align: center; }
.tag-line { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.tag-line .pip { width: 32px; height: 1px; background: var(--hairline); }

/* Adresse cliquable (footer + page contact) → Google Maps */
.addr-link { color: inherit; text-decoration: none; cursor: pointer; }
.addr-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----- responsive ----- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .brand-logo-nav { height: 62px; }
  .burger { display: inline-flex; }
  .promo .plinks { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.feat { display: flex; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mtile:nth-child(3n) { border-right: 1px solid var(--hairline); }  /* annule la règle 3 colonnes */
  .mtile:nth-child(n+4) { border-bottom: 1px solid var(--hairline); }
  .mtile:nth-child(2n) { border-right: 0; }   /* dernière colonne (2 col) */
  .mtile:nth-child(n+5) { border-bottom: 0; } /* dernière rangée (tuiles 5-6) */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .hero-stats { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .standings .skip-col, .standings .skip { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .s-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .s-row .what { grid-column: 1 / -1; }
  .lb-nav.prev { left: 8px; }
  .lb-nav.next { right: 8px; }
}
@media (max-width: 540px) {
  .mosaic { grid-template-columns: 1fr; }
  .mtile { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .mtile:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 110px; }
  .promo { font-size: 11px; }
  .promo .pmid { display: none; }
}

/* ── Bouton Remplacer (admin in-place image editing) ──────── */
.img-replace-btn {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  z-index: 50;
  white-space: nowrap;
  pointer-events: auto;
}
body[data-admin] *:hover > .img-replace-btn {
  display: block;
}
body[data-admin] .img-replace-btn:hover {
  display: block;
  background: rgba(0, 0, 0, 0.9);
}

/* Séries éliminatoires */
.po-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 20px; align-items: start; }
.po-grid > div { min-width: 0; }
@media (max-width: 760px) { .po-grid { grid-template-columns: 1fr; } }

/* Contact — infos + formulaire (empilé sur mobile) */
.contact-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
@media (max-width: 720px) {
  .contact-split { grid-template-columns: 1fr; gap: 40px; }
}

/* Événements à venir — 3 colonnes, empilé sur mobile ; bordures gérées en CSS pour rester propres */
.events-upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.events-upcoming > * { border-bottom: 1px solid var(--hairline); border-right: 1px solid var(--hairline); }
.events-upcoming > *:nth-child(3n) { border-right: none; }
@media (max-width: 720px) {
  .events-upcoming { grid-template-columns: 1fr; }
  .events-upcoming > * { border-right: none; }
}
