/* ==========================================================================
   Aunis Atlantique Basket — feuille de style
   Couleurs issues de la charte (logo officiel)
   ========================================================================== */

:root {
  --slate: #36424a;
  --slate-900: #1f272d;
  --slate-800: #2a343b;
  --slate-700: #36424a;
  --slate-500: #5d6b75;
  --green: #86bd40;
  --green-light: #accf79;
  --green-text: #3f6d17;   /* vert lisible sur fond blanc */
  --green-50: #f1f8e8;
  --green-100: #e2f0cf;

  --text: #1f272d;
  --muted: #5d6b75;
  --bg: #ffffff;
  --bg-tint: #f5f7f3;
  --border: #e3e8e2;
  --win: #16803c;
  --win-bg: #e6f6ea;
  --loss: #c0392b;
  --loss-bg: #fbeae8;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31, 39, 45, .06), 0 1px 3px rgba(31, 39, 45, .08);
  --shadow: 0 4px 12px rgba(31, 39, 45, .06), 0 12px 32px rgba(31, 39, 45, .08);
  --shadow-lg: 0 24px 60px rgba(15, 20, 24, .35);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

/* ---------- Base ---------- */
[hidden] { display: none !important; } /* utilisé par les filtres, même sur les éléments en grid/flex */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); } /* ancres sous l'en-tête fixe */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--slate-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
/* Logo SportEasy utilisé comme masque : il prend la couleur du texte (survol compris) */
.icon-sporteasy {
  display: inline-block; width: 1.7em; background: currentColor; /* logo deux fois plus large que haut */
  -webkit-mask: url("../img/sporteasy.png") center / contain no-repeat;
  mask: url("../img/sporteasy.png") center / contain no-repeat;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--green); color: var(--slate-900); padding: 8px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.capitalize::first-letter { text-transform: uppercase; }
