@font-face {
  font-family: 'Great Vibes';
  src: url('../../fonts/great-vibes/great-vibes-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Anybody';
  src: url('../../fonts/anybody/anybody-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD;
}

@view-transition { navigation: auto; }
@font-face {
  font-family: 'Anybody';
  src: url('../../fonts/anybody/anybody-latin-ext-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anybody';
  src: url('../../fonts/anybody/anybody-latin-standard-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Anybody';
  src: url('../../fonts/anybody/anybody-latin-ext-standard-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Epilogue';
  src: url('../../fonts/Epilogue/Epilogue-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Epilogue';
  src: url('../../fonts/Epilogue/Epilogue-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --encre: #212121;
  --bordeaux: #53191C;
  --rouge: #A52726;
  --jaune: #F6CF6C;
  --creme: #F8F4E8;
  --nuit: #171414;
  --creme-voile: rgba(248, 244, 232, 0.78);
  --creme-filet: rgba(248, 244, 232, 0.18);
  --encre-voile: rgba(33, 33, 33, 0.78);
  --encre-filet: rgba(33, 33, 33, 0.16);
  --ombre: rgba(23, 20, 20, 0.45);
  --display: 'Anybody', 'Arial Narrow', sans-serif;
  --texte: 'Epilogue', 'Helvetica Neue', Arial, sans-serif;
  --gouttiere: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--nuit);
  scroll-padding-top: 90px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--texte);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, figure, figcaption, address { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
button, a, [role='button'] {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
::selection { background: var(--jaune); color: var(--encre); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 0; box-shadow: 0 0 0 6px var(--encre) !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: fixed; top: -100px; left: var(--gouttiere); z-index: 100; padding: 10px 16px; background: var(--jaune); color: var(--encre); font-weight: 800; }
.evitement:focus { top: 12px; }

/* En-tête commun aux sites de section. */
.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gouttiere) 10px;
  border-bottom: 1px solid var(--creme-filet);
  background: rgba(23, 20, 20, 0.96);
  view-transition-name: entete;
}
.entete-marque { display: flex; align-items: center; gap: 11px; min-height: 48px; }
.entete-marque img { width: 44px; height: 44px; object-fit: contain; }
.entete-marque strong, .entete-marque small { display: block; }
.entete-marque strong { font-family: var(--display); font-stretch: 125%; font-weight: 850; line-height: 1; text-transform: uppercase; }
.entete-marque small { margin-top: 3px; color: var(--creme-voile); font-size: 0.7rem; }
.entete-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 0.82rem; font-weight: 650; }
.entete-liens { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 22px); }
.entete-liens > a, .entete-sousmenu-lien { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
.entete-liens a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--jaune); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.entete-sousmenu { position: relative; display: flex; align-items: center; }
.entete-sousmenu-bouton, .entete-menu, .entete-a11y {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--creme);
  cursor: pointer;
}
.entete-sousmenu-bouton span { transition: transform 180ms var(--ease-out); }
.entete-sousmenu-liste {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 5;
  display: grid;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--creme-filet);
  border-radius: 8px;
  background: var(--encre);
  box-shadow: 0 18px 40px var(--ombre);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top left;
  transition: opacity 160ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.entete-sousmenu-liste a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 5px; }
.entete-sousmenu.est-ouvert .entete-sousmenu-liste,
.no-js .entete-sousmenu:focus-within .entete-sousmenu-liste { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.entete-sousmenu.est-ouvert .entete-sousmenu-bouton span { transform: rotate(180deg); }
.entete-don { min-height: 44px !important; padding: 8px 15px !important; border-radius: 999px; background: var(--jaune); color: var(--encre); white-space: nowrap; }
.entete-a11y svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.entete-menu { display: none; width: auto; font-weight: 800; }

/* Ouvertures. */
.ouverture { position: relative; overflow: hidden; padding: clamp(34px, 5vw, 64px) var(--gouttiere); background: var(--bordeaux); }
.ouverture > * { position: relative; }
.lignes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lignes path, .lignes circle { fill: none; stroke: var(--rouge); stroke-width: 3; }
.lignes .trace { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: trace-terrain 2.6s var(--ease-out) forwards; }
.lignes .trace.pointille { stroke-dasharray: 14 12; }
.surtitre { color: var(--jaune); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ouverture h1, .tete h2, .bienvenue h2, .profil h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 850;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}
.ouverture h1 { max-width: 1000px; margin-top: 7px; font-size: clamp(2.3rem, 7vw, 5.5rem); animation: titre-entree 800ms var(--ease-out) both; }
.ouverture .intro { max-width: 60ch; margin-top: 13px; color: var(--creme); }
.ouverture-courte { min-height: 300px; display: grid; align-content: center; }
.ouverture-video { display: grid; align-content: end; min-height: min(60svh, 540px); background: var(--nuit); }
.ouverture-video video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.ouverture-video .voile { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23, 20, 20, 0.14) 20%, rgba(23, 20, 20, 0.9)); }
.ouverture-video .lignes { z-index: 2; }
.ouverture-video .lignes path, .ouverture-video .lignes circle { stroke: var(--jaune); stroke-width: 2.5; opacity: 0.76; }
.ouverture-video .contenu { z-index: 3; }
.ouverture-video h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); }
.sans-video .lignes path, .sans-video .lignes circle { stroke: var(--rouge); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 23px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border-radius: 999px; font-weight: 800; transition: transform 120ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.bouton:active { transform: scale(0.97); }
.bouton-plein { background: var(--jaune); color: var(--encre); }
.bouton-trait { box-shadow: inset 0 0 0 1.5px currentColor; }
.bouton-video { position: absolute; right: var(--gouttiere); bottom: 14px; z-index: 4; min-height: 44px; padding: 7px 13px; border: 1px solid var(--creme-filet); border-radius: 999px; background: rgba(23, 20, 20, 0.78); color: var(--creme); cursor: pointer; }
.retour { display: inline-flex; align-items: center; min-height: 44px; width: max-content; margin-bottom: 7px; color: var(--creme); font-size: 0.88rem; }
.fil-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-bottom: 6px; color: var(--creme-voile); font-size: 0.78rem; }
.fil-ariane a { text-decoration: underline; text-underline-offset: 3px; }
.fil-ariane [aria-current='page'] { color: var(--creme); font-weight: 750; }
.niveau-pastille, .niveau, .badge { width: max-content; border-radius: 999px; font-weight: 800; }
.niveau-pastille { margin-top: 14px; padding: 4px 12px; background: var(--jaune); color: var(--encre); }

/* Sections et états. */
.bloc { padding: clamp(50px, 7vw, 96px) var(--gouttiere); }
.clair { background: var(--creme); color: var(--encre); }
.bordeaux { background: var(--bordeaux); }
.tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.tete h2, .bienvenue h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem); }
.tete a { min-height: 44px; display: inline-flex; align-items: center; color: var(--jaune); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.clair .tete a { color: var(--rouge); }
.etat-vide { max-width: 56ch; padding: 22px; border: 1px solid currentColor; border-radius: 7px; }
.etat-vide a { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; color: var(--jaune); font-weight: 800; text-decoration: underline; }

/* Matchs. */
.matchs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.match { display: grid; gap: 16px; align-content: start; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--creme-filet); border-radius: 8px; background: rgba(248, 244, 232, 0.04); transition: transform 220ms var(--ease-out), border-color 180ms ease; }
.match-domicile { border-color: var(--jaune); background: rgba(246, 207, 108, 0.1); }
.match-domicile .badge { background: var(--jaune); color: var(--encre); }
.match-exterieur .badge { background: transparent; box-shadow: inset 0 0 0 1px var(--creme-filet); }
.match-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.8rem; }
.match-equipe { color: var(--jaune); font-weight: 800; }
.badge { padding: 2px 10px; background: var(--rouge); color: var(--creme); }
.affiche { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; text-align: center; }
.affiche strong { display: block; font-family: var(--display); font-stretch: 110%; font-size: 1.05rem; line-height: 1.08; text-transform: uppercase; overflow-wrap: anywhere; }
.affiche > span { color: var(--creme-voile); font-size: 0.82rem; }
.blason { width: 62px; height: 62px; margin: 0 auto 10px; object-fit: contain; }
.match-quand { font-size: 1.04rem; font-weight: 800; }
.match-ou { color: var(--creme-voile); font-size: 0.88rem; }
.match-encouragement { color: var(--jaune); font-weight: 800; }

