/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}

/* Galerie photo d'un club — thème « Maillot · Épaules » (PG-1 bis, validé par le
   PO le 22/11 parmi cinq variantes). Le NOIR domine (dos et flancs du maillot),
   la couleur du club est STRUCTURE : bande de 6 px sous la barre et sous la
   couverture, montant vertical qui tient le titre, date en petites capitales,
   liseré en haut des cartes, filet sous les titres de bloc, « Diaporama » en
   plein, pied noir sous une bande.
   Couleurs du club : quatre jetons --club-*, posés PAR CLUB dans la page
   (galerie/theme.py, contraste vérifié) ; valeurs de HBS 78 ci-dessous.
   Jamais #000/#fff purs, aucun dégradé de couleur, angles francs. */
@font-face { font-family: 'Archivo'; src: url(fonts/archivo-latin.woff2) format('woff2');
  font-weight: 100 900; font-stretch: 62.5% 125%; font-display: swap; }
@font-face { font-family: 'Alfa Slab One'; src: url(fonts/alfa-slab-one-latin.woff2) format('woff2');
  font-weight: 400; font-display: swap; }

:root {
  /* Couleurs du club (HBS 78 : rouge du maillot SF1 relevé). Paires WCAG 2.x :
     --club-line  #cb0628 / --night            3,20:1 (graphique, ≥ 3:1)
     --club-text  #f5525c / --night | --night-2 5,55:1 | 4,99:1
     --on-club    #fef4f3 / --club-fill #b8082a 6,26:1 */
  --club-line: #cb0628;
  --club-text: #f5525c;
  --club-fill: #b8082a;
  --club-fill-deep: #9e0b24;
  --on-club: #fef4f3;
  --night: #161114;
  --night-2: #211c1f;
  --night-3: #2c2629;
  --line: #3a3437;                 /* séparateur décoratif sur nuit */
  --line-strong: #6b6468;          /* contour d'un contrôle sur nuit */
  --chalk: #fef4f3;                /* 17,3:1 sur nuit */
  --chalk-muted: #a1a5ab;          /* 7,5:1 sur nuit */
  --day: #f0f4f7;
  --white: #fefcfc;
  --ink: #15181e;
  --muted: #555b66;
  --info: #f1cf44;                 /* badge jaune SUR NUIT, texte nuit dessus */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --crest: 'Alfa Slab One', 'Archivo', serif;
  --r: 2px;
  --gut: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--chalk); font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.tabular { font-variant-numeric: tabular-nums; }
.crest { font-family: var(--crest); font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: square; stroke-linejoin: miter; }
.ico--s { width: 16px; height: 16px; }
#i-play path, #i-video path { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--chalk); color: var(--night); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--wide { max-width: 1600px; }
@media (min-width: 832px) { :root { --gut: 32px; } }

/* ── Barre ─────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 30; background: var(--night); border-bottom: 1px solid var(--line); }
.bar__in { max-width: 1600px; margin: 0 auto; padding: 0 var(--gut); height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 36px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__club { font-family: var(--crest); font-size: 20px; }
.brand__what { font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--club-text); margin-top: 3px; }
.bar__menu { display: none; margin-left: auto; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: none; border: 2px solid var(--line-strong); border-radius: var(--r); font-weight: 600; cursor: pointer; }
.seasons { margin-left: auto; display: flex; align-items: center; gap: 2px; }
/* « Photographes » après les saisons (accès à « Nos photographes ») */
.nav-ph { display: flex; align-items: center; height: 40px; padding: 0 10px; border-radius: var(--r); text-decoration: none;
  font-stretch: 87.5%; font-weight: 600; font-size: 15px; color: var(--chalk-muted); white-space: nowrap; }
