/* ==========================================================================
   Site public du club
   ========================================================================== */

:root { --btn-radius: var(--r-pill); }

/* ---- En-tête ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
}
.brand__mark .i { width: 1.7rem; height: 1.7rem; stroke-width: 1.8; }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--primary);
}
:root[data-scheme="dark"] .brand__text strong { color: var(--link); }
.brand__text small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--text-3); }

.main-nav { display: none; margin-inline: auto; gap: 0.15rem; }
.main-nav a {
  position: relative;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--link); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-actions .btn--accent { display: none; }

@media (min-width: 1080px) {
  .main-nav { display: flex; }
  .header-actions { margin-left: 0; }
  .header-actions .btn--accent { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Menu mobile */
.nav-drawer nav { display: grid; padding: var(--s-4); gap: 0.25rem; }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-bottom: 1px solid var(--border); }
.nav-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 650;
  text-decoration: none;
}
.nav-drawer nav a:hover,
.nav-drawer nav a[aria-current="page"] { background: var(--primary-soft); color: var(--link); }
.nav-drawer__cta { padding: var(--s-4); }

/* ---- Héros ---- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in oklab, var(--accent) 38%, transparent), transparent 60%),
    linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 78%);
}
.hero__court {
  position: absolute;
  z-index: -1;
  right: -4rem;
  top: -1rem;
  width: min(46rem, 90vw);
  color: rgb(255 255 255 / 0.13);
  transform: rotate(8deg);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-7) var(--s-6);
  align-items: end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: color-mix(in oklab, var(--accent) 70%, white); }
.eyebrow::before { content: ""; width: 2rem; height: 3px; border-radius: 3px; background: currentColor; }
.hero__title {
  margin-top: var(--s-3);
  font-size: var(--fs-hero);
  font-weight: 800;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__title span {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.3rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--accent) 85%, white);
}
.hero__lead {
  max-width: 34rem;
  margin-top: var(--s-5);
  font-size: var(--fs-lg);
  color: rgb(255 255 255 / 0.86);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.next-match {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
}
.next-match__label { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }
.next-match__when { display: flex; align-items: center; gap: var(--s-4); }
.next-match .date-tile { background: #fff; color: var(--primary-deep); }
.next-match__team { font-weight: 700; font-size: var(--fs-lg); }
.next-match__time { color: rgb(255 255 255 / 0.82); font-size: var(--fs-sm); }
.next-match .versus .club { color: #fff; }
.next-match .versus .crest { background: rgb(255 255 255 / 0.16); color: #fff; }
.next-match .versus .crest--us { background: var(--accent); color: var(--on-accent); }
.next-match .venue { color: rgb(255 255 255 / 0.82); }
.next-match a.more { color: #fff; font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0.35rem; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.25fr 0.75fr; padding-block: var(--s-8) var(--s-7); }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-bottom: var(--s-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgb(255 255 255 / 0.16);
}
.hero__stats li { display: grid; gap: 0.15rem; padding: var(--s-4) var(--s-5); background: rgb(8 24 40 / 0.35); }
.hero__stats b { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; }
.hero__stats span { font-size: var(--fs-sm); color: rgb(255 255 255 / 0.78); }
@media (min-width: 760px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

/* ---- Sections ---- */
.section { padding-block: var(--s-8); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-bottom: var(--s-6);
}
.section-head .eyebrow { color: var(--accent-strong, color-mix(in oklab, var(--accent) 60%, var(--text))); }
.section-head h2 { margin-top: var(--s-2); font-size: var(--fs-3xl); font-weight: 800; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow .i { transition: transform var(--dur) var(--ease); }

/* ---- Cartes de match ---- */
.match-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 21rem);
  gap: var(--s-4);
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}
.match-rail > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .match-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; }
}
.match-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--primary-line); }
.match-card__head { display: flex; align-items: center; gap: var(--s-4); }
.match-card__meta { display: grid; gap: 0.25rem; min-width: 0; }
.match-card__team { font-weight: 750; font-size: var(--fs-md); }
.match-card__time { display: flex; align-items: center; gap: 0.4rem; color: var(--text-2); font-size: var(--fs-sm); }
.match-card__side { margin-left: auto; align-self: start; }