/* Résultats mis à l'honneur et palmarès de section. */
.honneur-resultats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.honneur-resultat { display: grid; gap: 12px; align-content: start; padding: 22px; border: 1px solid var(--creme-filet); border-radius: 8px; background: rgba(248, 244, 232, 0.04); }
.honneur-resultat > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.honneur-resultat h3, .palmares-resultat h3 { font-family: var(--display); font-stretch: 120%; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; }
.honneur-resultat p { color: var(--creme-voile); }
.honneur-annee { color: var(--jaune); font-family: var(--display); font-stretch: 120%; font-weight: 850; font-variant-numeric: tabular-nums; }
.medaille { display: inline-flex; align-items: center; min-height: 32px; width: max-content; padding: 4px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.76rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.medaille-titre { border-color: var(--bordeaux); background: var(--bordeaux); color: var(--creme); }
.medaille-or { border-color: var(--jaune); background: var(--jaune); color: var(--encre); }
.medaille-argent { border-color: var(--encre); background: var(--creme); color: var(--encre); }
.medaille-bronze { border-color: var(--rouge); background: var(--rouge); color: var(--creme); }
.palmares-section-liste { display: grid; gap: 48px; }
.palmares-annee { display: grid; grid-template-columns: minmax(90px, 0.22fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.palmares-annee > h2 { position: sticky; top: 100px; color: var(--rouge); font-family: var(--display); font-stretch: 125%; font-size: clamp(2rem, 1.4rem + 3vw, 4.2rem); font-variant-numeric: tabular-nums; line-height: 1; }
.palmares-resultats { display: grid; gap: 14px; }
.palmares-resultat { display: grid; grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px 20px; align-items: center; min-height: 96px; padding: 18px; border: 1px solid var(--encre-filet); }
.palmares-resultat p { color: var(--encre-voile); }
.palmares-resultat .palmares-athletes { grid-column: 2 / -1; color: var(--bordeaux); font-weight: 700; }
.palmares-complet { margin-top: 42px; }
.palmares-compteurs { display: flex; flex-wrap: wrap; background: var(--jaune); color: var(--encre); }
.palmares-compteurs > div { flex: 1 1 210px; display: grid; place-items: center; min-height: 116px; padding: 18px; border-right: 1px solid var(--encre-filet); text-align: center; }
.palmares-compteurs strong { font-family: var(--display); font-stretch: 125%; font-size: clamp(2rem, 5vw, 4.2rem); line-height: .9; }
.palmares-compteurs span { font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.filtres-palmares { display: grid; gap: 18px; margin-bottom: 52px; padding-bottom: 26px; border-bottom: 1px solid var(--encre-filet); }
.filtres-palmares > div { display: grid; gap: 9px; }
.filtres-palmares > div > strong { font-size: .8rem; text-transform: uppercase; }
.filtres-palmares > div > div { display: flex; flex-wrap: wrap; gap: 7px; }
.filtres-palmares a { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 12px; border: 1px solid var(--encre-filet); border-radius: 999px; font-size: .82rem; font-weight: 750; }
.filtres-palmares a[aria-current='page'] { border-color: var(--bordeaux); background: var(--bordeaux); color: var(--creme); }
.palmares-frise { display: grid; gap: 62px; }
.palmares-decennie > h2 { margin-bottom: 28px; color: var(--bordeaux); font-family: var(--display); font-stretch: 125%; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; text-transform: uppercase; }
.palmares-annees { position: relative; display: grid; gap: 34px; }
.palmares-annees::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 57px; width: 2px; background: var(--encre-filet); }
.palmares-annee-frise { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 24px; }
.palmares-annee-frise > h3 { position: relative; z-index: 1; align-self: start; width: max-content; padding: 5px 10px; background: var(--creme); color: var(--rouge); font-family: var(--display); font-stretch: 125%; font-size: 1.65rem; line-height: 1; }
.palmares-resultats-frise { display: grid; gap: 13px; }
.palmares-resultat-frise { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr); gap: 14px 24px; padding: 20px; border: 1px solid var(--encre-filet); }
.palmares-resultat-frise > div { grid-row: span 2; }
.palmares-resultat-frise h4 { margin: 11px 0 4px; font-family: var(--display); font-stretch: 115%; font-size: 1.3rem; line-height: 1.08; text-transform: uppercase; }
.palmares-resultat-frise > p { color: var(--encre-voile); font-size: .86rem; }
.palmares-performance { color: var(--bordeaux); font-weight: 800; }

/* Actualités et présentation. */
.actus { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.actu-une { display: grid; gap: 10px; align-content: start; }
.vignette { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bordeaux); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette svg { width: 100%; height: 100%; }
.vignette svg * { fill: none; stroke: var(--rouge); stroke-width: 3; }
.actu-une h3 { font-family: var(--display); font-stretch: 118%; font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); line-height: 1.08; text-transform: uppercase; }
.actu-une p { color: var(--encre-voile); }
time { color: var(--encre-voile); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.actu-liste { border-top: 1px solid var(--encre-filet); }
.actu-liste a { display: grid; gap: 5px; min-height: 76px; padding: 16px 0; border-bottom: 1px solid var(--encre-filet); }
.bienvenue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bienvenue.sans-photo { grid-template-columns: minmax(0, 760px); }
.bienvenue p { max-width: 58ch; margin: 17px 0 24px; }
.bienvenue img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Compteurs et partenaires. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1px; border: 1px solid var(--encre-filet); background: var(--encre-filet); }
.stat { display: grid; gap: 5px; align-content: start; padding: 22px; background: var(--creme); }
.stat strong { color: var(--rouge); font-family: var(--display); font-stretch: 125%; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { color: var(--encre-voile); font-size: 0.88rem; }
.controle-mouvement { min-height: 44px; margin-bottom: 12px; padding: 7px 15px; border: 1px solid var(--creme-filet); border-radius: 999px; background: transparent; color: var(--creme); cursor: pointer; }
.rail { overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, var(--encre) 7%, var(--encre) 93%, transparent); }
.rail-piste { display: flex; width: max-content; animation: rail-defile 40s linear infinite; }
.rail-groupe { display: flex; gap: 16px; padding-right: 16px; }
.rail.est-en-pause .rail-piste { animation-play-state: paused; }
.rail .partenaire:focus-visible { outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--encre) !important; }
.partenaire { display: grid; place-items: center; width: 210px; min-height: 96px; padding: 14px 18px; background: var(--creme); color: var(--encre); font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.1; text-align: center; text-transform: uppercase; }
.partenaire img { max-width: 165px; max-height: 68px; object-fit: contain; }

/* Liste des équipes. */
.cartes-equipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.carte-equipe { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 8px; background: var(--creme); color: var(--encre); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.carte-photo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bordeaux); }
.carte-photo > img { width: 100%; height: 100%; object-fit: cover; }
.carte-photo svg { width: 100%; height: 100%; }
.carte-photo svg * { fill: none; stroke: var(--rouge); stroke-width: 3; }
.carte-photo .niveau { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; background: var(--jaune); color: var(--encre); font-size: 0.82rem; }
.carte-corps { display: grid; gap: 10px; align-content: start; padding: 20px; }
.carte-corps h2 { font-family: var(--display); font-stretch: 125%; font-size: 1.65rem; line-height: 1; text-transform: uppercase; }
.carte-corps .meta { color: var(--encre-voile); font-size: 0.88rem; }
.encadrement { font-size: 0.88rem; }
.encadrement b { display: block; color: var(--encre-voile); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.voir { width: max-content; margin-top: 5px; color: var(--rouge); font-weight: 800; }

/* Fiche équipe. */
.profil { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 50px); align-items: center; }
.profil.sans-photo { grid-template-columns: minmax(0, 760px); }
.profil-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.profil-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profil h2 { margin-bottom: 14px; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); }
.profil p { color: var(--encre-voile); }
.statistiques-equipe { padding-top: 0; }
.stats-equipe { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
.graphes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 24px; }
.graphe { padding: 20px; border: 1px solid var(--encre-filet); }
.graphe figcaption { margin-bottom: 12px; font-weight: 800; }
.graphe svg { width: 100%; height: auto; }
.graphe text { fill: var(--encre-voile); font-family: var(--texte); font-size: 22px; }
.graphe-axe { fill: none; stroke: var(--encre-filet); stroke-width: 2; }
.graphe-courbe { fill: none; stroke: var(--rouge); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.graphe-point { fill: var(--rouge); stroke: var(--creme); stroke-width: 2; }
.graphe-defaites { fill: var(--encre-filet); }
.graphe-victoires { fill: var(--rouge); }
.graphe-nuls { fill: var(--jaune); }
.graphe [data-stat-barre] { transform-box: fill-box; transform-origin: left center; }
.prochain { width: min(100%, 720px); margin-inline: auto; }
.match-principal { padding: clamp(24px, 4vw, 38px); }
.match-principal .blason { width: clamp(72px, 10vw, 96px); height: clamp(72px, 10vw, 96px); }
.match-principal .affiche strong { font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.45rem); }
.matchs-suivants { display: grid; gap: 16px; width: min(100%, 920px); margin: 34px auto 0; }
.matchs-suivants > h3 { font-family: var(--display); font-stretch: 120%; font-size: 1.35rem; text-transform: uppercase; }
.matchs-suivants-liste { display: grid; gap: 10px; }
.match-compact { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 92px; padding: 14px 16px; border: 1px solid var(--creme-filet); border-radius: 7px; }
.match-compact.match-domicile { border-color: var(--jaune); }
.match-compact .blason { width: 48px; height: 48px; margin: 0; }
.match-compact .match-quand { font-size: 0.88rem; }
.match-compact .match-ou, .match-compact .match-encouragement { margin-top: 2px; font-size: 0.78rem; }
.matchs-suivants > .bouton { justify-self: center; margin-top: 4px; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr)); gap: 24px; }
.personne { display: grid; gap: 7px; }
.personne-photo { display: grid; place-items: end center; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(248, 244, 232, 0.08); }
.personne-photo img { width: 100%; height: 100%; object-fit: cover; }
.personne-photo svg { width: 64%; fill: rgba(248, 244, 232, 0.22); }
.personne h3 { font-family: var(--display); font-stretch: 115%; font-size: 1.15rem; text-transform: uppercase; }
.personne span { color: var(--creme-voile); font-size: 0.88rem; }