.nav-ph:hover { color: var(--chalk); background: var(--night-2); }
.nav-ph.is-current { color: var(--chalk); box-shadow: inset 0 -3px 0 var(--club-line); }
/* Le lien du sous-titre de l'accueil : craie sur la nuit (17:1), filet de couleur, souligné franc au survol et au focus */
.lead__link { color: var(--chalk); font-weight: 600; text-decoration: underline; text-decoration-color: var(--club-line);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead__link:hover, .lead__link:focus-visible { text-decoration-color: var(--chalk); }
.seasons__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.season { position: relative; }
.season summary { list-style: none; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px;
  font-stretch: 87.5%; font-weight: 600; font-size: 15px; color: var(--chalk-muted); cursor: pointer; border-radius: var(--r); }
.season summary::-webkit-details-marker { display: none; }
.season summary:hover, .season details[open] summary { color: var(--chalk); background: var(--night-2); }
.season.is-current summary { color: var(--chalk); box-shadow: inset 0 -2px 0 var(--club-line); }
.season details[open] summary .ico { transform: rotate(180deg); }
.season__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px; max-height: 70vh; overflow: auto;
  background: var(--night-2); border: 1px solid var(--line); padding: 8px 0; z-index: 40; }
.season__all { display: block; padding: 10px 16px; font-weight: 700; text-decoration: none; color: var(--club-text); }
.season__group { padding: 6px 0; border-top: 1px solid var(--line); }
.season__gtitle { display: block; padding: 6px 16px; font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--chalk-muted); }
.season__kids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.season__kids a { display: block; padding: 8px 16px; text-decoration: none; font-size: 15px; }
.season__kids a:hover, .season__all:hover, .season__gtitle:hover { background: var(--night-3); color: var(--chalk); }

@media (max-width: 899px) {
  .js .bar__menu { display: inline-flex; }
  .js .seasons { display: none; position: fixed; inset: 56px 0 0 0; background: var(--night); overflow: auto;
    padding: 8px 0 32px; border-top: 1px solid var(--line); }
  .seasons__list { flex-direction: column; gap: 0; }
  .js .seasons.is-open { display: flex; flex-direction: column; align-items: stretch; }
  /* Un SEUL filet sépare « Photographes » des saisons : celui de la dernière saison, renforcé. */
  .nav-ph { height: 52px; padding: 0 var(--gut); border-radius: 0; font-size: 18px; color: var(--chalk); }
  .season:last-child { border-bottom-color: var(--line-strong); }
  .nav-ph.is-current { box-shadow: inset 4px 0 0 var(--club-line); }
  .no-js .seasons { flex-wrap: wrap; }
  .no-js .seasons__list { flex-direction: row; overflow-x: auto; }
  .season { border-bottom: 1px solid var(--line); }
  .season summary { height: 52px; padding: 0 var(--gut); font-size: 18px; justify-content: space-between; color: var(--chalk); }
  .season.is-current summary { box-shadow: inset 3px 0 0 var(--club-line); }
  .season__panel { position: static; min-width: 0; max-height: none; border: 0; background: var(--night-2); }
  .season__all, .season__gtitle, .season__kids a { padding-left: var(--gut); padding-right: var(--gut); }
  .season__kids a { padding-top: 11px; padding-bottom: 11px; }
}

/* ── En-tête de page ───────────────────────────────────────────────────── */
.hero { margin: 0; height: clamp(150px, 34vw, 400px); overflow: hidden; background: var(--night-2); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.head { padding: 20px 0 8px; }
.head--home { padding: 40px 0 16px; }
.crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0;
  font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.crumbs li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--chalk-muted); text-decoration: none; }
.crumbs a:hover { color: var(--chalk); text-decoration: underline; }
.head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.head__txt { min-width: 0; flex: 1 1 420px; }
.eyebrow { margin: 0 0 8px; font-stretch: 75%; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--club-text); }
.h1 { margin: 0; font-stretch: 125%; font-weight: 900; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.2rem);
  line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.h1.crest { font-weight: 400; letter-spacing: 0; line-height: 1.05; }