.center { justify-content: center; text-align: center; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow-wide { max-width: 880px; }
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-text);
  margin: 0 0 10px;
}
.eyebrow-light { color: var(--green-light); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-text); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon, .card:hover .link-arrow .icon { transform: translateX(4px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--slate-900); box-shadow: 0 6px 18px rgba(134, 189, 64, .35); }
.btn-primary:hover { background: #93c94e; box-shadow: 0 10px 24px rgba(134, 189, 64, .45); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: #fff; color: var(--slate-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.5; }
.tag-team { background: var(--green-50); color: var(--green-text); }
.tag-home { background: var(--slate-900); color: #fff; }
.tag-away { background: var(--bg-tint); color: var(--muted); border: 1px solid var(--border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 39, 45, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; flex-shrink: 0; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: #cfd6db; padding: 8px 12px; white-space: nowrap; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: color .15s, background .15s; }
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.main-nav a.active { color: #fff; background: rgba(134, 189, 64, .18); box-shadow: inset 0 0 0 1px rgba(134, 189, 64, .45); }
.main-nav a.nav-members { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; border: 1px solid rgba(255, 255, 255, .25); }
.main-nav a.nav-members .icon { width: 16px; height: 16px; }
.main-nav a.nav-members .icon-sporteasy { width: 26px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; color: #fff; cursor: pointer; padding: 8px; border-radius: 10px; }
.nav-toggle-label .icon { width: 26px; height: 26px; display: block; }
.header-contact { display: none; margin-left: auto; color: #fff; padding: 8px; border-radius: 10px; }
.header-contact:hover { background: rgba(255, 255, 255, .08); }
.header-contact .icon { width: 24px; height: 24px; display: block; }
.nav-toggle-label .when-open { display: none; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--green); }

/* ---------- Hero ---------- */
/* Fond commun des bannières (accueil et autres pages) : lignes de terrain + halo vert */
:root {
  --court-lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' fill='none' stroke='white' stroke-opacity='.06' stroke-width='3'%3E%3Crect x='10' y='10' width='780' height='480' rx='4'/%3E%3Cpath d='M400 10v480'/%3E%3Ccircle cx='400' cy='250' r='60'/%3E%3Cpath d='M10 40h90a210 210 0 0 1 0 420H10M790 40h-90a210 210 0 0 0 0 420h90'/%3E%3Crect x='10' y='180' width='170' height='140'/%3E%3Crect x='620' y='180' width='170' height='140'/%3E%3C/svg%3E");
}
.hero, .page-header {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(134, 189, 64, .22), transparent 60%),
    var(--court-lines) center / cover no-repeat,
    linear-gradient(160deg, var(--slate-700) 0%, var(--slate-900) 100%);
}
.hero { padding: 72px 0 120px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 span { color: var(--green-light); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #cfd6db; max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Carte "prochain match" */
.next-match {
  background: #fff; color: var(--text);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.next-match::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.next-match-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); }
.next-match-team { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--green-text); margin: 6px 0 18px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 22px; }
.versus .side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
.versus .side img { border-radius: 0; }
.versus-vs { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: .9rem; background: var(--bg-tint); border-radius: 999px; padding: 6px 10px; }
.avatar { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-tint); border: 2px dashed var(--border); color: var(--slate-500); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.next-match-team span { color: var(--muted); font-weight: 500; }

  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.versus .side-us > span { color: var(--green-text); }
.versus .side .opp-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 0; }
/* Logos des clubs (fond rendu transparent à la synchro) : un contour discret suit leur forme */
.versus .side .opp-logo, .fx-opp img, .rank-row img { filter: drop-shadow(0 0 1px rgba(31, 39, 45, .5)); }

/* Carrousel des prochains matchs */
.next-match { overflow: hidden; }
.carousel-nav { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.carousel-count { font-size: .82rem; color: var(--muted); min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.carousel-count b { color: var(--slate-900); }
.carousel-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--slate-900);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.carousel-btn:hover { background: var(--green); border-color: var(--green); }
.carousel-btn .icon { width: 16px; height: 16px; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; margin: 0 -28px; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 28px; min-width: 0; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: width .25s, background .25s; }
.carousel-dot[aria-selected="true"] { width: 24px; background: var(--green); }
.carousel-dot:hover { background: var(--green-light); }

.next-match-info { list-style: none; padding: 16px 0 0; margin: 0 0 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .95rem; }
.next-match-info li { display: flex; gap: 10px; align-items: flex-start; }
.next-match-info .icon { color: var(--green-text); margin-top: 3px; }
.next-match-info a { color: var(--text); }

/* ---------- Accès rapides ---------- */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -56px; position: relative; z-index: 2; }
.quick-link {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.quick-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(31, 39, 45, .14); }
.quick-link strong { display: block; font-family: var(--font-display); font-weight: 600; }
.quick-link small { color: var(--muted); font-size: .85rem; }
.ql-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-text); flex-shrink: 0; }
.ql-icon .icon { width: 22px; height: 22px; }

/* ---------- Grilles ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Cartes ---------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 10px 0 6px; }
.card-body .tag { align-self: flex-start; }
.team-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-rank { background: var(--slate-900); color: var(--green-light); }
.source-note { margin: 40px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.card-body .link-arrow { margin-top: auto; padding-top: 12px; }

.team-card-icon { height: 150px; display: grid; place-items: center; overflow: hidden; background: #1f272d; }
.team-illustration { display: block; width: 100%; height: 100%; }
@media (max-width: 600px) { .team-card-icon { height: 205px; } }
.team-card-icon .icon { width: 40px; height: 40px; opacity: .95; }
.team-card .muted { font-size: .92rem; margin-bottom: 8px; }

.article-card-top { display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: linear-gradient(135deg, var(--green-50), var(--green-100)); color: var(--green-text); font-weight: 600; font-size: .9rem; }
.article-card p { color: var(--muted); }
.article-card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.article-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 24px; }
/* Album : même rendu qu'une photo seule (.article-img), photos à faire glisser */
.album { position: relative; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.album-track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transition: height .25s ease; }
.album-track::-webkit-scrollbar { display: none; }
.album-track:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.album-slide { flex: 0 0 100%; scroll-snap-align: start; cursor: zoom-in; }
.album-slide img { display: block; width: 100%; height: auto; }
.album-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--slate-900); box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; transition: opacity .2s; }
.album:hover .album-nav, .album:focus-within .album-nav { opacity: 1; }
@media (hover: none) { .album-nav { display: none; } }
.album-nav .icon { width: 18px; height: 18px; }
.album-nav.prev { left: 12px; }
.album-nav.next { right: 12px; }
.album-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.album-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .4); transition: background .2s, transform .2s; }
.album-dots span.on { background: #fff; transform: scale(1.25); }
.lightbox { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(15, 20, 24, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox .icon { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .9rem; opacity: .8; }

/* ---------- Divers ---------- */
.empty { color: var(--muted); background: var(--bg-tint); border: 1px dashed var(--border); border-radius: var(--radius); padding: 20px; text-align: center; margin: 0; }

/* ---------- Rejoindre ---------- */
.join {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: radial-gradient(600px 300px at 0% 100%, rgba(134, 189, 64, .25), transparent 70%), linear-gradient(135deg, var(--slate-700), var(--slate-900));
  color: #cfd6db; border-radius: var(--radius-lg); padding: 56px;
}
.join h2 { color: #fff; }
.join-text p { font-size: 1.05rem; margin-bottom: 28px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 18px; }
.steps strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.steps p { margin: 2px 0 0; font-size: .92rem; }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--slate-900); font-family: var(--font-display); font-weight: 800; flex-shrink: 0; }

/* ---------- En-tête de page ---------- */
.page-header { padding: 60px 0 56px; }
.page-header h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.page-header h1 span { color: var(--green-light); }
.page-header .eyebrow { color: var(--green-light); }
.page-subtitle { color: #cfd6db; font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 16px 0 0; max-width: 560px; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 6px; color: #cfd6db; font-size: .9rem; margin-bottom: 18px; }
.back-link:hover { color: #fff; }

/* ---------- Calendrier ---------- */
.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.tabs { display: inline-flex; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 999px; padding: 4px; align-self: flex-start; }
.tabs a, .tabs button { font: inherit; border: 0; background: none; cursor: pointer; padding: 8px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover, .tabs button:hover { text-decoration: none; color: var(--text); }
.tabs a.active, .tabs button.active { background: #fff; color: var(--slate-900); box-shadow: var(--shadow-sm); }
.count { font-size: .75rem; background: var(--border); color: var(--slate-700); border-radius: 999px; padding: 1px 8px; }
.tabs a.active .count, .tabs button.active .count { background: var(--green); color: var(--slate-900); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.place-filter .fx-place { width: 22px; height: 22px; }
.place-filter .fx-place .icon { width: 12px; height: 12px; }
.place-filter .active .fx-place.away { background: var(--bg-tint); }
.chip { font: inherit; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-size: .9rem; font-weight: 500; background: #fff; transition: border-color .15s, background .15s; }
.chip:hover { text-decoration: none; border-color: var(--green); }
.chip.active { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.month { font-size: 1.1rem; text-transform: capitalize; margin: 36px 0 14px; display: flex; align-items: center; gap: 12px; }
.month::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Page équipe ---------- */
.team-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.team-page.no-matches { grid-template-columns: minmax(0, 640px); }
.team-aside { display: grid; gap: 16px; }
.coach-line { margin: 12px 0 0; font-size: .95rem; }
.training-venue { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.training-venue .icon { color: var(--green-text); margin-top: 2px; }
.training-venue:hover { color: var(--green-text); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel p:last-child { margin-bottom: 0; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 12px; }
.panel-title .icon { color: var(--green-text); }
.panel-accent { background: var(--green-50); border-color: var(--green-100); }
.check-list, .roster { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list .icon { color: var(--green-text); }
.roster li { display: flex; align-items: center; gap: 12px; }
.roster strong { display: block; }
.roster small { color: var(--muted); }
.jersey { width: 38px; height: 38px; border-radius: 10px; background: var(--slate-900); color: var(--green-light); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }

/* ---------- Calendrier façon FFBB ---------- */
.calendar-wrap { max-width: 1040px; }
.fixtures-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.fixtures-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); }
.fixtures-title { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; margin: 0; color: var(--slate-900); }
.fixtures-title::after { content: ""; display: block; width: 36px; height: 4px; background: var(--green); border-radius: 4px; margin-top: 4px; }
.fx-list > .empty { margin: 20px; }
/* Compétitions d'une équipe (phase 1 / phase 2, coupe) : bandeau de titre et séparation nette */
.fx-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 20px; background: var(--slate-800); color: #fff; font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fx-group-status { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); font-family: var(--font-body); font-size: .7rem; letter-spacing: .04em; }
.fx-group-status.on { background: var(--green); color: var(--slate-900); }
.fx-list > .fx-section + .fx-section { border-top: 10px solid var(--bg-tint); }

.fx {
  position: relative;
  display: grid;
  grid-template-columns: 58px 108px 34px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.fx:last-child { border-bottom: 0; }
.fx:hover { background: var(--bg-tint); }
.fx.is-next { background: var(--green-50); box-shadow: inset 4px 0 0 var(--green); }
.fx-round { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.fx-round small { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fx-round b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--green-text); margin-top: 3px; }
.fx-date { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.fx-date b { color: var(--slate-700); font-weight: 600; }
.fx-place { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.fx-place .icon { width: 18px; height: 18px; }
.fx-place.home { background: var(--green); color: var(--slate-900); }
.fx-place.away { background: var(--bg-tint); color: var(--slate-500); border: 1px solid var(--border); }
.fx-opp { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-opp img, .fx-avatar { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.fx-avatar { border-radius: 50%; background: var(--bg-tint); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .75rem; color: var(--slate-500); }
.fx-opp-text { display: flex; flex-direction: column; min-width: 0; }
.fx-opp-text strong { font-weight: 700; font-size: .9rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; color: var(--slate-900); }
.fx-team { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-text); }
.fx-venue { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-venue .icon { width: 12px; height: 12px; }
.fx-venue:hover { color: var(--green-text); }
/* Ligne cliquable vers l'équipe : le lien du nom couvre toute la ligne, l'itinéraire reste cliquable au-dessus */
.fx:has(.fx-link) { position: relative; cursor: pointer; }
.fx-link { text-decoration: none; }
.fx-link::after { content: ""; position: absolute; inset: 0; }
.fx-link:focus-visible { outline: none; }
.fx:has(.fx-link:focus-visible) { outline: 3px solid var(--green); outline-offset: -3px; }
.fx:has(.fx-link) .fx-venue { position: relative; z-index: 1; }
.fx:has(.fx-link):hover .fx-opp strong { color: var(--green-text); }

.fx-score { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--border); }
.fx-score .box {
  min-width: 44px; height: 38px; padding: 0 6px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums;
  background: var(--bg-tint); color: var(--slate-500);
}
.is-upcoming .fx-score .box { background: transparent; border: 2px dashed var(--border); }
.fx-score .box.us.win { background: var(--green); color: var(--slate-900); }
.fx-score .box.us.loss { background: var(--slate-900); color: #fff; }
.fx-score .vs { font-family: var(--font-display); font-weight: 800; font-size: .72rem; color: #fff; background: var(--slate-700); border-radius: 6px; padding: 3px 6px; }
.is-win .fx-score .vs { background: var(--green-text); }

/* ---------- Encarts latéraux ---------- */
.side-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.stats-card { background: linear-gradient(120deg, var(--slate-900) 0%, var(--slate-700) 55%, var(--green) 130%); padding: 18px 16px 16px; }
.side-card-head { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1.05rem; margin: 0 4px 14px; }
.side-card-head .icon { color: var(--green-light); }
.rings { background: #fff; border-radius: var(--radius); padding: 18px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ring { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ring svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: var(--bg-tint); }
.ring-value { stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-green .ring-value { stroke: var(--green); }
.ring-slate .ring-value { stroke: var(--slate-700); }
.ring strong { position: absolute; top: 22px; left: 0; right: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--slate-900); }
.ring span { margin-top: 6px; font-size: .78rem; line-height: 1.3; color: var(--muted); }

.standings-card { background: var(--bg-tint); padding: 18px 16px 16px; box-shadow: none; border: 1px solid var(--border); }
.side-card-title { font-size: 1.05rem; margin: 0 4px 12px; }
.rank-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 26px 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row img, .rank-logo-empty { width: 32px; height: 32px; object-fit: contain; }
.rank-pos { font-family: var(--font-display); font-weight: 700; color: var(--slate-700); text-align: center; }
.rank-name { font-weight: 700; font-size: .85rem; text-transform: uppercase; line-height: 1.25; color: var(--slate-900); }
.rank-pts { font-family: var(--font-display); font-weight: 700; color: var(--slate-700); white-space: nowrap; }
.rank-pts small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.rank-row.is-us { background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%); border-bottom-color: transparent; }
.rank-row.is-us .rank-pos, .rank-row.is-us .rank-name, .rank-row.is-us .rank-pts, .rank-row.is-us small { color: var(--slate-900); }
.rank-row.is-us img { filter: none; }
.rank-gap { text-align: center; color: var(--muted); font-size: .8rem; line-height: 1; padding: 2px 0; background: #fff; letter-spacing: .2em; }
.rank-details { margin-top: 12px; }
.rank-details summary {
  list-style: none; cursor: pointer; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 11px 16px;
  font-weight: 600; font-size: .92rem; color: var(--slate-900);
}
.rank-details summary::-webkit-details-marker { display: none; }
.rank-details summary::after { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.rank-details summary:hover { border-color: var(--green); }
.rank-details[open] summary { margin-bottom: 12px; }
.rank-details .link-arrow { margin-top: 10px; font-size: .88rem; }
.table-scroll { overflow-x: auto; background: #fff; border-radius: var(--radius); }
.rank-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.rank-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.rank-table td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table th:nth-child(2), .rank-table td.rank-table-name { text-align: left; }
.rank-table-name { font-weight: 600; font-size: .8rem; }
.rank-table-team { display: flex; align-items: center; gap: 8px; }
.rank-table-team img, .rank-table-nologo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.rank-table-team img { filter: drop-shadow(0 0 1px rgba(31, 39, 45, .5)); }
.rank-table tr.is-us .rank-table-team img { filter: none; }
.rank-table tr.is-us td { background: var(--green-50); font-weight: 700; }
.rank-table .pos { color: var(--win); }
.rank-table .neg { color: var(--loss); }

/* ---------- Trombinoscope ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 56px; }
.person {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 16px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--green-100);
  margin-bottom: 16px;
}
.person-initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--slate-700), var(--slate-900));
  color: var(--green-light); font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
}
.person h3 { margin: 0 0 8px; font-size: 1.1rem; }
.person-role { margin: 0; color: var(--green-text); font-weight: 600; font-size: .9rem; }
.person-teams { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.person-teams a:hover { text-decoration: none; background: var(--green-100); }
.person-commissions { margin-top: 10px; }
.tag-commission { background: var(--bg-tint); color: var(--slate-700); box-shadow: inset 0 0 0 1px var(--border); }
.trombi-join {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 24px 28px;
  margin-bottom: 48px;
}
.trombi-join p { margin: 0; max-width: 640px; }
@media (max-width: 600px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
  .person { padding: 18px 10px 16px; }
  .person-photo { width: 84px; height: 84px; margin-bottom: 12px; }
  .person-initials { font-size: 1.6rem; }
  .person h3 { font-size: 1rem; }
  .trombi-join .btn { width: 100%; }
}

/* ---------- Article ---------- */
.prose { max-width: 720px; font-size: 1.08rem; }
.prose .lead { font-size: 1.25rem; color: var(--slate-700); font-family: var(--font-display); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.contact-card:hover { text-decoration: none; border-color: var(--green); box-shadow: var(--shadow-sm); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }
.contact-card strong { font-weight: 600; word-break: break-word; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social a { display: inline-flex; align-items: center; gap: 8px; width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s; }
.social a:hover { background: var(--green); color: var(--slate-900); }

/* ---------- 404 ---------- */
.not-found { text-align: center; max-width: 520px; }
.not-found img { margin: 0 auto 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: #aab5bc; padding: 56px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.footer-brand p { margin: 6px 0 0; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfd6db; }
.site-footer a:hover { color: var(--green-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--green); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 20px; font-size: .82rem; color: #7f8c95; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .next-match { max-width: 520px; }
  .join { grid-template-columns: 1fr; padding: 40px; }
  .team-page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Menu replié (burger) tant que le logo et tous les liens ne tiennent pas sur une ligne (~1030 px) */
@media (max-width: 1060px) {
  .nav-toggle-label { display: block; }
  .header-contact { display: block; }
  .header-inner { gap: 4px; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--slate-900); padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    display: none;
  }
  .main-nav a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-toggle:checked + .nav-toggle-label .when-open { display: block; }
  .nav-toggle:checked + .nav-toggle-label .when-closed { display: none; }
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand span { font-size: 1rem; }
  .hero { padding: 48px 0 96px; }
  .hero-actions .btn, .hero-text .btn { flex: 1 1 auto; width: 100%; }
  .next-match { padding: 22px; }
  .carousel-track { margin: 0 -22px; }
  .carousel-slide { padding: 0 22px; }
  .grid-4 { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -64px; }
  .quick-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .quick-link small { display: none; }
  .ql-icon { width: 40px; height: 40px; }
  .join { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .fixtures-head { padding: 18px 16px 14px; }
  .fixtures-head .tabs { width: 100%; overflow-x: auto; }
  .fixtures-head .tabs a, .fixtures-head .tabs button { padding: 8px 12px; white-space: nowrap; }
  .fx {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "round date place" "opp opp score";
    gap: 8px 10px; padding: 14px 16px;
  }
  .fx-round { grid-area: round; flex-direction: row; align-items: baseline; gap: 4px; }
  .fx-round b { font-size: 1.1rem; margin: 0; }
  .fx-date { grid-area: date; }
  .fx-place { grid-area: place; width: 28px; height: 28px; }
  .fx-place .icon { width: 15px; height: 15px; }
  .fx-opp { grid-area: opp; }
  .fx-score { grid-area: score; padding-left: 0; border: 0; gap: 5px; }
  .fx-score .box { min-width: 36px; height: 32px; font-size: 1.1rem; }
  .fx-score .vs { font-size: .62rem; padding: 2px 4px; }
}

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

/* ---------- Contact (sans formulaire) ---------- */
.link-button { font: inherit; color: var(--green-text); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

.contact-intro { margin: 0 0 24px; color: var(--muted); }
.contact-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
/* Grille partagée : titre, texte, adresse et boutons alignés d'une carte à l'autre */
.contact-box {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; padding: 26px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.contact-box.is-target { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100), var(--shadow); }
.contact-box-head { display: flex; align-items: center; gap: 12px; }
.contact-box h2 { margin: 0; font-size: 1.3rem; }
.contact-box p { margin: 0; color: var(--muted); }
/* Adresse sur une seule ligne, taille prévue pour la plus longue (communication@…) dans la carte la plus étroite */
.contact-box-email { font-weight: 600; color: var(--green-text); white-space: nowrap; font-size: .85rem; }
.contact-box-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding-top: 6px; }
.contact-box-actions .btn { padding: 10px 18px; font-size: .95rem; }
.contact-places-title { margin: 0 0 14px; font-size: 1.15rem; }
.contact-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-card-sub { display: block; color: var(--muted); font-size: .88rem; }
/* Côte à côte seulement si la plus longue adresse tient sur une ligne */
@media (max-width: 1140px) { .contact-boxes { grid-template-columns: 1fr; } }
@media (max-width: 1140px) { .contact-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .contact-places { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .contact-box-email { font-size: .8rem; } } /* téléphones étroits (360 px) */
@media (max-width: 600px) {
  .contact-box { padding: 22px; }
  .contact-box-actions .btn { width: 100%; }
}

/* ---------- Accueil : blocs « résultats du week-end » / « ce week-end » ---------- */
.home-block + .home-block { margin-top: 28px; }
.col-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }

/* ---------- Entraînements : lieu par créneau ---------- */
.check-list.trainings li { align-items: flex-start; }
.check-list.trainings li > .icon { margin-top: 4px; }
.training-where { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.training-where a { color: var(--green-text); }
.training-where .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.training-where .capitalize { display: inline-block; }

/* ---------- Événements ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { overflow: hidden; }
.event-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-cover { aspect-ratio: 16 / 9; object-fit: cover; }
.event-card-main { display: flex; gap: 18px; padding: 20px; align-items: flex-start; }
.event-body .muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-card.is-past { opacity: .75; }
.event-date {
  flex-shrink: 0; width: 64px; padding: 10px 0; border-radius: 14px; text-align: center;
  background: var(--slate-900); color: #fff; display: flex; flex-direction: column; line-height: 1.1;
}
.event-date .d { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--green-light); }
.event-date .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #b7c2c9; }
.event-body { min-width: 0; }
.event-body h3 { margin: 8px 0 6px; }
.event-when { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 4px; font-size: .88rem; color: var(--slate-700); }
.event-when .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--green-text); }
.event-body .muted { margin: 8px 0 0; font-size: .9rem; }
.events-past-head { margin-top: 56px; }
.events-year { display: flex; align-items: center; gap: 14px; margin: 32px 0 16px; font-size: 1.3rem; color: var(--green-text); }
.events-year::after { content: ""; flex: 1; height: 1px; background: var(--border, #dde3e7); }
.events-past-head + .events-year { margin-top: 0; }
.event-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.event-info { display: grid; gap: 16px; }
.event-info .tag { justify-self: start; margin: 0; }
.event-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event-facts li { display: flex; gap: 10px; align-items: flex-start; }
.event-facts .icon { color: var(--green-text); margin-top: 3px; }
@media (max-width: 900px) { .event-page { grid-template-columns: 1fr; } }

/* ---------- Bénévoles des matchs à domicile ---------- */
.vol-day { margin: 0 0 16px; padding-left: 12px; border-left: 6px solid var(--green); font-size: 1.35rem; line-height: 1.1; }
.vol-day-block + .vol-day-block { margin-top: 36px; }
.vol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.vol-match { padding: 20px; gap: 14px; }
.vol-match { padding: 0 0 18px; gap: 12px; }
.vol-match .vol-roles { padding: 0 20px; }
.vol-match-head { position: relative; padding: 16px 20px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(134, 189, 64, .35), transparent 55%), linear-gradient(135deg, var(--slate-900), var(--slate-800)); }
.vol-match-top { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.vol-time { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--green-light); }
.vol-team { padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--slate-900); font-size: .8rem; font-weight: 700; }
.vol-team:hover { text-decoration: none; background: var(--green-light); }
.vol-match-head h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.vol-match-head h3 span { font-family: var(--font-body, inherit); font-weight: 400; font-size: .85rem; color: #b7c2c9; }
.vol-match-head .event-when { margin: 6px 0 0; color: #b7c2c9; }
.vol-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.vol-progress[hidden] { display: none; }
.vol-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.vol-progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .4s ease; }
.vol-progress-text { font-size: .78rem; font-weight: 600; color: #dfe6ea; white-space: nowrap; }
.vol-progress.is-full .vol-progress-text { color: var(--green-light); }
.vol-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vol-role { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.vol-role-label { font-weight: 600; font-size: .92rem; }
.vol-slots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.vol-slot { font: inherit; font-size: .85rem; padding: 5px 12px; border-radius: 999px; border: 1.5px dashed var(--green); background: var(--green-50); color: var(--green-text); cursor: pointer; }
.vol-slot:hover:not(:disabled) { background: var(--green-100); }
.vol-slot:disabled { cursor: default; opacity: .55; }
.vol-slot.is-taken { border-style: solid; border-color: var(--border); background: var(--bg-tint); color: var(--text); opacity: 1; }
.vol-slot.is-mine { border-style: solid; border-color: var(--green); background: var(--green); color: #fff; cursor: pointer; }
.vol-slot.is-mine.is-confirm { background: var(--loss); border-color: var(--loss); }
.vol-status { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-tint); }
.vol-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); overflow: visible; box-shadow: var(--shadow-lg); }
.vol-dialog::backdrop { background: rgba(15, 20, 24, .6); backdrop-filter: blur(2px); }
.vol-dialog[open] { animation: vol-pop .18s ease-out; }
@keyframes vol-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.vol-dialog-head { position: relative; padding: 22px 56px 20px 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; color: #fff; background: radial-gradient(circle at 100% 0, rgba(134, 189, 64, .4), transparent 60%), linear-gradient(135deg, var(--slate-900), var(--slate-800)); }
.vol-dialog-role { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--green); color: var(--slate-900); font-size: .82rem; font-weight: 700; }
.vol-dialog-head h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.vol-dialog-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 0; color: #fff; font-size: 1rem; font-weight: 600; }
.vol-dialog-when > span { display: inline-flex; align-items: center; gap: 7px; }
.vol-dialog-when .icon { width: 17px; height: 17px; color: var(--green-light); }
.vol-dialog-hour { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--green-light); }
.vol-dialog-hour[hidden] { display: none !important; }
.vol-dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.vol-dialog-close:hover { background: rgba(255, 255, 255, .22); }
.vol-dialog-close .icon { width: 18px; height: 18px; }
.vol-dialog-body { display: grid; gap: 14px; padding: 22px 24px 24px; }
.vol-dialog .vol-trap { position: absolute; left: -9999px; }
.vol-input { position: relative; }
.vol-input .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.vol-input input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 13px 14px 13px 42px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }
.vol-input input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.vol-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.vol-privacy { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }
.vol-error { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--loss-bg); color: var(--loss); font-size: .9rem; font-weight: 600; }
.vol-submit { width: 100%; justify-content: center; }
/* Téléphone : la fenêtre s'ouvre depuis le bas de l'écran, sur toute la largeur */
@media (max-width: 600px) {
  .vol-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92dvh; }
  .vol-dialog[open] { animation: vol-up .22s ease-out; }
  @keyframes vol-up { from { transform: translateY(100%); } }
  .vol-dialog-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) { .vol-grid { grid-template-columns: 1fr; } .vol-role { flex-wrap: wrap; } }
.vol-intro { margin-bottom: 28px; }
.vol-how { padding: 22px; border-radius: var(--radius); background: var(--bg-tint); }
.vol-intro h2 { font-size: 1.2rem; margin-bottom: 14px; }
.vol-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vol-how li { display: flex; gap: 12px; align-items: flex-start; }
.vol-how li p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.vol-how .step-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; }
.vol-demo { cursor: default; padding: 2px 10px; font-size: .8rem; }
@media (max-width: 800px) { .vol-how ol { grid-template-columns: 1fr; gap: 14px; } }
.vol-rule { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--slate-900); color: #dfe6ea; font-size: .92rem; }
.vol-rule strong { color: #fff; }
.vol-rule-icon { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--slate-900); font-weight: 800; }
.vol-callout { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); color: var(--slate-900); }
.vol-callout:hover { text-decoration: none; border-color: var(--green); }
.vol-callout > .icon { flex-shrink: 0; color: var(--green-text); }
.vol-callout span { flex: 1; }
.vol-field { position: relative; display: grid; gap: 4px; }
.vol-field label { font-weight: 700; font-size: .9rem; }
.vol-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; max-height: 210px; overflow-y: auto; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.vol-suggest li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.vol-suggest li span { color: var(--muted); font-size: .85rem; }
.vol-suggest li:hover, .vol-suggest li[aria-selected="true"] { background: var(--green-50); }
.vol-suggest .vol-suggest-empty { cursor: default; color: var(--muted); font-size: .88rem; }
.vol-suggest .vol-suggest-empty:hover { background: none; }
.vol-dialog-when .capitalize { display: inline-block; }
.vol-how summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vol-how summary::-webkit-details-marker { display: none; }
.vol-how-toggle { display: none; }
@media (min-width: 801px) { .vol-how summary { pointer-events: none; } }
@media (max-width: 800px) {
  .vol-intro { margin-bottom: 18px; }
  .vol-how { padding: 14px 18px; }
  .vol-how summary { cursor: pointer; }
  .vol-how:not([open]) summary h2 { margin: 0; }
  .vol-how-toggle { display: inline; font-size: .85rem; font-weight: 600; color: var(--green-text); white-space: nowrap; }
  .vol-how-toggle::after { content: "Voir ▾"; }
  .vol-how[open] .vol-how-toggle::after { content: "Masquer ▴"; }
  .vol-how:not([open]) summary h2 { font-size: 1.05rem; }
}
.vol-tabs { margin-bottom: 24px; }
.vol-match.is-past .vol-match-head { background: linear-gradient(135deg, var(--slate-800), var(--slate-700)); }
.vol-match.is-past .vol-slot { cursor: default; opacity: 1; }
.vol-match.is-past .vol-slot:not(.is-taken) { border-style: solid; border-color: var(--border); background: none; color: var(--muted); }
.vol-score { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: #fff; }
.vol-officiels { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--slate-900); color: var(--green-light); font-size: .82rem; font-weight: 700; }
.vol-officiels::before { content: "✓"; }
.vol-officiels[hidden], .vol-slots[hidden] { display: none; }

/* ---------- Événement mis en avant (accueil) et fiche enrichie ---------- */
.featured-wrap { margin-top: 32px; }
.featured-event { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.featured-event-visual { display: flex; align-items: center; background: #f7ecd3; }
.featured-event-visual img { display: block; width: 100%; height: auto; }
.featured-event .capitalize { display: inline-block; }
.featured-event-body { display: grid; align-content: center; gap: 12px; padding: 28px 32px; }
.featured-event-body h2 { margin: 0; }
.featured-event-body .eyebrow, .featured-event-body .muted { margin: 0; }
.featured-event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 900px) { .featured-event { grid-template-columns: 1fr; } .featured-event-body { padding: 22px 20px; } }
.event-info .btn { justify-content: center; }
.events-upcoming { display: grid; gap: 24px; }
.featured-event h2 a { color: inherit; }
.featured-event.no-visual { grid-template-columns: 1fr; }
.event-when .capitalize, .event-facts .capitalize { display: inline-block; }
.event-registration { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.event-registration h2 { margin: 0 0 12px; }
/* Hauteur de départ du formulaire HelloAsso (il n'envoie sa hauteur qu'après interaction) : assez pour sa première étape,
   sans barre de défilement interne ; ses messages l'agrandissent ensuite si besoin */
.event-registration .ha-widget { display: block; min-height: 940px; }
@media (max-width: 760px) { .event-registration .ha-widget { min-height: 1300px; } }
.event-banner { margin-top: 28px; }
.event-banner img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section.has-banner { padding-top: 36px; }
.event-cover.is-mobile-only { display: none; }
@media (max-width: 760px) {
  .event-banner { display: none; }
  .section.has-banner { padding-top: 24px; }
  .event-cover.is-mobile-only { display: block; }
}
/* Fiche d'événement sur téléphone : image, puis l'encadré d'informations (inscription, agenda), puis le texte */
@media (max-width: 900px) {
  .event-page { display: flex; flex-direction: column; gap: 0; }
  .event-page > .prose { display: contents; }
  .event-page > .prose > * { order: 3; }
  .event-page > .prose > .event-cover { order: 1; }
  .event-page > .event-info { order: 2; margin: 0 0 24px; }
}

/* ---------- Boutique (vitrine des articles Grinta) ---------- */
.shop-status { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; border-left: 4px solid var(--green); }
.shop-status p { margin: 0; color: var(--muted); }
.shop-status .shop-status-title { color: var(--text); font-weight: 600; font-size: 1.05rem; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.shop-status-title svg { color: var(--green-text); flex: none; margin-top: 3px; }
.shop-status-title .is-mobile-only { display: none; }
.shop-open-title, .shop.is-after-xmas .shop-xmas { display: none !important; }
.shop.is-after-xmas .shop-open-title { display: flex !important; }
.shop-status-closed, .shop.is-closed .shop-status-open, .shop.is-closed .shop-order { display: none; }
.shop.is-closed .shop-status-closed { display: block; }
.shop.is-closed .shop-status { border-left-color: var(--slate-500); }
.shop-tabs { margin-bottom: 20px; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.shop-grid[hidden] { display: none; }
.shop-item a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 16px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.shop-item a:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green-light); }
.shop.is-closed .shop-item a { pointer-events: none; }
.shop-photo { display: block; aspect-ratio: 1; background: var(--bg-tint); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; }
.shop-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.shop-item a:hover .shop-photo img { transform: scale(1.04); }
.shop-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.shop-name { font-weight: 600; margin: 2px 0 8px; }
.shop-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.shop-price strong { font-size: 1.15rem; color: var(--slate-900); }
.shop-price s { color: var(--muted); font-size: .9rem; }
.shop-cta { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 12px; border-radius: 999px; background: var(--green); color: var(--slate-900); font-weight: 600; font-size: .92rem; transition: background .2s; }
.shop-item a:hover .shop-cta { background: var(--green-light); }
.shop-cta svg { width: 15px; height: 15px; }
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-item a { padding: 8px 8px 12px; }
  .shop-name { font-size: .92rem; }
  .shop-status { padding: 16px; margin-bottom: 20px; gap: 12px; }
  .shop-status .shop-status-title { font-size: 1rem; }
  .shop-status-title .is-desktop-only { display: none; }
  .shop-status-title .is-mobile-only { display: inline; }
  .shop-status-help { font-size: .92rem; }
  .shop-status .btn { width: 100%; justify-content: center; }
}


/* Carte « Boutique » dans la bannière de l'accueil */
.hero-shop { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 520px; margin-top: 0; padding: 16px 16px 16px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(172, 207, 121, .35); color: #fff; text-decoration: none; backdrop-filter: blur(4px); transition: background .2s, border-color .2s, transform .2s; }
.hero-shop:hover { text-decoration: none; background: rgba(255, 255, 255, .12); border-color: var(--green); transform: translateY(-1px); }
.hero-shop-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 14px; background: rgba(134, 189, 64, .18); color: var(--green-light); }
.hero-shop-icon svg { width: 26px; height: 26px; }
.hero-shop-text { display: flex; flex-direction: column; min-width: 0; }
.hero-shop-text strong { font-weight: 600; font-size: 1.12rem; }
.hero-shop-text small { color: var(--green-light); font-size: .92rem; }
.hero-shop-short { display: none; }
.hero-shop-arrow { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--green); color: var(--slate-900); font-weight: 600; font-size: .92rem; transition: background .2s; }
.hero-shop:hover .hero-shop-arrow { background: var(--green-light); }
.hero-shop-arrow svg { width: 17px; height: 17px; transition: transform .2s; }
.hero-shop:hover .hero-shop-arrow svg { transform: translateX(3px); }
@media (max-width: 600px) {
  .hero-shop { gap: 12px; padding: 10px 12px 10px 10px; }
  .hero-shop-icon { width: 44px; height: 44px; border-radius: 12px; }
  .hero-shop-icon svg { width: 22px; height: 22px; }
  .hero-shop-text strong { font-size: 1rem; }
  .hero-shop-text small { font-size: .88rem; }
  .hero-shop-arrow { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .hero-shop-cta { display: none; }
  .hero-shop-long { display: none; }
  .hero-shop-short { display: inline; }
}