/* Effectif, terrain et fiche joueur. */
.outils { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.outils button { min-height: 44px; padding: 7px 17px; border: 1px solid var(--creme-filet); border-radius: 999px; background: var(--encre); color: var(--creme); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out); }
.outils button:active { transform: scale(0.97); }
.outils button[aria-pressed='true'] { border-color: var(--jaune); background: var(--jaune); color: var(--encre); font-weight: 800; }
.terrain { position: relative; width: 100%; aspect-ratio: 94 / 50; overflow: hidden; border-radius: 6px; background: var(--encre); touch-action: pan-y; user-select: none; }
.terrain[data-sport='handball'] { aspect-ratio: 2 / 1; }
.terrain[data-sport='football'] { aspect-ratio: 1050 / 680; }
.terrain[data-sport='rugby'] { aspect-ratio: 12 / 7; }
.terrain[data-orientation='vertical'][data-sport='football'] { aspect-ratio: 680 / 1050; }
.terrain[data-orientation='vertical'][data-sport='rugby'] { aspect-ratio: 7 / 12; }
.terrain-composition { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: clamp(18px, 3vw, 34px); align-items: start; }
.terrain-colonne { min-width: 0; }
/* Terrain vertical : hauteur plafonnée à l'écran visible, la largeur suit le ratio. */
.terrain[data-orientation='vertical'] { --ratio-vertical: 0.65; width: min(100%, calc(min(72svh, 640px) * var(--ratio-vertical))); margin-inline: auto; }
.terrain[data-orientation='vertical'][data-sport='football'] { --ratio-vertical: 0.6476; }
.terrain[data-orientation='vertical'][data-sport='rugby'] { --ratio-vertical: 0.5833; }
.terrain-laterale { display: grid; gap: 18px; }
.terrain > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.terrain > svg * { fill: none; stroke: var(--creme-filet); stroke-width: 2.5; }
.terrain > svg .cercle-central { fill: rgba(246, 207, 108, 0.08); }
.joueur { position: absolute; top: 0; left: 0; display: grid; justify-items: center; gap: 3px; width: 94px; min-height: 48px; margin: -22px 0 0 -47px; padding: 0; border: 0; background: transparent; color: var(--creme); cursor: grab; touch-action: none; will-change: transform; }
.joueur.est-tenu { z-index: 3; cursor: grabbing; }
.pastille { display: grid; place-items: center; width: clamp(32px, 4.8vw, 46px); aspect-ratio: 1; border-radius: 50%; font-family: var(--display); font-stretch: 110%; font-weight: 850; font-size: clamp(0.8rem, 1.7vw, 1.15rem); transition: transform 160ms ease; }
.terrain:is([data-sport='football'], [data-sport='rugby']) .pastille { width: clamp(24px, 3.2vw, 36px); font-size: clamp(0.65rem, 1.2vw, 0.9rem); }
.camp-a .pastille { background: var(--rouge); color: var(--creme); box-shadow: inset 0 0 0 2px var(--creme), 0 6px 16px var(--ombre); }
.camp-b .pastille { background: var(--jaune); color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre), 0 6px 16px var(--ombre); }
.joueur.a-le-ballon .pastille { box-shadow: inset 0 0 0 2px var(--creme), 0 0 0 5px rgba(246, 207, 108, 0.42), 0 8px 20px var(--ombre); }
.joueur .nom { max-width: 94px; overflow: hidden; padding: 1px 5px; border-radius: 4px; background: rgba(23, 20, 20, 0.84); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.ballon { position: absolute; top: 0; left: 0; width: 15px; height: 15px; margin: -27px 0 0 9px; border-radius: 50%; background: var(--jaune); box-shadow: inset -2px -2px 0 var(--rouge); pointer-events: none; will-change: transform; }
.banc { display: grid; gap: 12px; align-items: start; padding: 18px 20px; border: 1px solid var(--creme-filet); border-radius: 6px; }
.banc h3 { font-family: var(--display); font-stretch: 120%; font-size: 1rem; text-transform: uppercase; }
.banc ul { display: grid; gap: 8px; }
.banc button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 5px 12px 5px 5px; border: 1px solid var(--creme-filet); border-radius: 999px; background: transparent; color: var(--creme); cursor: pointer; text-align: left; }
.banc button .pastille { width: 32px; font-size: 0.78rem; }
.banc .staff-banc .pastille { background: var(--creme); color: var(--encre); }
.banc .staff-photo { width: 36px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--creme); }
.banc .staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.banc .staff-photo svg { width: 100%; height: 100%; padding: 5px 7px 0; fill: var(--encre-voile); }
.banc-vide { color: var(--creme-voile); font-size: 0.86rem; }
.staff-sans-terrain { width: min(100%, 460px); margin-bottom: 28px; }
.staff-statique { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 44px; padding: 5px 12px 5px 5px; border: 1px solid var(--creme-filet); border-radius: 999px; }
.feuille-cadre { overflow-x: auto; overscroll-behavior: contain; }
.feuille { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.feuille th, .feuille td { min-height: 44px; padding: 12px 14px; border-bottom: 1px solid var(--creme-filet); text-align: left; }
.feuille th { color: var(--creme-voile); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.feuille td:first-child { width: 4ch; font-family: var(--display); font-stretch: 110%; font-weight: 850; font-size: 1.1rem; }
.fiche { position: fixed; right: var(--gouttiere); bottom: calc(var(--gouttiere) + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; width: min(420px, calc(100% - 2 * var(--gouttiere))); padding: 18px; border-radius: 8px; background: var(--creme); color: var(--encre); box-shadow: 0 24px 60px var(--ombre); animation: fiche-entree 220ms var(--ease-out) both; }
.fiche-photo { display: grid; place-items: end center; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(33, 33, 33, 0.12); }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
.fiche-photo svg { width: 70%; fill: rgba(33, 33, 33, 0.24); }
.fiche h3 { margin-right: 30px; font-family: var(--display); font-stretch: 120%; font-size: 1.4rem; line-height: 1; text-transform: uppercase; }
.fiche p { margin-top: 7px; font-size: 0.9rem; }
.fiche-fermer { position: absolute; top: 7px; right: 7px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer; }

/* Pages complémentaires des sites de section. */
.mise-a-jour { margin-top: 18px; color: var(--creme-voile); font-size: 0.84rem; }
.clair .surtitre, .clair .etat-vide a { color: var(--rouge); }
.filtres-joueurs, .filtres-calendrier { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; margin-bottom: 32px; padding: 20px; border: 1px solid var(--encre-filet); }
.filtres-joueurs fieldset { display: grid; gap: 8px; min-width: min(100%, 260px); margin: 0; padding: 0; border: 0; }
.filtres-joueurs legend, .filtres-joueurs > fieldset > label, .filtres-calendrier > label { font-size: 0.82rem; font-weight: 800; }
.filtres-joueurs select, .filtres-calendrier select { min-height: 44px; padding: 8px 38px 8px 12px; border: 1px solid var(--encre-filet); border-radius: 4px; background: var(--creme); color: var(--encre); }
.cases-postes { display: flex; flex-wrap: wrap; gap: 8px; }
.cases-postes label { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; border: 1px solid var(--encre-filet); border-radius: 999px; cursor: pointer; }
.cases-postes input { width: 20px; height: 20px; margin-right: 7px; accent-color: var(--rouge); }
.filtres-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-left: auto; }
.filtres-actions p { font-weight: 800; }
.filtres-actions button, .onglets-calendrier button { min-height: 44px; padding: 8px 15px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.cartes-joueurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.carte-joueur { overflow: hidden; border: 1px solid var(--encre-filet); background: var(--creme); }
.carte-joueur .personne-photo { background: rgba(83, 25, 28, 0.08); }
.carte-joueur .personne-photo svg, .clair .personne-photo svg { fill: rgba(83, 25, 28, 0.3); }
.carte-joueur-corps { display: grid; gap: 6px; padding: 17px; }
.carte-joueur h2, .carte-joueur h3 { font-family: var(--display); font-stretch: 118%; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.carte-joueur p { color: var(--encre-voile); font-size: 0.88rem; }
.carte-joueur a { display: inline-flex; align-items: center; min-height: 44px; width: max-content; max-width: 100%; color: var(--rouge); font-weight: 800; }
.numero-joueur { color: var(--rouge); font-family: var(--display); font-stretch: 115%; font-weight: 850; }
.ancres-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ancres-categories a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 13px; border: 1px solid var(--encre-filet); border-radius: 999px; color: var(--bordeaux); font-size: 0.86rem; font-weight: 800; }
.categories-athletes { display: grid; gap: 52px; }
.categorie-athletes-section { scroll-margin-top: 94px; }
.categorie-athletes-section > h2, .categorie-athletes > h3 { margin-bottom: 18px; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); line-height: 1.05; text-transform: uppercase; }
.categorie-athletes-section > h2 span { display: block; margin-top: 5px; color: var(--encre-voile); font-family: var(--texte); font-size: 0.82rem; font-stretch: normal; letter-spacing: 0; text-transform: none; }
.categories-athletes-groupe { display: grid; gap: 42px; }
.grille-athletes-groupe { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 22px; }
.carte-athlete { display: grid; gap: 7px; }
.carte-athlete h4 { margin: 0; font-family: var(--display); font-stretch: 115%; font-size: 1.15rem; line-height: 1.05; text-transform: uppercase; }
.carte-athlete p { color: var(--creme-voile); font-size: 0.88rem; }
.clair .personne span { color: var(--encre-voile); }
.filtres-calendrier { border-color: var(--creme-filet); }
.filtres-calendrier select { border-color: var(--creme-filet); background: var(--encre); color: var(--creme); }
.onglets-calendrier { display: flex; flex-wrap: wrap; gap: 8px; }
.onglets-calendrier button[aria-pressed='true'] { border-color: var(--jaune); background: var(--jaune); color: var(--encre); font-weight: 800; }
.calendrier-liste + .calendrier-liste { margin-top: 64px; }
.calendrier-liste .tete h2 small { display: block; margin-top: 5px; color: var(--creme-voile); font-family: var(--texte); font-size: 0.36em; font-stretch: normal; font-weight: 500; text-transform: none; }
.groupe-equipe-semaine + .groupe-equipe-semaine { margin-top: 38px; }
.groupe-equipe-semaine > h3 { margin-bottom: 16px; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); text-transform: uppercase; }
.groupe-equipe-semaine > h3 a, .semaine-sans-match a, .calendrier-equipes-lien a { text-decoration: underline; text-underline-offset: 4px; }
.semaine-sans-match { padding: 16px 18px; border: 1px solid var(--creme-filet); color: var(--creme-voile); }
.semaine-sans-match a, .calendrier-equipes-lien a { color: var(--jaune); font-weight: 800; }
.calendrier-equipes-lien { margin-top: 38px; }
.groupe-mois + .groupe-mois { margin-top: 38px; }
.groupe-mois > h3 { margin-bottom: 16px; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); text-transform: uppercase; }
.match .resultat-victoire { background: var(--jaune); color: var(--encre); }
.match .resultat-défaite, .match .resultat-égalité { background: var(--rouge); }
.match .resultat-nul { background: var(--jaune); color: var(--encre); }

