/* ES Naours – thème vert & blanc */
:root {
  --g-950: #032615;
  --g-900: #053b21;
  --g-800: #075a31;
  --g-700: #0a6b3a;
  --g-600: #0d8247;
  --g-500: #16a05a;
  --g-300: #7fd1a3;
  --g-100: #e3f4ea;
  --g-50: #f2faf5;
  --white: #ffffff;
  --ink: #0f1d16;
  --muted: #5d6d64;
  --line: #dce8e1;
  --bg: #f5f8f6;
  --win: #16a05a;
  --draw: #8a9690;
  --loss: #d6453d;
  --warn: #c98a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(5, 59, 33, .06), 0 6px 20px rgba(5, 59, 33, .07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--g-700); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; margin: .2em 0; }
h2 { font-size: 1.6rem; text-transform: uppercase; margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.empty { color: var(--muted); padding: 1rem 0; margin: 0; }
.narrow { max-width: 820px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--g-900); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.site-header::after { content: ""; display: block; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 24px, var(--g-500) 24px 48px); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand-crest { width: 44px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.brand-text small { font-size: .75rem; color: var(--g-300); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.nav { display: flex; gap: 2px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; transition: background .15s; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.active { background: #fff; color: var(--g-800); }
.nav a.nav-admin { border: 1px solid rgba(255,255,255,.35); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--g-900); flex-direction: column; padding: 8px 16px 16px; display: none; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Bandeaux ---------- */
.hero, .page-head, .match-hero {
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 60px, transparent 60px 120px),
    radial-gradient(120% 140% at 85% 0%, var(--g-600) 0%, var(--g-800) 45%, var(--g-950) 100%);
}
.hero { padding: 48px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-text p { font-size: 1.15rem; color: #d7efe1; max-width: 32ch; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--g-300); }
.eyebrow--dark { color: var(--g-600); }
.hero-stats { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 16px; min-width: 96px; }
.hero-stats b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; }
.hero-stats span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #cfe9da; }
.page-head { padding: 36px 0 32px; }
.page-head h1 { margin: .1em 0 0; }
.page-sub { color: #d7efe1; margin: .3em 0 0; }
.page-sub a { color: #fff; }

.next-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.28); position: relative; overflow: hidden; }
.next-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--g-700), var(--g-500)); }
.nc-head { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--g-700); }
.nc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 20px 0 14px; }
.nc-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-family: var(--display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.nc-vs { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--g-300); }
.nc-when { text-align: center; font-size: 1.05rem; text-transform: capitalize; }
.nc-venue { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.nc-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.nc-empty { text-align: center; color: var(--muted); padding: 30px 0 10px; }
.countdown { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.countdown div { background: var(--g-50); border: 1px solid var(--line); border-radius: 10px; min-width: 58px; padding: 6px 4px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--g-800); line-height: 1; }
.countdown span { font-size: .68rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.match-hero .countdown div { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.match-hero .countdown b { color: #fff; }
.match-hero .countdown span { color: #cfe9da; }

@media (max-width: 860px) {
  .hero { padding: 28px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Écussons ---------- */
.badge { --s: 40px; width: var(--s); height: var(--s); flex: 0 0 var(--s); display: inline-grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; position: relative; }
.badge img { width: 82%; height: 82%; object-fit: contain; }
.badge b { display: none; font-family: var(--display); font-size: calc(var(--s) * .38); color: var(--g-800); }
.badge--txt { background: var(--g-100); }
.badge--txt b { display: block; }
.badge--us { border: 2px solid var(--g-600); }
.badge--us img { width: 88%; height: 88%; }
.badge--xs { --s: 26px; }
.badge--sm { --s: 34px; }
.badge--lg { --s: 76px; box-shadow: 0 4px 14px rgba(5,59,33,.15); }
.badge--xl { --s: 96px; border-width: 3px; }

/* ---------- Cartes & mise en page ---------- */
.page { padding: 28px 0 56px; }
.home-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: -28px; padding-bottom: 56px; position: relative; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; border: 1px solid #e6efe9; }
.card + .card { margin-top: 0; }
.page > .card + .card, .page > .card + section, .page > section + section { margin-top: 20px; }
.card--wide { grid-column: 1 / -1; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; color: var(--g-900); }
.card-head a { font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
h3.sub { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 6px; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; margin-top: -20px; } .card { padding: 16px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--g-700); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--g-800); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--g-100); color: var(--g-800); }
.btn--light:hover { background: #d0ecdc; }
.btn--ghost { background: #fff; color: var(--g-800); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--g-50); }
.btn--danger { background: #fff; color: var(--loss); border: 1px solid #f0c9c6; }
.btn--danger:hover { background: #fdf0ef; }
.btn--sm { padding: 6px 12px; font-size: .85rem; }
.btn--full { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.back--light { color: #d7efe1; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: var(--g-100); color: var(--g-800); white-space: nowrap; }
.tag--warn { background: #fff4d6; color: #8a5d00; }
.tag--ok { background: var(--g-100); color: var(--g-800); }
.tag--live { background: var(--g-500); color: #fff; }
.pill { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-weight: 800; font-size: .75rem; }
.pill--V { background: var(--win); }
.pill--N { background: var(--draw); }
.pill--D { background: var(--loss); }
.pill--lg { width: auto; height: auto; padding: 4px 12px; font-size: .85rem; margin-top: 8px; border-radius: 8px; }

/* ---------- Matchs ---------- */
.match-list { display: flex; flex-direction: column; }
.match-row { display: grid; grid-template-columns: 110px 1fr 92px; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 8px; transition: background .12s; }
.match-list > :last-child .match-row, .match-list > .match-row:last-child { border-bottom: 0; }
.match-row:hover { background: var(--g-50); }
.mr-date { display: flex; flex-direction: column; line-height: 1.2; }
.mr-day { font-weight: 700; font-size: .9rem; text-transform: capitalize; }
.mr-meta { font-size: .78rem; color: var(--muted); }
.mr-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-width: 0; }
.mr-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; font-size: .92rem; }
.mr-home { justify-content: flex-end; text-align: right; }
.mr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-team.is-us .mr-name { font-weight: 800; color: var(--g-800); }
.mr-score { min-width: 64px; text-align: center; }
.score { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.3rem; padding: 2px 10px; border-radius: 8px; background: var(--g-950); color: #fff; letter-spacing: .04em; }
.score--V { background: var(--g-700); }
.score--D { background: #3d4a43; }
.vs { font-family: var(--display); font-weight: 700; color: var(--g-300); font-size: 1.1rem; }
.mr-side { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.mr-ha { font-size: .75rem; color: var(--muted); }
@media (max-width: 640px) {
  .match-row { grid-template-columns: 1fr auto; grid-template-areas: "date side" "teams teams"; gap: 6px; padding: 12px 4px; }
  .mr-date { grid-area: date; flex-direction: row; gap: 8px; align-items: baseline; }
  .mr-side { grid-area: side; }
  .mr-teams { grid-area: teams; }
  .mr-team { font-size: .88rem; }
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .9rem var(--font); cursor: pointer; }
.tabs button small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.tabs button[aria-selected="true"] { background: var(--g-700); color: #fff; border-color: var(--g-700); }
.tabs button[aria-selected="true"] small { color: var(--g-300); }
.tally { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 0 0 12px; }
.tally .pill { margin-left: 8px; }
.tally .pill:first-child { margin-left: 0; }

/* ---------- Classement ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.standings th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 6px; text-align: center; border-bottom: 2px solid var(--line); }
.standings td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.standings .c-team { text-align: left; }
.standings td.c-team { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 160px; }
.standings .c-rank span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--g-50); font-weight: 700; }
.standings tbody tr:first-child .c-rank span { background: var(--g-700); color: #fff; }
.standings .c-pts strong { font-size: 1.05rem; }
.standings tr.is-us td { background: var(--g-100); }
.standings tr.is-us td.c-team { font-weight: 800; color: var(--g-900); }
.standings tr.is-us td:first-child { box-shadow: inset 4px 0 0 var(--g-600); }
.standings .pos { color: var(--g-700); font-weight: 600; }
.standings .neg { color: var(--loss); font-weight: 600; }
.standings--compact td.c-team { min-width: 0; }
.standings--compact td.c-team span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--muted); margin-top: 14px; }
.legend .form { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .hide-sm { display: none; } .standings { font-size: .85rem; } .standings td.c-team { min-width: 130px; } }

/* ---------- Actus ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; background: #fff; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card > img, .post-ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--g-700), var(--g-900)); }
.post-ph img { height: 60%; width: auto; opacity: .9; }
.post-body { padding: 12px 14px 16px; }
.post-body h3 { margin: 4px 0 0; font-size: 1.2rem; }
.post-date { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: capitalize; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } .post-card { flex-direction: row; } .post-card > img, .post-ph { width: 120px; aspect-ratio: 1; flex: 0 0 120px; } }

.club-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.club-side { display: flex; flex-direction: column; gap: 16px; }
.info-block h2 { font-size: 1.3rem; color: var(--g-800); border-bottom: 3px solid var(--g-100); padding-bottom: 8px; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.news:not(:has(img)) { grid-template-columns: 1fr; }
.news img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.news h3 a { color: inherit; text-decoration: none; }
.news h3 { font-size: 1.45rem; margin: 4px 0 6px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-weight: 600; font-size: .9rem; text-decoration: none; }
@media (max-width: 860px) { .club-layout { grid-template-columns: 1fr; } .news { grid-template-columns: 1fr; } }
.group-title { color: var(--g-900); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.group-title::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--g-300), transparent); border-radius: 3px; }
.club-main > .group-title:first-child { margin-top: 0; }
.prose { line-height: 1.65; }
.prose p { margin: 0 0 .8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 .8em; }
.prose > :last-child { margin-bottom: 0; }
.article h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--g-900); text-transform: none; }
.article-img { width: 100%; border-radius: 12px; margin: 10px 0 20px; }
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Effectif ---------- */
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.player-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; border: 1px solid #e6efe9; }
.player-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(5,59,33,.18); }
.pc-photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--g-600), var(--g-900)); overflow: hidden; }
.pc-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(3,38,21,.55)); }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.player-card:hover .pc-photo img { transform: scale(1.04); }
.pc-num { position: absolute; left: 10px; bottom: 6px; z-index: 1; font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pc-num--lg { font-size: 4.5rem; left: 16px; bottom: 10px; }
.pc-cap { position: absolute; right: 10px; top: 10px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--g-800); font-weight: 800; font-size: .8rem; }
.pc-info { padding: 10px 12px 14px; display: flex; flex-direction: column; line-height: 1.15; border-top: 4px solid var(--g-600); }
.pc-first { font-size: .85rem; color: var(--muted); }
.pc-last { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.pc-role { font-size: .78rem; color: var(--g-700); font-weight: 600; margin-top: 2px; }
@media (max-width: 520px) { .squad-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pc-last { font-size: 1.15rem; } }

.player-modal { border: 0; padding: 0; border-radius: 20px; width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.player-modal::backdrop { background: rgba(3,38,21,.7); backdrop-filter: blur(3px); }
.player-modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.pm-close { position: absolute; right: 12px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.player-detail { display: grid; grid-template-columns: 300px 1fr; gap: 0; padding: 0; overflow: hidden; }
.pd-photo { position: relative; background: linear-gradient(160deg, var(--g-600), var(--g-900)); min-height: 320px; }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pd-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(3,38,21,.6)); }
.pd-body { padding: 26px 28px; }
.pd-body h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .1em 0 .2em; color: var(--g-900); line-height: 1; }
.pd-body h1 span { display: block; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.facts div { background: var(--g-50); border-radius: 10px; padding: 8px 12px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--g-900); color: #fff; border-radius: 12px; padding: 12px 6px; margin-bottom: 18px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.stats span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--g-300); }
@media (max-width: 680px) {
  .player-detail { grid-template-columns: 1fr; }
  .pd-photo { min-height: 0; aspect-ratio: 4 / 4; }
  .pd-body { padding: 18px; }
}

/* ---------- Match & compo ---------- */
.match-hero { padding: 26px 0 36px; text-align: center; }
.match-hero .back { float: left; }
.mh-meta { clear: both; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--g-300); }
.mh-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; max-width: 760px; margin: 22px auto 16px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 3.5vw, 1.8rem); text-transform: uppercase; line-height: 1.05; }
.mh-score { display: flex; align-items: center; gap: 10px; font-family: var(--display); }
.mh-score b { font-size: clamp(3rem, 10vw, 5rem); line-height: 1; background: rgba(0,0,0,.25); border-radius: 12px; padding: 4px 18px; }
.mh-score i { font-style: normal; font-size: 2rem; color: var(--g-300); }
.mh-vs { font-size: 2.6rem; font-weight: 800; color: var(--g-300); }
.mh-when { text-transform: capitalize; font-size: 1.05rem; }
.mh-when span { color: #d7efe1; font-size: .95rem; text-transform: none; }
@media (max-width: 560px) { .badge--xl { --s: 64px; } .mh-teams { gap: 8px; } }

.lineup { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .lineup { grid-template-columns: 1fr; } }
.lineup-side { display: flex; flex-direction: column; gap: 14px; }
.lineup-box { background: var(--g-50); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.lineup-box h3 { font-size: 1.1rem; text-transform: uppercase; color: var(--g-800); }
.lineup-box p { margin: 0; }
.subs { list-style: none; margin: 0; padding: 0; }
.subs li a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.subs li:last-child a { border-bottom: 0; }
.sub-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--g-700); color: #fff; font-weight: 700; font-size: .8rem; flex: 0 0 28px; }
.notice { background: #fff4d6; color: #6b4a00; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }

.pitch {
  position: relative; width: 100%; aspect-ratio: 68 / 80; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #179b55 0 10%, #13894b 10% 20%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), inset 0 0 60px rgba(0,0,0,.25);
}
.pitch-lines span { position: absolute; border: 2px solid rgba(255,255,255,.75); }
.pl-box--bottom { left: 22%; right: 22%; bottom: -2px; height: 17%; }
.pl-box--top { left: 22%; right: 22%; top: -2px; height: 17%; }
.pl-circle { width: 30%; aspect-ratio: 1; left: 35%; top: -15%; border-radius: 50%; display: none; }
.pl-half { left: 0; right: 0; top: -2px; height: 0; border-width: 2px 0 0 0 !important; }
.pitch-player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; }
.pp-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; }
.pp-shirt { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.pp-shirt img { width: 100%; height: 100%; object-fit: cover; }
.pp-shirt b { font-family: var(--display); font-size: 1.4rem; color: var(--g-800); }
.pp-shirt--gk { border-color: #ffd23f; }
.pp-shirt--empty { background: rgba(255,255,255,.25); border-style: dashed; }
.pp-shirt--empty b { color: #fff; font-size: 1rem; }
.pp-cap { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: #ffd23f; color: #000; font-style: normal; font-size: .65rem; font-weight: 800; display: grid; place-items: center; }
.pp-name { margin-top: 4px; font-size: .78rem; font-weight: 700; background: rgba(3,38,21,.78); color: #fff; padding: 2px 7px; border-radius: 6px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .pp-shirt { width: 40px; height: 40px; } .pp-shirt b { font-size: 1.1rem; } .pp-name { font-size: .68rem; padding: 1px 5px; } .pitch-player { width: 72px; } }
.admin-shortcuts { margin-top: 18px; }

/* ---------- Photothèque ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.album-grid--small { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .album-grid--small { grid-template-columns: repeat(2, 1fr); } }
.album-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #e6efe9; transition: transform .15s; }
.album-card:hover { transform: translateY(-3px); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--g-100); display: grid; place-items: center; font-size: 2.4rem; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.album-count { position: absolute; right: 8px; bottom: 8px; background: rgba(3,38,21,.8); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.album-info { padding: 10px 14px 14px; display: flex; flex-direction: column; }
.album-info strong { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; line-height: 1.1; }
.album-info span { font-size: .82rem; color: var(--muted); text-transform: capitalize; }
.gallery { columns: 4 220px; column-gap: 12px; margin-top: 20px; }
.gallery-item { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2,20,11,.95); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 50px 0; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #e3f4ea; margin-top: 10px; text-align: center; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; height: 100%; }
.lb-close { position: absolute; top: 10px; right: 14px; height: auto !important; font-size: 2.4rem !important; z-index: 2; }
.lb-dl { position: absolute; bottom: 14px; right: 18px; color: #cfe9da; font-size: .85rem; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 40px 1fr 40px; } .lightbox button { font-size: 2.2rem; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--g-950); color: #cfe9da; padding: 34px 0 20px; font-size: .9rem; }
.site-footer::before { content: ""; display: block; height: 4px; margin-top: -34px; margin-bottom: 30px; background: repeating-linear-gradient(90deg, #fff 0 24px, var(--g-500) 24px 48px); }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { font-family: var(--display); font-size: 1.4rem; color: #fff; text-transform: uppercase; }
.footer-col div { margin-bottom: 4px; }
.footer-social { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-admin { color: var(--g-300) !important; font-size: .82rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 14px; font-size: .78rem; color: #8fb8a1; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Ajustements ---------- */
.post-ph img { width: 26%; height: auto; }
.nc-when, .mh-when, .mr-day, .post-date, .album-info span { text-transform: none; }
.nc-when::first-letter, .mh-when::first-letter, .mr-day::first-letter, .album-info span::first-letter { text-transform: uppercase; }
@media (max-width: 640px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats div { min-width: 0; padding: 8px 10px; }
  .hero-stats b { font-size: 1.6rem; }
  .mr-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
  .mr-teams { gap: 6px; }
  .mr-team { gap: 6px; }
  .badge--sm { --s: 28px; }
}