.versus { display: grid; gap: 0.55rem; }
.versus .club { display: flex; align-items: center; gap: 0.65rem; font-weight: 650; }
.versus .club.is-us { font-weight: 800; }
.crest {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.crest--us { background: var(--primary); color: var(--accent); }
.crest .i { width: 1.25rem; height: 1.25rem; stroke-width: 1.8; }
.venue { display: flex; align-items: center; gap: 0.4rem; color: var(--text-3); font-size: var(--fs-sm); }
.venue .i { width: 1em; height: 1em; }

/* ---- Résultats ---- */
.results { overflow: hidden; }
.result-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
}
.result-row:last-child { border-bottom: 0; }
.result-row__when { display: grid; line-height: 1.2; }
.result-row__when b { font-size: var(--fs-sm); }
.result-row__when span { font-size: var(--fs-xs); color: var(--text-3); }
.result-row__main { display: grid; gap: 0.15rem; min-width: 0; }
.result-row__team { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.result-row__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.7rem; font-weight: 650; }
.result-row__line .score { font-size: 1.25rem; }
.result-row__line .who.is-us { font-weight: 800; }

/* ---- Bloc mini-basket ---- */
.promo {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: var(--s-5);
  height: 100%;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  color: var(--on-accent);
  background:
    radial-gradient(18rem 14rem at 100% 0%, rgb(255 255 255 / 0.35), transparent 65%),
    linear-gradient(150deg, color-mix(in oklab, var(--accent) 92%, white), var(--accent-hover));
}
.promo .eyebrow { color: inherit; opacity: 0.85; }
.promo h3 { margin-top: var(--s-3); font-size: var(--fs-2xl); font-weight: 800; }
.promo p { margin-top: var(--s-3); font-weight: 520; }
.promo ul { display: grid; gap: 0.5rem; font-weight: 600; font-size: var(--fs-sm); }
.promo li { display: flex; align-items: center; gap: 0.6rem; }
.promo__ball { position: absolute; right: -2.5rem; bottom: -2.5rem; width: 12rem; height: 12rem; opacity: 0.14; stroke-width: 1.2; }
.promo .btn { justify-self: start; --_bg: var(--on-accent); --_fg: #fff; --_bd: transparent; }
.split { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .split { grid-template-columns: 1.35fr 1fr; } }

/* ---- Actualités ---- */
.grid-3 { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.news-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  color: rgb(255 255 255 / 0.9);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
}
.news-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(14rem 9rem at 85% 10%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 70%);
}
.news-card__cover .i { position: relative; z-index: 1; width: 3.4rem; height: 3.4rem; stroke-width: 1.4; }
.news-card--b .news-card__cover { background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 70%, #000), color-mix(in oklab, var(--primary) 80%, var(--accent))); }
.news-card--c .news-card__cover { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 55%, var(--primary-deep)), var(--primary-deep)); }
.news-card__body { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5); }
.news-card h3 { font-size: var(--fs-xl); font-weight: 750; }
.news-card p { color: var(--text-2); font-size: var(--fs-sm); }

/* ---- Équipes ---- */
.team-group { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.team-group h3 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-lg); font-weight: 800; }
.team-group h3 .i { color: var(--accent); }
.team-group ul { display: grid; }
.team-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.9rem;
  padding: 0 0.25rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.team-group a:hover { color: var(--link); }
.team-group a .i { color: var(--text-3); }

/* ---- Tarifs ---- */
.price-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card { display: grid; gap: 0.25rem; padding: var(--s-5); }
.price-card__cat { font-weight: 750; }
.price-card__years { font-size: var(--fs-sm); color: var(--text-3); }
.price-card__price { margin-top: var(--s-3); font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.03em; color: var(--primary); }
:root[data-scheme="dark"] .price-card__price { color: var(--link); }
.price-card__price small { font-size: 0.5em; font-weight: 700; margin-left: 0.15rem; color: var(--text-3); }

/* ---- Contact ---- */
.contact {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  color: #fff;
  background: linear-gradient(160deg, var(--primary-deep), var(--primary));
}
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; padding: var(--s-7); } }
.contact h2 { margin-top: var(--s-3); font-size: var(--fs-3xl); font-weight: 800; }
.contact__text { margin-top: var(--s-4); color: rgb(255 255 255 / 0.85); max-width: 28rem; }
.contact__facts { display: grid; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--fs-sm); }
.contact__facts li { display: flex; gap: 0.7rem; align-items: start; color: rgb(255 255 255 / 0.92); }
.contact__facts .i { color: var(--accent); margin-top: 0.1rem; }
.contact form { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); color: var(--text); }