.frise { position: relative; display: grid; gap: 42px; max-width: 900px; padding-left: clamp(34px, 7vw, 84px); }
.frise-ligne { position: absolute; top: 9px; bottom: 9px; left: clamp(10px, 2.7vw, 32px); width: 4px; background: var(--rouge); transform: scaleY(var(--frise-progression, 0)); transform-origin: top; }
.frise-bloc { position: relative; padding: 4px 0 4px clamp(8px, 2vw, 22px); }
.frise-bloc::before { content: ''; position: absolute; top: 9px; left: calc(clamp(10px, 2.7vw, 32px) * -1 - 8px); width: 18px; aspect-ratio: 1; border: 4px solid var(--creme); border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 2px var(--rouge); }
.frise-bloc h2, .appel h2, .avantages-don h2 { font-family: var(--display); font-stretch: 120%; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.05; text-transform: uppercase; }
.frise-bloc p { max-width: 65ch; margin-top: 10px; color: var(--encre-voile); }
.no-js .frise-ligne { transform: scaleY(1); }

.partenaires-page-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.partenaire-page { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--encre-filet); }
.partenaire-page-tuile { display: grid; place-items: center; min-height: 180px; padding: 24px; background: var(--creme); }
.partenaire-page-tuile img { max-width: 190px; max-height: 100px; object-fit: contain; }
.partenaire-page-tuile span { font-family: var(--display); font-stretch: 115%; font-weight: 850; text-align: center; text-transform: uppercase; }
.partenaire-page > p { display: grid; gap: 5px; padding: 16px; border-top: 1px solid var(--encre-filet); }
.partenaire-page a { display: inline-flex; align-items: center; min-height: 44px; width: max-content; color: var(--rouge); font-weight: 800; }
.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.appel p { max-width: 58ch; margin-top: 10px; color: var(--creme-voile); }