.h1--home { font-size: clamp(2.4rem, 1.5rem + 5vw, 5.4rem); line-height: .96; }
.lead { margin: 14px 0 0; max-width: 46ch; font-size: 1.125rem; color: var(--chalk-muted); }
.meta { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--chalk-muted); }
.meta span + span::before { content: ''; }
.credits { margin: 6px 0 0; color: var(--chalk-muted); }
.credits a { color: var(--club-text); text-underline-offset: 3px; }
.credits a:hover { color: var(--chalk); }
.head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid transparent; border-radius: var(--r); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn--accent { background: var(--club-fill); border-color: var(--club-fill); color: var(--white); }
.btn--accent:hover { background: var(--club-fill-deep); border-color: var(--club-fill-deep); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--chalk); }
.btn--ghost:hover { background: var(--night-2); border-color: var(--chalk-muted); }
.btn--icon { padding: 0; width: 44px; }
@media (max-width: 520px) { .head__actions { width: 100%; } .head__actions .btn--accent { flex: 1; } }

/* ── Blocs ─────────────────────────────────────────────────────────────── */
.block { padding: 20px 0; }
.block--grid { padding: 12px 0 24px; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.h2 { margin: 0; font-stretch: 112.5%; font-weight: 800; font-size: 1.375rem; letter-spacing: -.01em; }
.block__note { margin: 0; color: var(--chalk-muted); font-size: 14px; }
.since { color: var(--chalk); }
.tag { display: inline-block; font-stretch: 75%; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1; padding: 5px 7px 4px; border-radius: var(--r); }
.tag--new { background: var(--info); color: var(--night); }

/* Nouvelles photos : un rail sur appareil étroit, une rangée sur ordinateur */
.rail { list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
@media (min-width: 832px) { .rail { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.rail__item { scroll-snap-align: start; }
.tile { position: relative; display: flex; flex-direction: column; text-decoration: none; height: 100%; background: var(--night-2); }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-3); }
.tile__img img, .folder__img img, .match__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.tile__eyebrow { padding: 12px 14px 0; font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--club-text); }
.tile__title { padding: 2px 14px 0; font-weight: 700; font-stretch: 106%; font-size: 1.0625rem; line-height: 1.25; }
.tile__meta { padding: 4px 14px 14px; color: var(--chalk-muted); font-size: 14px; margin-top: auto; }
.tile .tag { position: absolute; top: 10px; left: 10px; }

/* Dossiers (saison, rubrique, sous-albums) */
.folders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.folders--home, .folders--season { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.folders--home li:first-child { grid-column: 1 / -1; }
.folders--home li:first-child .folder { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.folders--home li:first-child .folder__img { aspect-ratio: 16 / 9; }
.folders--home li:first-child .folder__body { align-self: end; padding: 24px; }
.folders--home li:first-child .folder__title { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
@media (max-width: 700px) { .folders--home li:first-child .folder { grid-template-columns: 1fr; } .folders--home li:first-child .folder__body { padding: 14px; } }
.folder { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--night-2); }
.folder__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-3); }
.folder__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.folder__title { font-stretch: 112.5%; font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.01em; }
.folder__title.crest { font-stretch: 100%; font-weight: 400; letter-spacing: 0; }
.folder__meta { color: var(--chalk-muted); font-size: 14px; }
.folder .tag { position: absolute; top: 10px; left: 10px; }

/* Les matchs d'une équipe : des lignes, comme une feuille de résultats */
.matches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.matches li { border-bottom: 1px solid var(--line); }
.match { position: relative; display: grid; grid-template-columns: 120px 1fr auto; grid-template-rows: auto auto;
  column-gap: 16px; align-items: center; padding: 12px 0; text-decoration: none; }
.match__img { grid-row: 1 / span 2; aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-3); }
.match__day { grid-column: 2; align-self: end; font-stretch: 75%; font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--club-text); }
.match__body { grid-column: 2; align-self: start; display: flex; flex-direction: column; min-width: 0; }
.match__title { font-weight: 700; font-stretch: 106%; font-size: 1.125rem; line-height: 1.25; }
.match__meta { color: var(--chalk-muted); font-size: 14px; }
.match__go { grid-column: 3; grid-row: 1 / span 2; color: var(--chalk-muted); }
.match .tag { position: absolute; top: 18px; left: 6px; }
.match:hover .match__title { color: var(--club-text); }
@media (min-width: 832px) { .match { grid-template-columns: 180px 1fr auto; padding: 14px 0; } }
@media (max-width: 420px) { .match { grid-template-columns: 96px 1fr auto; column-gap: 12px; } }