/* ---- Pied de page ---- */
.site-footer { padding-block: var(--s-7) var(--s-5); background: #0a1727; color: rgb(255 255 255 / 0.78); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h3 { margin-bottom: var(--s-3); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; font-family: var(--font); }
.footer-grid ul { display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.site-footer .brand__text strong { color: #fff; }
.site-footer .brand__text small { color: rgb(255 255 255 / 0.6); }
.site-footer .brand__mark { background: rgb(255 255 255 / 0.1); }
.footer-note { margin-top: var(--s-4); max-width: 22rem; font-size: var(--fs-sm); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-4); }
.footer-badges span { padding: 0.25rem 0.7rem; border: 1px solid rgb(255 255 255 / 0.25); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 650; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / 0.14); font-size: var(--fs-xs); }

/* ---- Page « Rencontres » ---- */
.page-head { padding-block: var(--s-7) var(--s-5); background: linear-gradient(160deg, var(--primary-deep), var(--primary)); color: #fff; }
.page-head h1 { margin-top: var(--s-3); font-size: var(--fs-3xl); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.03em; }
.page-head .eyebrow { color: color-mix(in oklab, var(--accent) 70%, white); }
.page-head p { margin-top: var(--s-3); color: rgb(255 255 255 / 0.85); max-width: 34rem; }

.toolbar { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: thin; }
.chips .chip { flex: none; }
.toolbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.day-group { margin-top: var(--s-6); }
.day-group > h2 { margin-bottom: var(--s-3); font-family: var(--font); font-size: var(--fs-sm); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.fixture {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: var(--s-2) var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
}
.fixture:last-child { border-bottom: 0; }
.fixture__time { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.fixture__main { display: grid; gap: 0.2rem; min-width: 0; }
.fixture__team { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.fixture__line { font-weight: 650; }
.fixture__line .is-us { font-weight: 800; }
.fixture__line .sep { margin-inline: 0.4rem; color: var(--text-3); font-weight: 500; }
.fixture__side { display: flex; align-items: center; gap: var(--s-3); justify-self: end; }
.fixture .venue { margin-top: 0.1rem; }
@media (max-width: 640px) {
  .fixture { grid-template-columns: 3.6rem 1fr; }
  .fixture__side { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   Style de la charte du club : titres soulignés d'un trait d'orange tracé à la main, bandeaux en coups de pinceau,
   la palette des valeurs (orange, vert, violet, jaune) en repères de couleur. Tout vient des jetons du thème du club.
   ========================================================================== */
:root {
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9C40 3 90 2 130 5s52 1 68-3c-24 8-66 11-112 9C50 9 24 10 2 13z' fill='%23000'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 12C60 2 120 14 200 8s140-8 200 2l-6 42C330 62 270 46 200 52S60 60 4 50z' fill='%23000'/%3E%3C/svg%3E");
}

/* Trait d'orange sous les grands titres */
.page-head h1::after,
.section-head h2::after,
.contact h2::after {
  content: "";
  display: block;
  width: min(9rem, 50%);
  height: 0.55rem;
  margin-top: 0.45rem;
  background: var(--accent);
  -webkit-mask: var(--swoosh) no-repeat center / 100% 100%;
  mask: var(--swoosh) no-repeat center / 100% 100%;
}

/* Bandeaux : un coup de pinceau orange et un voile de bleu clair, comme sur la couverture de la charte */
.page-head, .hero { position: relative; overflow: hidden; }
.page-head::before {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -0.6rem;
  width: min(28rem, 70%);
  height: 3.4rem;
  background: var(--accent);
  opacity: 0.92;
  transform: rotate(-3deg);
  -webkit-mask: var(--brush) no-repeat center / 100% 100%;
  mask: var(--brush) no-repeat center / 100% 100%;
  pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }

/* Les titres de groupe prennent, tour à tour, une couleur des valeurs du club */
.group-title::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  vertical-align: 0.1em;
  border-radius: 0.3rem;
  background: var(--v-orange);
}
.group-title:nth-of-type(4n+2)::before { background: var(--v-green); }
.group-title:nth-of-type(4n+3)::before { background: var(--v-purple); }
.group-title:nth-of-type(4n+4)::before { background: var(--v-yellow); }

/* Types d'événement : une couleur de la charte chacun */
.badge--cat-tournoi { background: color-mix(in oklab, var(--v-orange) 18%, #fff); color: color-mix(in oklab, var(--v-orange) 55%, #000); }
.badge--cat-assemblee { background: color-mix(in oklab, var(--primary) 12%, #fff); color: var(--primary); }
.badge--cat-fete { background: color-mix(in oklab, var(--v-purple) 14%, #fff); color: var(--v-purple); }
.badge--cat-stage { background: color-mix(in oklab, var(--v-green) 16%, #fff); color: color-mix(in oklab, var(--v-green) 80%, #000); }
.badge--cat-reunion { background: color-mix(in oklab, var(--v-yellow) 28%, #fff); color: color-mix(in oklab, var(--v-yellow) 40%, #000); }

/* Pied de page : la bande des cinq couleurs du club */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0 20%, var(--v-orange) 20% 40%, var(--v-green) 40% 60%, var(--v-purple) 60% 80%, var(--v-yellow) 80% 100%);
}

/* Logo du club : sur une tuile blanche, lisible sur tous les fonds (bandeau sombre, menu de gauche) */
.brand__mark--logo {
  width: auto;
  height: auto;
  padding: 0.18rem 0.3rem;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(14 26 43 / 0.08);
}
.brand__mark--logo img { display: block; width: auto; height: 3rem; }
.site-footer .brand__mark--logo { background: #fff; padding: 0.3rem 0.45rem; border-radius: 0.9rem; }
.site-footer .brand__mark--logo img { height: 5.5rem; } /* logo-sm.png fait 212 px de haut : net jusqu'aux écrans 2x */
.site-footer .brand { gap: 0.9rem; }

/* L'en-tête ne montre que le logo quand le club en a un (le nom reste lu par les lecteurs d'écran) */
.brand { position: relative; }

/* ==========================================================================
   Bandeau d'accueil « ludique » (club qui a déposé une illustration détourée : ici les deux enfants, leurs ballons et le
   logo), dans l'esprit de la couverture de la charte : page blanche à gauche avec une trame de points, panneau marine aux
   bords peints à droite avec le terrain en filigrane, un coup de pinceau orange derrière les enfants, qui ressortent grâce
   à un contour blanc d'autocollant, et des petits traits dessinés autour.
   ========================================================================== */
:root {
  /* Panneau marine : bord gauche peint au pinceau, avec quelques traînées (ordinateur) */
  --panel-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cpath d='M88 0H400V600H52C70 572 40 552 62 520C82 492 36 470 58 436C78 404 44 380 70 344C92 312 50 290 74 254C96 222 58 198 82 164C102 136 66 112 86 80C100 56 74 30 88 0Z'/%3E%3Cpath d='M10 132C50 122 92 128 120 120L122 140C90 146 48 146 8 150Z'/%3E%3Cpath d='M26 468C60 458 96 462 118 456L120 474C92 480 58 482 22 484Z'/%3E%3Cpath d='M40 300C62 294 84 296 100 292L100 304C82 308 62 310 38 312Z'/%3E%3C/svg%3E");
  /* Panneau marine : bord haut peint (téléphone, sous le texte) */
  --panel-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none'%3E%3Cpath d='M0 70C30 52 52 80 84 60C116 40 140 70 176 50C210 32 236 64 270 46C304 28 330 58 366 40C400 22 428 52 462 34C496 16 522 46 556 30C574 22 588 26 600 20V400H0Z'/%3E%3Cpath d='M120 14C170 6 230 12 270 6L272 22C226 28 168 26 118 30Z'/%3E%3C/svg%3E");
}
.hero--fun {
  color: var(--primary-deep);
  background: #fff;
}
/* Panneau marine (sous le contenu) */
.hero--fun::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 40% 0 0 0;
  background:
    radial-gradient(26rem 18rem at 70% 35%, color-mix(in oklab, var(--primary) 72%, white) 0%, transparent 70%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
  -webkit-mask: var(--panel-top) no-repeat center top / 100% 100%;
  mask: var(--panel-top) no-repeat center top / 100% 100%;
}
/* Trame de points en haut à gauche, qui s'efface */
.hero__dots {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: min(34rem, 80%);
  height: 70%;
  background-image: radial-gradient(color-mix(in oklab, var(--primary) 22%, transparent) 1.3px, transparent 1.8px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(closest-side at 20% 25%, #000 0%, transparent 100%);
  mask-image: radial-gradient(closest-side at 20% 25%, #000 0%, transparent 100%);
  pointer-events: none;
}
/* Terrain en filigrane, blanc sur le marine */
.hero--fun .hero__court {
  z-index: -1;
  top: auto;
  bottom: -6rem;
  right: -6rem;
  width: min(40rem, 110vw);
  color: rgb(255 255 255 / 0.12);
  transform: rotate(-6deg);
}
.hero--fun .hero__grid { align-items: center; padding-block: var(--s-6) var(--s-5); }
.hero--fun .eyebrow { color: color-mix(in oklab, var(--accent) 70%, var(--primary-deep)); }
.hero--fun .hero__title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  color: var(--primary);
  line-height: 1.02;
}
/* La devise : écrite en orange, un peu penchée, soulignée d'un trait de pinceau */
.hero__slogan {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--accent) 88%, var(--primary-deep));
  transform: rotate(-2deg);
  transform-origin: left center;
}
.hero__slogan::after {
  content: "";
  display: block;
  width: 100%;
  height: 0.6rem;
  margin-top: 0.2rem;
  background: var(--primary);
  -webkit-mask: var(--swoosh) no-repeat center / 100% 100%;
  mask: var(--swoosh) no-repeat center / 100% 100%;
}
.hero--fun .hero__lead { color: var(--text-2); }
.hero--fun .btn--outline-light { --_fg: var(--primary); --_bd: color-mix(in oklab, var(--primary) 45%, transparent); background: rgb(255 255 255 / 0.7); }
.hero--fun .btn--outline-light:hover { --_bg: var(--primary-soft); }

/* Les enfants détourés */
.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
  margin: 0;
}
/* Coup de pinceau orange qui passe derrière les enfants */
.hero__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -14%;
  right: -12%;
  top: 60%;
  height: 5.5rem;
  background: var(--accent);
  transform: rotate(-12deg);
  -webkit-mask: var(--brush) no-repeat center / 100% 100%;
  mask: var(--brush) no-repeat center / 100% 100%;
}
.hero__art > img {
  display: block;
  width: 100%;
  height: auto;
  /* contour blanc d'autocollant, puis une ombre douce */
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 18px 22px rgb(4 14 30 / 0.45));
}
/* Petits traits dessinés autour, comme sur la charte */
.hero__sparks {
  position: absolute;
  width: 3.6rem;
  height: 3.6rem;
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  pointer-events: none;
}
.hero__sparks--a { left: -2.2rem; top: -0.8rem; stroke: var(--accent); transform: rotate(-20deg); }
.hero__sparks--b { right: -1.8rem; bottom: 6%; stroke: color-mix(in oklab, var(--accent) 70%, #fff); transform: rotate(10deg); }

@media (min-width: 900px) {
  .hero--fun::before {
    inset: 0 0 0 auto;
    width: 47%;
    -webkit-mask: var(--panel-left) no-repeat left center / 100% 100%;
    mask: var(--panel-left) no-repeat left center / 100% 100%;
  }
  .hero__dots { width: 40%; height: 85%; }
  .hero--fun .hero__court { bottom: -8rem; right: -4rem; width: min(42rem, 48vw); }
  .hero--fun .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__art { justify-self: end; width: min(100%, 26rem); margin-right: 2rem; }
}

/* Les chiffres du club en tuiles de couleur (marine, orange, vert, violet) */
.hero--fun .hero__stats { gap: var(--s-3); background: none; border-radius: 0; overflow: visible; }
.hero--fun .hero__stats li { border-radius: var(--r-lg); background: var(--primary); color: #fff; box-shadow: 0 14px 26px -18px rgb(8 24 40 / 0.6); }
/* Texte blanc sur toutes les tuiles, l'orange reste celui de la charte (choix du club) */
.hero--fun .hero__stats li:nth-child(2) { background: var(--v-orange); }
.hero--fun .hero__stats li:nth-child(3) { background: color-mix(in oklab, var(--v-green) 88%, #000); }
.hero--fun .hero__stats li:nth-child(4) { background: var(--v-purple); }
.hero--fun .hero__stats span { color: inherit; opacity: 0.88; }


/* La scène animée des basketteurs est dans scene.css (partagée avec la page de connexion). */

/* ==========================================================================
   Typographie de la charte (polices déclarées dans fonts.css) : Baloo 2 pour les titres et les chiffres, Kalam (le
   marqueur de la charte mini-basket) pour la devise et les titres de section, Nunito pour le texte. Baloo 2 n'a pas
   d'italique : on n'en fabrique pas (l'italique simulé déforme les lettres rondes).
   ========================================================================== */
:root[data-area="public"] :is(h1, h2, h3, h4) { letter-spacing: 0; }
.hero__title, .page-head h1, .brand__text strong { font-style: normal; }
.hero__title, .hero--fun .hero__title { line-height: 0.95; letter-spacing: 0; }
.page-head h1 { line-height: 1; letter-spacing: 0; }
.brand__text strong { line-height: 1; letter-spacing: 0; }
.hero__stats b, .price-card__price { letter-spacing: 0; }
.hero__slogan {
  font-family: var(--font-hand);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.15;
}
.section-head h2, .contact h2 {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.1;
}

/* Boutons orange du site : texte blanc sur l'orange de la charte (choix du club) ; il fonce un peu au survol */
.btn--accent { --_fg: #fff; }

/* Pastilles de date, badge « Domicile » et catégorie « Tournoi » : l'orange de la charte, écrit en blanc */
.date-tile, .badge--accent:not([class*="badge--cat-"]), .badge--cat-tournoi { background: var(--accent); color: #fff; }

/* Pages intérieures : les basketteurs du club, en petit, à droite du bandeau. Ils débordent un peu sur le contenu
   (le bandeau ne coupe plus en hauteur, seulement en largeur), et le contenu qui suit descend d'autant. La partie haute
   de leur image (la place du logo, vide ici) dépasse vers le haut sans gêner : elle est transparente et ne capte aucun clic. */
.page-head:has(.page-head__scene) { overflow: clip visible; margin-bottom: 3.5rem; }
.page-head__scene {
  position: absolute;
  z-index: 2;
  right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: -3.4rem;
  width: clamp(9rem, 6rem + 9vw, 15rem);
  pointer-events: none;
}
.page-head:has(.page-head__scene) > .container { padding-right: clamp(8rem, 5rem + 9vw, 15rem); }

/* Pages intérieures : les petits traits orange du bandeau d'accueil (les « éclats ») reviennent aux coins du contenu,
   en haut à gauche et en bas à droite, pour la continuité avec l'accueil. Décor pur (pseudo-éléments, aucun clic). */
.page-head + .section { overflow-x: clip; }
.page-head + .section > .container { position: relative; }
.page-head + .section > .container::before,
.page-head + .section > .container::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 3.4rem;
  height: 3.4rem;
  pointer-events: none;
  -webkit-mask: var(--_spark) no-repeat center / contain;
  mask: var(--_spark) no-repeat center / contain;
}
.page-head + .section > .container::before {
  --_spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M30 4v14M8 16l10 9M52 14l-9 10'/%3E%3C/svg%3E");
  left: -2.3rem;
  top: -2.3rem;
  background: var(--accent);
  transform: rotate(-35deg);
}
.page-head + .section > .container::after {
  --_spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M56 30H42M50 52l-10-8M30 56V44'/%3E%3C/svg%3E");
  right: -2.1rem;
  bottom: -2.1rem;
  background: color-mix(in oklab, var(--accent) 75%, #fff);
  transform: rotate(10deg);
}
/* Sur téléphone, la marge est étroite : les éclats rentrent un peu et rapetissent */
@media (max-width: 640px) {
  .page-head + .section > .container::before,
  .page-head + .section > .container::after { width: 2.4rem; height: 2.4rem; }
  .page-head + .section > .container::before { left: -1.1rem; top: -1.9rem; }
  .page-head + .section > .container::after { right: -0.9rem; bottom: -1.7rem; }
}
/* Plusieurs blocs dans le contenu (photo d'équipe puis matchs) : les éclats seulement en haut du premier et en bas du dernier */
.page-head + .section > .container:not(:first-child)::before,
.page-head + .section > .container:not(:last-child)::after { display: none; }

/* ---- Blasons des matchs : logo du club, logo de l'adversaire (FFBB), sinon un badge à ses initiales ---- */
.versus .crest { width: 2.6rem; height: 2.6rem; }
.crest--logo { overflow: hidden; padding: 0.2rem; border-radius: 0.7rem; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 2px 6px rgb(11 45 90 / 0.08); }
.crest--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.crest--initials { border-radius: 0.7rem; color: #fff; font-family: var(--font-display, inherit); font-weight: 800; letter-spacing: 0.03em; transform: rotate(-3deg); box-shadow: 0 2px 0 rgb(0 0 0 / 0.14); }
.crest--hue-0 { background: #f4761a; }
.crest--hue-1 { background: #8b5cf6; }
.crest--hue-2 { background: #22b07d; }
.crest--hue-3 { background: #2fa8f5; }
.crest--hue-4 { background: #ff5d8f; }
.crest--hue-5 { background: #0e7490; }
.crest--sm { display: inline-grid; width: 1.6rem; height: 1.6rem; border-radius: 0.5rem; font-size: 0.6rem; vertical-align: middle; }
.crest--sm.crest--logo { padding: 0.12rem; }
.crest--sm .i { width: 1rem; height: 1rem; }
.next-match .versus .crest--logo { background: #fff; }
.next-match .versus .crest--initials { color: #fff; }
.next-match .versus .crest--initials.crest--hue-0 { background: #f4761a; }
.next-match .versus .crest--initials.crest--hue-1 { background: #8b5cf6; }
.next-match .versus .crest--initials.crest--hue-2 { background: #22b07d; }
.next-match .versus .crest--initials.crest--hue-3 { background: #2fa8f5; }
.next-match .versus .crest--initials.crest--hue-4 { background: #ff5d8f; }
.next-match .versus .crest--initials.crest--hue-5 { background: #0e7490; }
.fixture__club, .result-row__line .who { display: inline-flex; align-items: center; gap: 0.45rem; }
.match-day .crest--sm { width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; font-size: 0.72rem; }
.match-day .crest--sm.crest--logo { padding: 0.18rem; }
.result-row .crest--sm { width: 2rem; height: 2rem; font-size: 0.66rem; }
@media (max-width: 540px) { .match-day .crest--sm { width: 1.9rem; height: 1.9rem; font-size: 0.62rem; } }
.crest--unknown, .next-match .versus .crest--initials.crest--unknown { background: var(--surface-3); color: var(--text-3); transform: none; box-shadow: none; }

/* Réseaux sociaux du club, sous le logo et l'accroche du pied de page (Réglages du club) */
.footer-grid .footer-social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s-4); max-width: 22rem; }
.footer-social__link {
  --n: var(--accent);
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); color: #fff;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.site-footer .footer-social__link:hover { background: var(--n); border-color: var(--n); color: #fff; text-decoration: none; transform: translateY(-2px); }
.footer-social__link:focus-visible { outline: 3px solid color-mix(in oklab, var(--accent) 80%, white); outline-offset: 2px; }
.footer-social__link .i { width: 1.2rem; height: 1.2rem; }
.footer-social__link--facebook { --n: #1877f2; }
.footer-social__link--instagram { --n: #d62976; }
.footer-social__link--tiktok { --n: #111; }
.footer-social__link--youtube { --n: #e62117; }
.footer-social__link--x { --n: #111; }
.footer-social__link--linkedin { --n: #0a66c2; }
.footer-social__link--whatsapp { --n: #1fa855; }
.footer-social__link--snapchat { --n: #e8c800; }
.footer-social__link--threads { --n: #111; }
.footer-social__link--twitch { --n: #9146ff; }
@media (prefers-reduced-motion: reduce) { .footer-social__link { transition: none; } .site-footer .footer-social__link:hover { transform: none; } }
.site-footer .footer-social__link--snapchat:hover { color: #111; }