.actualite-une { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 50px); align-items: center; margin-bottom: 52px; }
.actualite-une h2, .carte-actualite h2, .carte-actualite h3 { font-family: var(--display); font-stretch: 120%; line-height: 1.04; text-transform: uppercase; }
.actualite-une h2 { margin: 7px 0 12px; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); }
.actualite-une p:not(.surtitre) { margin-bottom: 14px; color: var(--encre-voile); }
.grille-actualites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.carte-actualite { display: grid; align-content: start; border: 1px solid var(--encre-filet); background: var(--creme); color: var(--encre); }
.bordeaux .carte-actualite { border-color: var(--creme-filet); }
.carte-actualite > div { display: grid; gap: 8px; padding: 17px; }
.carte-actualite h2, .carte-actualite h3 { font-size: 1.35rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin-top: 45px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; min-height: 44px; }
.pagination a { color: var(--rouge); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.article-section-ouverture { position: relative; min-height: min(72svh, 720px); display: grid; align-items: end; overflow: hidden; padding: clamp(50px, 8vw, 100px) var(--gouttiere); background: var(--nuit); }
.article-section-ouverture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 20, 20, 0.18), rgba(23, 20, 20, 0.96)); }
.article-section-ouverture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.article-section-ouverture > div { position: relative; z-index: 1; max-width: 980px; }
.article-section-ouverture h1 { margin: 8px 0 16px; font-family: var(--display); font-stretch: 125%; font-size: clamp(2.3rem, 7vw, 5.5rem); line-height: 0.96; text-transform: uppercase; }
.article-section-ouverture time { color: var(--creme-voile); }
.article-section-corps { display: grid; justify-items: center; }
.article-section-texte { display: grid; gap: 24px; width: min(100%, 760px); font-size: clamp(1.04rem, 1rem + 0.3vw, 1.2rem); }
.article-section-texte .article-chapo { color: var(--bordeaux); font-size: 1.2em; font-weight: 700; }
.article-section-texte blockquote { margin: 8px 0; padding: 20px 24px; border-left: 5px solid var(--rouge); background: rgba(83, 25, 28, 0.07); font-family: var(--display); font-stretch: 110%; font-size: 1.25em; }
.article-section-texte h2 { margin-top: 20px; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.05; text-transform: uppercase; }
.article-section-texte a { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }
.article-conclusion { padding-top: 22px; border-top: 2px solid var(--rouge); font-weight: 700; }