/* Grille justifiée : la proportion de chaque photo est connue à la génération,
   rien ne bouge au chargement (aucun JS de mise en page). */
.grid { display: flex; flex-wrap: wrap; gap: 4px; --row: 116px; }
.grid::after { content: ''; flex-grow: 1000000; }
@media (min-width: 600px) { .grid { --row: 170px; gap: 6px; } }
@media (min-width: 1100px) { .grid { --row: 220px; } }
.cell { position: relative; display: block; overflow: hidden; background: var(--night-2);
  flex-grow: calc(var(--w) / var(--h) * 100); flex-basis: calc(var(--row) * var(--w) / var(--h)); }
.cell i { display: block; padding-bottom: calc(var(--h) / var(--w) * 100%); }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell:focus-visible { outline-offset: -3px; }
.cell__badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px;
  background: var(--night); color: var(--chalk); font-size: 13px; font-weight: 600; border-radius: var(--r); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cell img, .folder__img img, .tile__img img, .match__img img { transition: transform 400ms var(--ease); }
  .cell:hover img, .folder:hover .folder__img img, .tile:hover .tile__img img, .match:hover .match__img img { transform: scale(1.04); }
}

/* Voisins */
.neighbours { padding: 8px 0 32px; }
.neighbours__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; }
.nb { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 10px 14px; text-decoration: none;
  background: var(--night-2); border: 1px solid var(--line); }
.nb:hover { border-color: var(--line-strong); }
.nb > span { display: flex; flex-direction: column; min-width: 0; }
.nb__k { font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-muted); }
.nb__t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb--newer { justify-content: flex-end; text-align: right; }
.nb--up { justify-content: center; }
@media (max-width: 700px) {
  .neighbours__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nb--up { grid-column: 1 / -1; order: -1; justify-content: flex-start; }
  .neighbours__in > span:empty { display: none; }
}

/* Pied : le service, en jour */
.foot { background: var(--day); color: var(--ink); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.foot p { margin: 0; }
.foot a { color: var(--club-text); display: inline-flex; align-items: center; gap: 4px; }

.to-top { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; width: 44px; height: 44px;
  display: grid; place-items: center; background: var(--night-2); border: 2px solid var(--line-strong); border-radius: var(--r); cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200000;
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 14px 20px;
  background: var(--chalk); color: var(--night); font-weight: 700; font-size: 16px; border-radius: var(--r);
  box-shadow: 0 0 0 3px var(--club-line), 0 8px 24px rgba(22, 17, 20, .55); }
.toast .ico { width: 22px; height: 22px; stroke-width: 2.5; color: var(--club-fill); }
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: hb-toast .18s var(--ease); } }
@keyframes hb-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Presse-papiers refusé : le lien sélectionné, prêt à copier */
.linkbox { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; background: var(--night-2); color: var(--chalk);
  box-shadow: inset 0 3px 0 var(--club-line); border-radius: var(--r); }
.linkbox::backdrop { background: rgba(22, 17, 20, .72); }
.linkbox__in { display: flex; flex-direction: column; gap: 14px; padding: 20px; margin: 0; }
.linkbox__t { margin: 0; font-stretch: 112.5%; font-weight: 800; font-size: 1.125rem; }
.linkbox__url { font: inherit; font-size: 15px; color: var(--chalk); background: var(--night); border: 2px solid var(--line-strong);
  border-radius: var(--r); padding: 10px; min-height: 44px; width: 100%; }