.grille-boutique { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.carte-boutique { overflow: hidden; border: 1px solid var(--encre-filet); }
.boutique-photo { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: rgba(83, 25, 28, 0.08); color: var(--encre-voile); }
.boutique-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-boutique > div { display: grid; gap: 10px; padding: 18px; }
.carte-boutique h2 { font-family: var(--display); font-stretch: 120%; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.prix-boutique { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.prix-boutique span { display: grid; color: var(--encre-voile); font-size: 0.8rem; }
.prix-boutique strong { color: var(--rouge); font-size: 1.08rem; }
.detail-boutique { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.galerie-boutique { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.galerie-boutique img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.galerie-boutique img:first-child { grid-column: 1 / -1; }
.detail-boutique-contenu { display: grid; gap: 24px; }
.detail-boutique-contenu h2 { margin-bottom: 7px; font-family: var(--display); font-stretch: 120%; font-size: 1.35rem; text-transform: uppercase; }
.detail-boutique-contenu .bouton { width: max-content; }

.texte-don { display: grid; gap: 30px; }
.chapeau-don { max-width: 70ch; color: var(--bordeaux); font-size: 1.15em; font-weight: 700; }
.avantages-don { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.avantages-don article { padding: 24px; border: 1px solid var(--encre-filet); }
.avantages-don p { margin-top: 10px; color: var(--encre-voile); }
.texte-don .bouton { width: max-content; }
.sources-don { padding: 18px var(--gouttiere); color: var(--encre-voile); font-size: 0.76rem; }
.sources-don a { text-decoration: underline; text-underline-offset: 3px; }

.groupe-creneaux + .groupe-creneaux { margin-top: 34px; }
.groupe-creneaux h3 { margin-bottom: 12px; font-family: var(--display); font-stretch: 115%; font-size: 1.35rem; text-transform: uppercase; }
.tableau-cadre { overflow-x: auto; overscroll-behavior: contain; }
.tableau-cadre table { width: 100%; border-collapse: collapse; }
.tableau-cadre th, .tableau-cadre td { min-width: 140px; padding: 13px 14px; border-bottom: 1px solid var(--encre-filet); text-align: left; }
.tableau-cadre th { color: var(--encre-voile); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.liste-tarifs { display: grid; max-width: 820px; border-top: 1px solid var(--creme-filet); }
.liste-tarifs li { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 12px 0; border-bottom: 1px solid var(--creme-filet); }
.liste-tarifs li div { display: grid; }
.liste-tarifs li span { color: var(--creme-voile); font-size: 0.86rem; }
.liste-tarifs li > b { color: var(--jaune); white-space: nowrap; }
.page-inscription-section .bordeaux .etat-vide { margin-top: 28px; }
.page-inscription-section .bordeaux > .bouton { margin-top: 28px; }

/* Offre publique et recrutement. */
.bassin-anime { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--creme); }
.bassin-murs { fill: none; stroke: var(--rouge); stroke-width: 4; }
.ligne-eau { fill: none; stroke: var(--rouge); stroke-width: 3; stroke-dasharray: 12 12; }
.bassin-nageur { animation: bassin-longueur 24s ease-in-out infinite alternate; }
.bassin-nageur circle { stroke: var(--nuit); stroke-width: 2; }
.bassin-nageur .sillage { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; opacity: 0.6; }
.nageur-creme { fill: var(--creme); color: var(--creme); }
.nageur-jaune { fill: var(--jaune); color: var(--jaune); }
.nageur-rouge { fill: var(--rouge); color: var(--rouge); }
.nageur-1 { animation-duration: 18s; animation-delay: -3s; }
.nageur-2 { animation-duration: 21s; animation-delay: -12s; }
.nageur-3 { animation-duration: 24s; animation-delay: -7s; }
.nageur-4 { animation-duration: 28s; animation-delay: -19s; }
.nageur-5 { animation-duration: 31s; animation-delay: -5s; }
.nageur-6 { animation-duration: 34s; animation-delay: -25s; }
.ouverture-recrutement { min-height: min(78svh, 720px); }
.ouverture-recrutement:not(.sans-video) .bassin-anime { display: none; }
.ouverture-recrutement.sans-video { background: var(--bordeaux); }
.ouverture-recrutement .bassin-anime { z-index: 1; opacity: 0.9; }
.ouverture-recrutement .contenu { max-width: 1050px; }

.cartes-profils { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.carte-profil { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 92px; padding: 16px; border: 1px solid var(--encre-filet); background: var(--creme); color: var(--encre); font-weight: 750; transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease; }
.carte-profil svg { width: 40px; height: 40px; color: var(--rouge); }
.carte-profil[aria-pressed='true'] { border-color: var(--rouge); background: var(--bordeaux); color: var(--creme); }
.carte-profil[aria-pressed='true'] svg { color: var(--jaune); }
.cartes-piscines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.carte-piscine { position: relative; display: grid; gap: 8px; align-content: start; min-height: 240px; padding: 24px; border: 1px solid var(--creme-filet); background: rgba(248, 244, 232, 0.04); }
.carte-piscine.principale { border-color: var(--jaune); background: rgba(246, 207, 108, 0.09); }
.carte-piscine h3 { font-family: var(--display); font-stretch: 125%; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.carte-piscine .quartier, .carte-piscine .piscine-activites { color: var(--creme-voile); font-size: 0.85rem; }
.mention-principale { color: var(--jaune); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.points-forts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1px; border: 1px solid var(--encre-filet); background: var(--encre-filet); }
.points-forts article { min-height: 190px; padding: 24px; background: var(--creme); }
.points-forts h3, .tarifs-contact-accueil h2, .tarifs-contact-accueil h3 { font-family: var(--display); font-stretch: 120%; line-height: 1.03; text-transform: uppercase; }
.points-forts h3 { margin-bottom: 12px; color: var(--bordeaux); font-size: 1.4rem; }
.points-forts p { color: var(--encre-voile); }
.tarifs-contact-accueil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 90px); }
.tarifs-contact-accueil > div { display: grid; gap: 15px; align-content: start; }
.tarifs-contact-accueil h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.tarifs-contact-accueil h3 { color: var(--jaune); font-size: 1.25rem; }
.tarifs-contact-accueil .bouton { width: max-content; margin-top: 8px; }

.filtres-details > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 800; }
.filtres-activites { display: grid; gap: 16px; padding: 18px 0 30px; }
.filtres-activites > label:not(.filtre-case) { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 800; }
.filtres-activites input:not([type='checkbox']), .filtres-activites select,
.formulaire-section input, .formulaire-section select, .formulaire-section textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--creme-filet); border-radius: 4px; background: var(--nuit); color: var(--creme);
}
.formulaire-section input, .formulaire-section select, .formulaire-section textarea { border-color: var(--encre-filet); background: var(--creme); color: var(--encre); }
.filtre-case { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; }
.filtre-case input { width: 22px; height: 22px; accent-color: var(--jaune); }
.filtres-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.filtres-boutons a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.js .filtres-boutons button[type='submit'] { display: none; }
.carte-offre-compacte { overflow: hidden; margin: 8px 0 32px; border: 1px solid var(--creme-filet); }
.carte-offre-compacte .horaires-carte { height: 310px; min-height: 310px; }
.resultats-activites { scroll-margin-top: 92px; }
.nombre-resultats { margin-bottom: 22px; color: var(--jaune); font-weight: 800; }
.cartes-activites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.carte-activite { display: grid; gap: 18px; align-content: start; padding: 22px; border: 1px solid var(--creme-filet); background: rgba(248, 244, 232, 0.04); }
.carte-activite-titre { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
.carte-activite-titre > svg, .cartes-activites-compactes .carte-activite > svg { width: 48px; height: 48px; color: var(--jaune); }
.carte-activite h2, .carte-activite h3 { font-family: var(--display); font-stretch: 120%; font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.carte-activite-titre p, .cartes-activites-compactes p { margin-top: 7px; color: var(--creme-voile); }
.carte-activite-reperes, .reperes-activite { display: flex; flex-wrap: wrap; gap: 7px; }
.carte-activite-reperes span, .reperes-activite span { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.78rem; }
.activite-chiffres { display: grid; gap: 10px; margin: 0; }
.activite-chiffres div { display: grid; grid-template-columns: minmax(95px, 0.35fr) minmax(0, 1fr); gap: 12px; }
.activite-chiffres dt { color: var(--creme-voile); font-size: 0.8rem; }
.activite-chiffres dd { margin: 0; font-weight: 700; }
.statuts-liste { display: flex; flex-wrap: wrap; gap: 7px; }
.statut { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.76rem; font-weight: 800; }
.statut-disponible { color: var(--creme); }
.statut-dernieres, .statut-bientot { color: var(--jaune); }
.statut-attente, .statut-complet { color: var(--creme-voile); }
.picto-grand { width: 68px; height: 68px; margin-bottom: 14px; color: var(--jaune); }
.picto-grand svg { width: 100%; height: 100%; }
.reperes-activite { margin-top: 22px; }
.contenu-etroit { display: grid; gap: 18px; max-width: 900px; }
.chapeau-activite { margin-bottom: 15px; color: var(--bordeaux); font-size: 1.15em; font-weight: 800; }
.groupes-activite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.groupes-activite article { padding: 21px; border: 1px solid var(--creme-filet); }
.groupes-activite h3, .blocs-description h2, .adresse-piscine h2, .appel-piscine h2 { font-family: var(--display); font-stretch: 120%; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; }
.groupes-activite h3 { display: flex; align-items: center; gap: 9px; }
.pastille-bonnet { flex: 0 0 17px; width: 17px; height: 17px; border-radius: 50%; background: var(--bonnet); }
.bonnet-blanc { --bonnet: #fff; border: 1px solid var(--encre); }
.bonnet-bleu { --bonnet: #2878c8; }
.bonnet-vert { --bonnet: #2f9b58; }
.bonnet-rouge { --bonnet: #d83b34; }
.bonnet-jaune { --bonnet: #f6cf31; }
.bonnet-orange { --bonnet: #ef8b2c; }
.bonnet-noir { --bonnet: #171414; border: 1px solid var(--creme-filet); }
.groupes-activite p { margin-top: 9px; color: var(--creme-voile); }
.niveau-groupe { color: var(--jaune) !important; font-weight: 800; }
.groupe-creneaux h3 a { text-decoration: underline; text-underline-offset: 4px; }
.groupe-creneaux td small { display: block; margin-top: 3px; color: var(--creme-voile); }
.bordeaux .tableau-cadre th { color: var(--creme-voile); }
.bordeaux .tableau-cadre th, .bordeaux .tableau-cadre td { border-color: var(--creme-filet); }
.liste-tarifs-claire { border-color: var(--encre-filet); color: var(--encre); }
.liste-tarifs-claire li { border-color: var(--encre-filet); }
.liste-tarifs-claire li span { color: var(--encre-voile); }
.liste-tarifs-claire li > b { color: var(--rouge); }

.ouverture-piscine { display: grid; align-items: end; min-height: min(72svh, 680px); background: var(--bordeaux); }
.ouverture-piscine > img, .ouverture-piscine > .bassin-anime { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture-piscine .voile { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,20,20,0.05), rgba(23,20,20,0.92)); }
.ouverture-piscine .contenu { z-index: 2; }
.reperes-principaux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--jaune); color: var(--encre); }
.reperes-principaux span { display: grid; place-items: center; min-height: 92px; padding: 16px; border-right: 1px solid var(--encre-filet); font-weight: 850; text-align: center; }
.fiche-piscine-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(32px, 6vw, 80px); }
.fiche-piscine-intro.sans-reperes-secondaires { grid-template-columns: minmax(0, 680px); }
.reperes-piscine { display: grid; gap: 1px; border: 1px solid var(--encre-filet); background: var(--encre-filet); }
.reperes-piscine > div { display: grid; gap: 5px; padding: 21px; background: var(--creme); }
.reperes-piscine strong { color: var(--rouge); font-family: var(--display); font-stretch: 125%; font-size: 1.8rem; line-height: 1; text-transform: uppercase; }
.reperes-piscine span { color: var(--encre-voile); }
.adresse-piscine { display: grid; gap: 15px; align-content: start; }
.adresse-piscine address { font-style: normal; font-weight: 750; }
.adresse-piscine p a { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }
.adresse-piscine .bouton { width: max-content; }
.carte-piscine-fiche { width: 100%; height: 270px; min-height: 270px; margin-top: 8px; border: 1px solid var(--encre-filet); }
.piscine-description { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: clamp(34px, 7vw, 90px); }
.liste-coches { display: grid; gap: 11px; }
.liste-coches li { position: relative; padding-left: 28px; }
.liste-coches li::before { content: '✓'; position: absolute; left: 0; color: var(--jaune); font-weight: 900; }
.blocs-description { display: grid; gap: 30px; }
.blocs-description article { display: grid; gap: 10px; }
.cartes-activites-compactes .carte-activite { color: var(--encre); border-color: var(--encre-filet); background: var(--creme); }
.cartes-activites-compactes .carte-activite > svg { color: var(--rouge); }
.cartes-activites-compactes p { color: var(--encre-voile); }
.appel-piscine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.appel-piscine .bouton-trait { color: var(--bordeaux); }

.tarifs-simples { max-width: 920px; }
.tarifs-simples td:first-child { width: 100%; }
.tarifs-simples td > small { display: block; margin-top: 4px; color: var(--encre-voile); }
.tarifs-simples td > b { color: var(--rouge); white-space: nowrap; }
.tarif-activites { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.76rem; }
.tarif-activites > span { color: var(--encre-voile); font-weight: 750; }
.tarif-activites a { padding: 3px 9px; border: 1px solid var(--encre-filet); border-radius: 999px; color: var(--bordeaux); font-weight: 750; }
.tarifs-activites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.tarifs-activites article { padding: 22px; border: 1px solid var(--encre-filet); }
.tarifs-activites h3 { margin-bottom: 14px; font-family: var(--display); font-stretch: 120%; font-size: 1.4rem; text-transform: uppercase; }
.tarifs-activites h3 a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 4px; }
.tarifs-activites ul { display: grid; gap: 12px; }
.tarifs-activites li { display: flex; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid var(--encre-filet); }
.tarifs-activites li span { display: grid; }
.tarifs-activites small { margin-top: 3px; color: var(--encre-voile); }
.tarifs-activites li > b { color: var(--rouge); white-space: nowrap; }
.blocs-inscription { display: grid; gap: 48px; }
.blocs-inscription article { max-width: 850px; scroll-margin-top: 96px; }
.blocs-inscription h2, .faq-section h2, .contact-section-coordonnees h2 { margin-bottom: 12px; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.05; text-transform: uppercase; }
.faq-liste { display: grid; max-width: 900px; border-top: 1px solid currentColor; }
.faq-liste details { border-bottom: 1px solid currentColor; }
.faq-liste summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; cursor: pointer; font-weight: 800; }
.faq-liste summary::after { content: '+'; font-size: 1.4rem; }
.faq-liste details[open] summary::after { content: '−'; }
.faq-liste details p { max-width: 70ch; padding: 0 0 20px; }

.contact-section-grille { display: grid; grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr); gap: clamp(34px, 7vw, 90px); align-items: start; }
.contact-section-coordonnees { display: grid; gap: 15px; }
.contact-section-coordonnees a, .contact-confidentialite a { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }
.contact-section-coordonnees h3 { margin-top: 18px; font-family: var(--display); font-stretch: 120%; text-transform: uppercase; }
.contact-section-coordonnees ul { display: grid; gap: 8px; }
.contact-sociaux { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-section-panneau { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--encre-filet); }
.formulaire-section { display: grid; gap: 18px; }
.formulaire-section > div:not(.contact-piege), .formulaire-deux > div { display: grid; gap: 6px; }
.formulaire-section label { font-size: 0.84rem; font-weight: 800; }
.formulaire-section textarea { resize: vertical; }
.formulaire-deux { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; }
.formulaire-section [aria-invalid='true'] { border-color: var(--rouge); border-width: 2px; }
.contact-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-erreur, .contact-erreur-generale { color: var(--rouge); font-size: 0.82rem; font-weight: 750; }
.contact-erreur-generale { margin-bottom: 18px; padding: 14px; border: 1px solid var(--rouge); }
.contact-confidentialite { color: var(--encre-voile); font-size: 0.78rem; }
.contact-confirmation { display: grid; gap: 16px; }
.contact-confirmation .bouton { width: max-content; }
.pied-sociaux, .pied-piscines { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.pied-piscines a, .pied-sociaux a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }

/* Horaires et piscines. */
.vues-horaires { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.vues-horaires a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--encre); border-radius: 999px; font-weight: 800; }
.vues-horaires a[aria-pressed='true'] { background: var(--bordeaux); color: var(--creme); }
.horaires-carte-grille { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--encre-filet); }
.horaires-carte-grille.carte-active { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr); min-height: 430px; }
.horaires-carte { display: block; z-index: 0; min-height: 430px; background: #d9d6cc; }
.horaires-lieux { display: grid; align-content: start; overflow-y: auto; }
.carte-active .horaires-lieux { max-height: 430px; }
.horaires-lieux li { border-bottom: 1px solid var(--encre-filet); }
.horaires-lieux a { display: grid; gap: 2px; min-height: 68px; padding: 13px 16px; }
.horaires-lieux span { color: var(--encre-voile); font-size: 0.8rem; }
.horaires-marqueur { display: grid; place-items: center; border-radius: 50%; background: transparent; }
.horaires-marqueur span { display: block; width: 18px; height: 18px; border: 3px solid var(--creme); border-radius: 50%; background: var(--rouge); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.horaires-marqueur.est-attenue { opacity: 0.38; }
.horaires-marqueur.est-actif span { width: 22px; height: 22px; background: var(--bordeaux); }
.horaires-marqueur.est-principal span { border-color: var(--jaune); box-shadow: 0 0 0 4px rgba(246,207,108,.3), 0 2px 8px rgba(0,0,0,.4); }
.horaires-marqueur.est-surligne { z-index: 1000 !important; opacity: 1; }
.horaires-marqueur.est-surligne span { transform: scale(1.25); }
.horaires-resultats { display: grid; gap: 54px; scroll-margin-top: 92px; }
.horaires-groupes { display: grid; gap: 54px; }
.horaires-groupe { display: grid; gap: 15px; }
.horaires-groupe > h2 a { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; font-family: var(--display); font-stretch: 120%; font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.horaires-groupe > h2 svg { flex: 0 0 42px; width: 42px; height: 42px; color: var(--jaune); }
.horaires-groupe h3 { margin: 12px 0 15px; color: var(--jaune); font-family: var(--display); font-stretch: 120%; font-size: 1.25rem; text-transform: uppercase; }
.horaires-groupe [data-creneaux-bloc] { display: grid; }
.horaires-groupe td a { color: var(--jaune); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.horaire-piscine-carte { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid var(--creme-filet); background: rgba(248,244,232,.04); }
.horaire-piscine-carte h2 { font-family: var(--display); font-stretch: 120%; font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.7rem); line-height: 1; text-transform: uppercase; }
.horaire-piscine-carte address { margin-top: 7px; color: var(--creme-voile); font-style: normal; }
.horaire-piscine-carte p { margin-top: 5px; }
.horaire-piscine-carte .actions { align-self: center; margin-top: 0; }
.horaire-piscine-carte .bouton-trait { color: var(--creme); }

.piscines-accueil-grille { display: grid; gap: 18px; }
.piscines-accueil .horaires-carte { height: 390px; min-height: 390px; border: 1px solid var(--creme-filet); }

/* Pied de page. */
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 50px; padding: 30px var(--gouttiere) calc(30px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--creme-filet); color: var(--creme); font-size: 0.84rem; }
.pied-principal { display: grid; gap: 10px; }
.pied address { color: var(--creme-voile); font-style: normal; }
.pied nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; max-width: 760px; }
.pied nav a, .pied nav button { display: inline-flex; align-items: center; min-height: 44px; }
.pied nav button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.revele-arme { opacity: 0; transform: translateY(16px); }
.revele-arme:focus-within, .revele-arme:focus-visible { opacity: 1; transform: none; }
@keyframes trace-terrain { to { stroke-dashoffset: 0; } }
@keyframes titre-entree { from { opacity: 0; transform: translateY(14px); } }
@keyframes rail-defile { to { transform: translateX(-50%); } }
@keyframes fiche-entree { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes bassin-longueur { from { transform: translateX(110px); } to { transform: translateX(1080px); } }
@keyframes page-sortie { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-entree { from { opacity: 0; transform: translateY(12px); } }

main { view-transition-name: contenu; }
::view-transition-old(contenu) { animation: page-sortie 220ms var(--ease-out) both; }
::view-transition-new(contenu) { animation: page-entree 220ms var(--ease-out) both; }
::view-transition-group(*) { animation-duration: 250ms; animation-timing-function: var(--ease-in-out); }
::view-transition-group(entete), ::view-transition-old(entete), ::view-transition-new(entete) { animation: none; }
.transition-offre main { view-transition-name: none; }
.transition-offre::view-transition-old(root), .transition-offre::view-transition-new(root) { animation: none; }

@media (hover: hover) and (pointer: fine) {
  .entete-liens > a:not(.entete-don):hover, .entete-sousmenu-lien:hover { color: var(--jaune); }
  .entete-sousmenu:not(.survol-neutralise):hover .entete-sousmenu-liste { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .entete-sousmenu-liste a:hover { background: rgba(248, 244, 232, 0.08); color: var(--jaune); }
  .bouton:hover { transform: translateY(-2px); }
  .match:hover { transform: translateY(-4px); border-color: var(--jaune); }
  .actu-une:hover h3, .actu-liste a:hover b { color: var(--rouge); }
  .carte-equipe:hover { transform: translateY(-6px); box-shadow: 0 16px 34px var(--ombre); }
  .carte-profil:hover { transform: translateY(-3px); border-color: var(--rouge); }
  .joueur:hover .pastille { transform: scale(1.12); }
  .rail:hover .rail-piste { animation-play-state: paused; }
}

@media (max-width: 1080px) {
  .entete-menu { display: grid; }
  .entete-liens {
    position: absolute;
    top: 100%;
    right: var(--gouttiere);
    display: none;
    width: min(340px, calc(100% - 2 * var(--gouttiere)));
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid var(--creme-filet);
    border-radius: 8px;
    background: var(--encre);
    box-shadow: 0 18px 40px var(--ombre);
  }
  .entete.menu-ouvert .entete-liens { display: grid; }
  .entete-liens > a, .entete-sousmenu-lien { padding-inline: 10px; }
  .entete-sousmenu { display: block; }
  .entete-sousmenu-bouton { display: none; }
  .entete-sousmenu-liste { position: static; min-width: 0; padding: 0 0 5px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .entete-sousmenu-liste a { color: var(--creme-voile); }
}

@media (min-width: 761px) {
  .filtres-details > summary { display: none; }
  .filtres-details > .filtres-activites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filtres-activites .filtre-case, .filtres-activites .filtres-boutons { grid-column: span 3; }
}

@media (min-width: 900px) {
  .piscines-accueil-grille { grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr); align-items: stretch; }
  .piscines-accueil .horaires-carte { position: sticky; top: 92px; height: min(620px, calc(100vh - 120px)); }
}

@media (max-width: 899px) {
  .terrain-composition { grid-template-columns: minmax(0, 1fr); }
  .terrain-laterale { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .entete { min-height: 66px; }
  .entete-marque img { width: 40px; height: 40px; }
  .entete-marque small { display: none; }
  .entete-marque strong { max-width: 150px; font-size: 0.88rem; }
  .entete-nav { gap: 2px; }
  .actus, .bienvenue, .profil { grid-template-columns: minmax(0, 1fr); }
  .profil-photos { grid-template-columns: minmax(0, 1fr); }
  .ouverture-video { min-height: min(60svh, 540px); }
  .bouton-video { right: auto; left: var(--gouttiere); }
  .pied nav { justify-content: flex-start; }
  .actualite-une, .detail-boutique { grid-template-columns: minmax(0, 1fr); }
  .avantages-don { grid-template-columns: minmax(0, 1fr); }
  .tarifs-contact-accueil, .fiche-piscine-intro, .piscine-description, .contact-section-grille { grid-template-columns: minmax(0, 1fr); }
  .reperes-principaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reperes-principaux span { min-height: 64px; padding: 10px; font-size: 0.88rem; }
  .horaires-carte-grille.carte-active { grid-template-columns: minmax(0, 1fr); }
  .horaires-carte { min-height: 330px; }
  .horaires-lieux { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formulaire-deux { grid-template-columns: minmax(0, 1fr); }
  .palmares-annee { grid-template-columns: minmax(0, 1fr); }
  .palmares-annee > h2 { position: static; }
  .palmares-resultat { grid-template-columns: minmax(0, 1fr); }
  .palmares-resultat .palmares-athletes { grid-column: auto; }
  .palmares-annees::before { left: 33px; }
  .palmares-annee-frise { grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .palmares-annee-frise > h3 { padding-inline: 5px; font-size: 1.25rem; }
  .palmares-resultat-frise { grid-template-columns: minmax(0, 1fr); }
  .palmares-resultat-frise > div { grid-row: auto; }
}

@media (max-width: 520px) {
  .entete-marque strong { max-width: 110px; }
  .affiche { gap: 5px; }
  .affiche strong { font-size: 0.9rem; }
  .blason { width: 50px; height: 50px; }
  .match-compact { grid-template-columns: 46px minmax(0, 1fr); }
  .match-compact .badge { grid-column: 2; }
  .joueur .nom { display: none; }
  .fiche { grid-template-columns: 86px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .lignes .trace, .ouverture h1, .rail-piste, .fiche, .bassin-nageur { animation: none; }
  .lignes .trace { stroke-dashoffset: 0; }
  .revele-arme { opacity: 1; transform: none; }
  .match, .carte-equipe, .bouton, .pastille { transition: none; }
  .match:hover, .carte-equipe:hover, .bouton:hover, .bouton:active, .joueur:hover .pastille { transform: none; }
  html { scroll-behavior: auto; }
  .frise-ligne { transform: scaleY(1); }
  .controle-mouvement { display: none; }
  .rail { overflow-x: auto; mask-image: none; }
  .rail-groupe[aria-hidden='true'] { display: none; }
  .bassin-nageur { transform: translateX(600px); }
  .horaires-marqueur.est-surligne span { transform: none; }
}
.sans-animation .lignes .trace, .sans-animation .ouverture h1, .sans-animation .rail-piste, .sans-animation .fiche, .sans-animation .bassin-nageur { animation: none; }
.sans-animation .lignes .trace { stroke-dashoffset: 0; }
.sans-animation .revele-arme { opacity: 1; transform: none; }
.sans-animation .match, .sans-animation .carte-equipe, .sans-animation .bouton, .sans-animation .pastille { transition: none; }
.sans-animation .match:hover, .sans-animation .carte-equipe:hover, .sans-animation .bouton:hover, .sans-animation .bouton:active, .sans-animation .joueur:hover .pastille { transform: none; }
.sans-animation .frise-ligne { transform: scaleY(1); }
.sans-animation .controle-mouvement { display: none; }
.sans-animation .rail { overflow-x: auto; mask-image: none; }
.sans-animation .rail-groupe[aria-hidden='true'] { display: none; }
.sans-animation .bassin-nageur { transform: translateX(600px); }
.sans-animation .horaires-marqueur.est-surligne span { transform: none; }
.no-js .controle-mouvement { display: none; }
.mode-accessible { font-size: 1.18rem; }
.mode-accessible .lignes, .mode-accessible .ouverture-video video { display: none; }
.mode-accessible .ouverture-video { background: var(--bordeaux); }
.mode-accessible [data-bloc-terrain] { display: none !important; }
.mode-accessible [data-bloc-liste] { display: block !important; }