.linkbox__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Visionneuse (habillage de PhotoSwipe) ─────────────────────────────── */
.pswp { --pswp-bg: var(--night); --pswp-placeholder-bg: var(--night-2); --pswp-icon-color: var(--chalk); --pswp-icon-color-secondary: var(--night);
  --pswp-icon-stroke-color: var(--night); --pswp-error-text-color: var(--chalk); font-family: var(--font); }
.pswp__top-bar { height: 56px; padding: 0 4px; background: var(--night); border-bottom: 1px solid var(--line); opacity: 1; }
.pswp__counter { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; opacity: 1; color: var(--chalk-muted); margin: 0 8px; line-height: 56px; height: 56px; }
.pswp__button { opacity: 1; height: 56px; width: 48px; }
.pswp__button:hover, .pswp__button:focus-visible { background: var(--night-2); }
.pswp .hb-btn { display: grid; place-items: center; color: var(--chalk); }
.pswp .hb-btn .ico { width: 22px; height: 22px; }
.pswp .hb-btn[aria-pressed="true"] { color: var(--club-text); }
.pswp__button--arrow { height: 72px; width: 56px; margin-top: -36px; }
.pswp__button--arrow .pswp__icn { background: var(--night); }
@media (max-width: 640px) { .pswp__button--arrow { display: none; } }

.hb-foot { position: absolute; left: 0; right: 0; bottom: 0; background: var(--night); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.hb-cap { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; font-size: 14px; color: var(--chalk-muted); }
.hb-cap__credit { color: var(--chalk); font-weight: 600; }
.hb-cap__credit a { color: var(--club-text); font-weight: 500; text-underline-offset: 3px; }
.hb-cap__date { margin-left: auto; text-align: right; }
.hb-strip { display: flex; gap: 4px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.hb-strip::-webkit-scrollbar { display: none; }
.hb-strip button { flex: none; height: 56px; padding: 0; border: 2px solid transparent; background: var(--night-2); cursor: pointer; opacity: .6; }
.hb-strip button img { height: 100%; width: auto; }
.hb-strip button[aria-current="true"] { border-color: var(--chalk); opacity: 1; }
.hb-strip button:hover { opacity: 1; }
.hb-noStrip .hb-strip { display: none; }
@media (max-width: 640px) { .hb-cap { min-height: 40px; font-size: 13px; } .hb-cap__date { display: none; } }


.hb-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 0 var(--hb-foot, 108px); }
.hb-video video { max-width: 100%; max-height: 100%; background: var(--night); }
.hb-end { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px var(--gut) 120px; text-align: center; }
.hb-end__in { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.hb-end__k { margin: 0; font-stretch: 75%; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--club-text); }
.hb-end__t { margin: 0 0 8px; font-stretch: 125%; font-weight: 900; font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); line-height: 1.05; }

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

.pswp__counter { white-space: nowrap; }
@media (pointer: coarse) { .pswp__button--zoom { display: none !important; } }
@media (max-width: 420px) { .pswp__button { width: 44px; } .pswp__counter { margin: 0 4px 0 12px; } }

/* PG-33 : légende permanente (signature + date), photo seule au toucher et en diaporama */
.hb-cap { flex-wrap: wrap; row-gap: 2px; }
.hb-bare .hb-foot, .hb-bare .pswp__top-bar, .hb-bare .pswp__button--arrow { opacity: 0; pointer-events: none; }
.hb-foot, .pswp__top-bar { transition: opacity .2s ease; }
@media (max-width: 640px) { .hb-cap { flex-direction: column; align-items: flex-start; } .hb-cap__date { display: block; margin-left: 0; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .hb-foot, .pswp__top-bar { transition: none; } }


/* ══ Maillot · Épaules : la couleur du club est la construction ════════════ */
.btn--accent { background: var(--club-fill); border-color: var(--club-fill); color: var(--on-club); }
.btn--accent:hover { background: var(--club-fill-deep); border-color: var(--club-fill-deep); }
.brand__what,
.eyebrow,
.tile__eyebrow,
.match__day,
.credits a,
.season__all,
.hb-cap__credit a,
.hb-end__k { color: var(--club-text); }
.season.is-current summary { box-shadow: inset 0 -3px 0 var(--club-line); }
.match:hover .match__title { color: var(--club-text); }
.foot { background: var(--night-2); color: var(--chalk-muted); }
.foot a { color: var(--club-text); }
@media (max-width: 899px) { .season.is-current summary { box-shadow: inset 4px 0 0 var(--club-line); } }

.bar { background: var(--night); border-bottom: 6px solid var(--club-line); }
.js .seasons { top: 62px; }
.hero { border-bottom: 6px solid var(--club-line); }
/* le montant : la couture qui descend du bandeau et tient le titre */
.head .wrap { position: relative; }
.head .wrap::before { content: ''; position: absolute; top: -26px; bottom: -8px;
  left: calc(var(--gut) - 16px); width: 8px; background: var(--club-line); }
.head--home .wrap::before { top: -40px; }
@media (min-width: 832px) { .head .wrap::before { left: calc(var(--gut) - 26px); width: 12px; } }
.head { padding-bottom: 20px; }
.h1 { color: var(--chalk); }
.folder, .tile { background: var(--night-2); box-shadow: inset 0 3px 0 var(--club-line); }
.folder__img, .tile__img { margin-top: 3px; }
.h2::after { content: ''; display: block; width: 40px; height: 4px; margin-top: 6px; background: var(--club-line); }
.matches { border-top: 3px solid var(--club-line); }
.foot { border-top: 6px solid var(--club-line); }
.pswp__top-bar { border-bottom: 3px solid var(--club-line); }

.meta > span:first-child { color: var(--club-text); font-stretch: 75%; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ── Retour au site du club (`site.home_url`) : discret, à gauche du blason ── */
.bar__home { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 0;
  margin-right: -12px; border-right: 1px solid var(--line); text-decoration: none; color: var(--chalk-muted);
  font-stretch: 87.5%; font-weight: 600; font-size: 14px; white-space: nowrap; }
.bar__home:hover { color: var(--chalk); }
.bar__home:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* Au téléphone, la place va au retour et à « Saisons » : le blason seul tient la marque. */
@media (max-width: 479px) { .bar--home .bar__in { gap: 12px; } .bar--home .bar__home { margin-right: 0; }
  .bar--home .brand__txt { display: none; } }

/* ── Pied : les liens du club ─────────────────────────────────────────── */
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ── Top 10 du mois (PG-40) : une rangée numérotée, comme un classement ─ */
.top__list { list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
@media (min-width: 832px) { .top__list { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.top__list li { scroll-snap-align: start; }
.top__item { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--night-2); box-shadow: inset 0 3px 0 var(--club-line); }
.top__img { margin-top: 3px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-3); }
.top__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.top__rank { position: absolute; top: 3px; left: 0; min-width: 32px; padding: 4px 8px 3px; background: var(--night);
  color: var(--club-text); font-weight: 900; font-stretch: 112.5%; font-size: 18px; line-height: 1.1; text-align: center; }
.top__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.top__album { font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.top__by { color: var(--chalk-muted); font-size: 14px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .top__img img { transition: transform 400ms var(--ease); }
  .top__item:hover .top__img img { transform: scale(1.04); }
}

/* ── Nos photographes (PG-44) ─────────────────────────────────────────── */
/* PG-63 : la photo de profil, carrée ; sans photo, les initiales sur la nuit. */
.person__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.person__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person__who .block__note { margin: 0; }
.person__photo { flex: none; width: 72px; height: 72px; object-fit: cover; background: var(--night-3);
  box-shadow: 0 0 0 2px var(--night), 0 0 0 5px var(--club-line); }
@media (min-width: 832px) { .person__photo { width: 96px; height: 96px; } }
.person__initials { display: grid; place-items: center; color: var(--chalk); font-family: var(--crest); font-size: 28px;
  letter-spacing: .02em; user-select: none; }
@media (min-width: 832px) { .person__initials { font-size: 36px; } }
.person + .person { border-top: 1px solid var(--line); }
.person__link { color: var(--club-text); display: inline-flex; align-items: center; gap: 4px; text-underline-offset: 3px; }
.person__top { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.person__top li { flex: none; }
.person__top a { display: block; height: 120px; background: var(--night-2); }
.person__top img { height: 100%; width: auto; }
@media (min-width: 832px) { .person__top a { height: 160px; } }
/* PG-68 b : les pastilles qui mènent à chaque photographe, et « Ses N autres albums ». */
.people-nav { padding-top: 0; }
.people-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.people-nav__chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 14px 4px 4px;
  color: var(--chalk); text-decoration: none; font-weight: 700; background: var(--night-2); border: 1px solid var(--line); }
.people-nav__chip:hover, .people-nav__chip:focus-visible { border-color: var(--club-line); }
.people-nav__pic { flex: none; width: 40px; height: 40px; object-fit: cover; background: var(--night-3); font-size: 15px; }
.people-nav__name { white-space: nowrap; }
.person { scroll-margin-top: 96px; }
.person__more { margin-top: 0; }
.person__more-btn { list-style: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; cursor: pointer;
  font-weight: 700; color: var(--club-text); text-decoration: underline; text-underline-offset: 3px; }
.person__more-btn::-webkit-details-marker { display: none; }
.person__more-btn::after { content: ' ▾'; text-decoration: none; }
.person__more[open] > .person__more-btn::after { content: ' ▴'; }
.person__more > .matches { border-top: 0; }

/* ── « Demander le retrait » dans la visionneuse (PG-16) ──────────────── */
.pswp .hb-b-ask .ico { width: 20px; height: 20px; }
/* Lot FV : le cœur — plein quand il est posé ; jamais un nombre à côté (FV-11). */
.pswp .hb-b-heart[aria-pressed="true"] .ico { fill: currentColor; }
.pswp .hb-cap__login { display: inline-block; margin-left: 12px; color: var(--chalk); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.pswp .hb-cap__login[hidden] { display: none; }
.hb-ask-panel { position: absolute; right: 0; top: 56px; z-index: 3; width: 380px; max-width: 100%; max-height: calc(100% - 56px);
  overflow: auto; background: var(--night-2); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--club-line); padding: 18px 20px 20px; color: var(--chalk); }
@media (max-width: 640px) { .hb-ask-panel { top: auto; bottom: 0; width: 100%; max-height: 85%; border-left: 0;
  border-top: 1px solid var(--line); padding-bottom: calc(20px + env(safe-area-inset-bottom)); } }
.hb-ask { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hb-ask__t { margin: 0; font-stretch: 112.5%; font-weight: 800; font-size: 1.125rem; line-height: 1.2; }
.hb-ask__why { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.hb-ask__why legend { padding: 0; margin-bottom: 6px; font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--club-text); }
.hb-ask__opt { display: flex; gap: 10px; align-items: flex-start; min-height: 32px; cursor: pointer; font-size: 15px; }
.hb-ask__opt input { margin: 3px 0 0; accent-color: var(--club-fill); width: 18px; height: 18px; flex: none; }
.hb-ask__field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.hb-ask__field small { color: var(--chalk-muted); font-size: 13px; }
.hb-ask__field input, .hb-ask__field textarea { font: inherit; color: var(--chalk); background: var(--night); border: 2px solid var(--line-strong);
  border-radius: var(--r); padding: 9px 10px; min-height: 44px; width: 100%; resize: vertical; }
.hb-ask__field input:focus-visible, .hb-ask__field textarea:focus-visible { outline: 2px solid var(--chalk); outline-offset: 1px; }
.hb-ask__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hb-ask__note { margin: 0; color: var(--chalk-muted); font-size: 14px; }
.hb-ask__note strong { color: var(--chalk); font-weight: 600; overflow-wrap: anywhere; }
.hb-ask__msg { margin: 0; min-height: 1em; color: var(--club-text); font-weight: 600; font-size: 14px; }
.hb-ask__msg:empty { display: none; }
.hb-ask__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-ask__actions .btn--accent { flex: 1 1 auto; }
