:root {
  color-scheme: light;
  --green: #008a36;
  --forest: #063d22;
  --deep: #062b19;
  --site-backdrop: #073b23;
  --orange: #f47721;
  --white: #fff;
  --ink: #000;
  --muted: #18452e;
  --line: #103b26;
  --paper: #fff;
  --soft: #fff;
  --max: 1440px;
  --header-row: 79px;
  --header-divider: 3px;
  --header-space: calc(var(--header-row) + var(--header-divider));
  font-family: Arial, Helvetica, sans-serif;
  scrollbar-color: var(--orange) var(--deep);
  scroll-padding-top: var(--header-space);
  accent-color: var(--orange);
}

* { box-sizing: border-box; }
::selection { background: var(--orange); color: var(--ink); }
[hidden] { display: none !important; }
body {
  margin: 0;
  isolation: isolate;
  background-color: var(--site-backdrop);
  color: var(--ink);
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 31%, var(--forest) 31.15%, transparent 31.3% 56%, var(--forest) 56.15%, transparent 56.3%),
    linear-gradient(125deg, var(--site-backdrop) 20%, var(--deep) 50%, var(--forest) 82%);
  background-size: 140% 140%;
  background-position: 0 0;
}
h1, h2, p, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { appearance: none; font: inherit; cursor: pointer; }
option, optgroup { background-color: var(--white); color: var(--forest); }
select option:checked { background-color: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#main:focus, #page-title:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 12px;
  padding: 10px 15px;
  background: var(--white);
  transform: translateY(-160%);
  clip-path: inset(50%);
}
.skip-link:focus { transform: none; clip-path: none; }

.site-header { position: sticky; top: 0; z-index: 8; background: var(--deep); color: var(--white); border-bottom: var(--header-divider) solid var(--orange); }
.header-inner {
  max-width: var(--max);
  min-height: var(--header-row);
  padding: 0 32px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.masthead-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.masthead-title h1 { min-width: 0; overflow-wrap: anywhere; }
.page-back { position: relative; display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid var(--orange); border-radius: 5px; background: var(--deep); color: var(--white); }
.page-back:hover { background: var(--orange); color: var(--ink); }
.page-back::before { content: ""; width: 15px; height: 2px; background: currentColor; }
.page-back::after { content: ""; position: absolute; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(-3px) rotate(45deg); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.16rem; font-weight: 850; line-height: 1.05; letter-spacing: .015em; }
.logo { display: block; object-fit: contain; background: var(--white); }
.brand small { display: block; color: #fff; font-size: .78rem; font-weight: 650; margin-top: 5px; letter-spacing: 0; }
.header-ball { display: block; flex: 0 0 auto; line-height: 0; margin-inline: auto; }
.header-ball img { display: block; width: 42px; height: 42px; object-fit: contain; }
#nav { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 31px); }
#nav a { position: relative; padding: 12px 0; font-size: .92rem; font-weight: 650; white-space: nowrap; }
#nav a::after { content: ""; position: absolute; bottom: 7px; left: 0; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
#nav a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.site-header :focus-visible { outline-color: var(--orange); }
.menu-toggle { display: none; }

.site-layout {
  max-width: var(--max);
  min-height: 69vh;
  margin: auto;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 32px 44px;
}
.league-sidebar { align-self: start; position: sticky; top: calc(var(--header-space) + 22px); border: 1px solid var(--green); background: var(--deep); color: var(--white); border-radius: 7px; overflow: hidden; }
body[data-view="accueil"] .site-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body[data-view="accueil"] .league-sidebar { position: static; }
body[data-view="accueil"] #league-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
body[data-view="accueil"] .league-heading { display: none; }
body[data-view="accueil"] #league-nav a { justify-content: center; border-left: 0; border-bottom: 2px solid transparent; padding: 9px 8px; white-space: nowrap; }
body[data-view="accueil"] #league-nav a[aria-current] { border-bottom-color: var(--orange); }
#league-nav { display: grid; gap: 2px; padding: 0 5px 5px; }
.league-heading { display: grid; gap: 2px; padding: 13px 10px 10px; margin: 0 0 3px; border-bottom: 1px solid var(--green); color: var(--white); font-size: .92rem; }
.league-heading span { font-size: .79rem; }
#league-nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 9px; border-left: 2px solid transparent; border-radius: 4px; font-size: .86rem; font-weight: 650; }
#league-nav a:hover { background: var(--forest); border-color: var(--orange); }
#league-nav a[aria-current] { background: var(--orange); color: var(--ink); font-weight: 750; }
#league-nav a:focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }

.page-masthead {
  --touchline-inset: clamp(12px, 2vw, 28px);
  --touchline-runner: clamp(34px, 9vw, 96px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 186px;
  padding: 27px 32px;
  border-radius: 6px;
  background: var(--deep);
  color: var(--white);
}
.page-masthead::before, .page-masthead::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 2px;
}
.page-masthead::before {
  right: var(--touchline-inset);
  bottom: 5px;
  left: var(--touchline-inset);
  height: 1px;
  background: var(--white);
}
.page-masthead::after {
  bottom: 3px;
  left: var(--touchline-inset);
  width: var(--touchline-runner);
  height: 5px;
  background: var(--orange);
}
body[data-view="accueil"] .page-masthead { min-height: clamp(350px, 36vw, 525px); padding: clamp(20px, 4vw, 55px); }
.masthead-copy { z-index: 1; width: max-content; max-width: 100%; }
.masthead-copy p { color: var(--orange); font-size: .87rem; font-weight: 700; }
.page-masthead h1 { max-width: 14ch; margin-top: 5px; font-size: clamp(2rem, 5vw, 4.65rem); line-height: .99; letter-spacing: -.025em; font-weight: 700; }
body[data-view="accueil"] .page-masthead h1 { max-width: 18ch; }
.masthead-copy .federation-name { display: none; }
body[data-view="accueil"] .masthead-copy .federation-name { display: block; max-width: 37ch; margin-top: 9px; color: var(--white); font-size: clamp(1.05rem, 3vw, 1.65rem); line-height: 1.3; }
body:not([data-view="accueil"]) .page-masthead h1 { max-width: 24ch; font-size: clamp(2rem, 4.5vw, 3.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.action-primary, .action-secondary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 5px; font-size: .94rem; font-weight: 750; }
.action-primary { border-color: var(--white); background: var(--deep); color: var(--white); }
.action-primary:hover { background: var(--white); color: var(--deep); }
.action-secondary { background: var(--orange); color: var(--ink); }
.action-secondary:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.page-masthead :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }

.home-hero-image { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.home-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 3%, #062b19e8 24%, #062b1954 60%, #062b191a 100%), linear-gradient(0deg, #062b19bd, transparent 48%); }
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 42%; }

.sport-motion { display: none; }
body:is([data-view="competitions"], [data-view="matchs"], [data-view="resultats"], [data-view="classement"], [data-view="equipes"]) .page-masthead {
  grid-template-columns: minmax(0, 1fr) clamp(106px, 18vw, 234px);
  align-items: center;
  gap: 10px;
}
body:is([data-view="competitions"], [data-view="matchs"], [data-view="resultats"], [data-view="classement"], [data-view="equipes"]) .page-masthead .sport-motion {
  display: block;
  grid-area: 1 / 2;
}
.page-masthead .masthead-copy { grid-area: 1 / 1; }

.sport-field {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  border: 1px solid var(--white);
  border-radius: 3px;
  background-color: var(--forest);
  background-image: repeating-linear-gradient(90deg, transparent 0 18%, var(--deep) 18% 34%);
}
.sport-field::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: var(--white);
}
.sport-field::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19%;
  aspect-ratio: 1;
  border: 1px solid var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.sport-spot, .sport-ball {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.sport-spot { width: clamp(4px, 1vw, 9px); aspect-ratio: 1; background: var(--orange); }
.sport-spot-left { left: 17%; top: 72%; }
.sport-spot-center { left: 41%; top: 24%; }
.sport-spot-right { left: 66%; top: 72%; }
.sport-ball { left: 22%; top: 65%; width: clamp(7px, 1vw, 11px); aspect-ratio: 1; border: 1px solid var(--deep); background: var(--white); }
.sport-net {
  position: absolute;
  right: -1px;
  top: 29%;
  width: 9%;
  height: 42%;
  border: 1px solid var(--white);
  border-radius: 1px 3px 3px 1px;
  background: repeating-linear-gradient(90deg, var(--deep) 0 2px, var(--green) 2px 3px);
  transform-origin: left center;
}

.score-ticker { position: relative; }
.score-ticker .sport-motion--ticker {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  width: clamp(70px, 20vw, 102px);
}

@media (max-width: 610px) {
  body:is([data-view="competitions"], [data-view="matchs"], [data-view="resultats"], [data-view="classement"], [data-view="equipes"]) .page-masthead {
    grid-template-columns: minmax(0, 1fr) clamp(65px, 22vw, 112px);
    gap: 8px;
  }
  body:is([data-view="competitions"], [data-view="matchs"], [data-view="resultats"], [data-view="classement"], [data-view="equipes"]) .page-masthead h1 {
    font-size: clamp(1.5rem, 5.8vw, 2rem);
    overflow-wrap: anywhere;
  }
  .score-ticker .sport-motion--ticker { top: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-masthead::after { animation: touchline-run 6s ease-in-out infinite alternate; }
  .sport-ball { animation: sport-pass-and-shot 8s infinite; }
  .sport-net { animation: sport-net-reaction 8s infinite; }
  @keyframes touchline-run {
    to { left: calc(100% - var(--touchline-inset) - var(--touchline-runner)); }
  }
  @keyframes sport-pass-and-shot {
    0%, 15% { left: 22%; top: 65%; animation-timing-function: ease-in-out; }
    27%, 38% { left: 44%; top: 31%; animation-timing-function: ease-in-out; }
    50%, 59% { left: 70%; top: 65%; animation-timing-function: ease-in; }
    69% { left: 95%; top: 48%; }
    75%, 98% { left: 94%; top: 54%; animation-timing-function: step-end; }
    100% { left: 22%; top: 65%; }
  }
  @keyframes sport-net-reaction {
    0%, 68%, 83%, 100% { transform: scaleX(1); }
    71% { transform: scaleX(1.5); border-color: var(--orange); }
    75% { transform: scaleX(.92); border-color: var(--orange); }
    79% { transform: scaleX(1.12); border-color: var(--white); }
  }
}

.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.score-ticker { min-width: 0; margin-top: 12px; padding: 10px; border-radius: 5px; background: var(--deep); color: var(--white); }
.score-ticker > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 5px; color: var(--white); font-size: 1rem; font-weight: 800; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.score-ticker > a:focus-visible { outline-color: var(--orange); outline-offset: -2px; }
.score-ticker-window { min-width: 0; padding-top: 3px; }
.score-ticker-window ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 8px; padding: 0; list-style: none; }
.score-ticker-window li { min-width: 0; }
.score-ticker-window li a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; align-items: center; gap: 6px 8px; height: 100%; min-height: 90px; padding: 8px; border: 1px solid var(--green); border-radius: 4px; background: var(--forest); font-size: .83rem; font-weight: 700; line-height: 1.2; text-align: center; }
.score-ticker-window li a:hover { border-color: var(--orange); background: var(--deep); }
.score-ticker-window li a:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.score-ticker-window li span { align-self: center; overflow-wrap: anywhere; }
.score-ticker-window li span:first-child { grid-column: 1; grid-row: 2; }
.score-ticker-window li span:last-child { grid-column: 2; grid-row: 2; }
.score-ticker-window li strong { grid-column: 1 / -1; grid-row: 1; justify-self: center; min-width: 48px; padding: 4px 8px; border-radius: 3px; background: var(--orange); color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .score-ticker-window { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; padding-bottom: 5px; }
  .score-ticker-window ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(148px, 51%, 220px); }
  .score-ticker-window li { scroll-snap-align: start; }
}

.featured-match { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 2.4fr) auto; align-items: center; gap: 15px; margin-top: 12px; padding: 14px 16px; border-left: 4px solid var(--orange); }
.featured-info h2, .panel-head h2 { font-size: 1.12rem; line-height: 1.2; }
.featured-info p, .match-meta { color: var(--muted); font-size: .82rem; }
.featured-info p { margin-top: 4px; }
.featured-teams, .fixture { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.featured-teams > .club:first-child, .fixture > .fixture-team:first-child { justify-self: end; text-align: right; }
.featured-teams > .club:first-child .club-crest, .fixture > .fixture-team:first-child .club-crest { order: 1; }
.club { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: .91rem; font-weight: 700; }
.club-name { overflow-wrap: anywhere; }
.club-crest {
  --crest-size: 32px;
  display: grid;
  flex: none;
  width: var(--crest-size);
  height: calc(var(--crest-size) * 1.13);
  place-items: center;
  padding: 0 4px 2px;
  color: var(--white);
  font-size: calc(var(--crest-size) * .32);
  font-weight: 850;
  overflow: hidden;
}
.crest-shield { clip-path: polygon(4% 2%, 96% 2%, 89% 65%, 75% 82%, 50% 100%, 25% 82%, 11% 65%); padding-bottom: 5px; }
.crest-round { border-radius: 50%; height: var(--crest-size); }
.crest-hexagon { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.crest-dark { background: linear-gradient(135deg, var(--orange) 0 18%, var(--deep) 18% 82%, var(--orange) 82%); }
.crest-orange { background: linear-gradient(90deg, var(--deep) 0 16%, var(--orange) 16% 84%, var(--deep) 84%); color: var(--ink); }
.crest-green { background: linear-gradient(180deg, var(--white) 0 12%, #00682a 12% 86%, var(--orange) 86%); box-shadow: inset 0 0 0 1px var(--forest); }
.club-crest span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { min-width: 61px; padding: 6px 8px; background: var(--soft); border-bottom: 2px solid var(--orange); border-radius: 3px; text-align: center; white-space: nowrap; font-size: .88rem; font-variant-numeric: tabular-nums; }
.panel-link, .editorial-links a { color: var(--forest); font-size: .83rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.dashboard { margin-top: 20px; }
.competitions-panel { margin-top: 20px; overflow: hidden; }
.competition-picker { display: grid; grid-template-columns: auto minmax(0, 440px); align-items: center; gap: 10px 16px; margin-top: 10px; padding: 10px 13px; border-left: 3px solid var(--orange); border-radius: 4px; background: var(--white); color: var(--forest); font-weight: 750; }
.competition-picker select { min-width: 0; min-height: 40px; padding: 6px 25px 6px 8px; color: var(--forest); }
@media (max-width: 460px) { .competition-picker { grid-template-columns: minmax(0, 1fr); gap: 3px; } }
.competition-action { padding: 12px; }
.competition-card-heading { padding: 18px; border-bottom: 2px solid var(--orange); background: var(--forest); color: var(--white); }
.competition-card-heading p { margin: 0 0 4px; color: var(--orange); font-size: .84rem; font-weight: 700; }
.competition-card-heading h2 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.65rem); }
.competition-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.competition-stats > div { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.competition-stats > div + div { border-left: 1px solid var(--line); }
.competition-stats dt { color: var(--muted); font-size: .82rem; }
.competition-stats dd { margin: 0; color: var(--forest); font-size: 1.35rem; font-weight: 800; }
body:is([data-view="matchs"], [data-view="resultats"]) .page-masthead { min-height: 0; padding: 13px clamp(15px, 3vw, 27px); }
body:is([data-view="matchs"], [data-view="resultats"]) .page-masthead h1 { font-size: clamp(1.65rem, 4.5vw, 2.65rem); }
body:is([data-view="matchs"], [data-view="resultats"]) .dashboard { margin-top: 10px; }
body:is([data-view="matchs"], [data-view="resultats"]) #match-panel > .panel-head { display: none; }
.dashboard-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.dashboard-heading:has(#overview-title[hidden]) { justify-content: end; }
.dashboard-heading:not(:has(:not([hidden]))) { display: none; }
.dashboard-heading h2 { font-size: clamp(1.18rem, 2.25vw, 1.58rem); letter-spacing: -.025em; }
.dashboard-heading h2 { color: var(--white); }
.demo { display: block; margin-top: 9px; color: #fff; font-size: .81rem; }
body:is([data-view="federation"], [data-view="president"], [data-view="actualites"], [data-view="partenaires"]) .demo { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--green); margin-bottom: 12px; border-radius: 4px; }
.stats > div { display: flex; flex-direction: column-reverse; align-items: start; gap: 1px; padding: 10px 14px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .83rem; }
.stats dd { color: var(--forest); font-size: 1.43rem; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; align-items: start; }
body:not([data-view="accueil"]) .grid { grid-template-columns: minmax(0, 1fr); }
.panel-head { min-height: 59px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; padding: 2px; gap: 2px; background: var(--soft); border-radius: 4px; }
.tabs button { padding: 6px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--forest); font-size: .82rem; font-weight: 700; }
.tabs button[aria-pressed="true"] { background: var(--forest); color: var(--white); }
.match-controls { display: flex; flex-wrap: wrap; gap: 9px 14px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.match-controls label { display: grid; flex: 0 1 195px; min-width: 0; gap: 3px; color: var(--forest); font-size: .8rem; font-weight: 700; }
.mobile-filters { flex: 1 1 320px; min-width: 0; }
.mobile-filters > summary { display: none; }
.extra-match-filters { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.competition-picker select, .match-controls select { appearance: none; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(45deg, transparent 50%, var(--forest) 50%) right 13px center / 5px 5px no-repeat, linear-gradient(135deg, var(--forest) 50%, transparent 50%) right 8px center / 5px 5px no-repeat, var(--white); font: inherit; }
.match-controls select { min-height: 38px; padding: 5px 25px 5px 7px; color: var(--ink); }
.filter-reset { align-self: end; min-height: 38px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--forest); font-size: .86rem; font-weight: 700; }
.filter-reset:disabled { color: var(--muted); background: var(--paper); cursor: default; }
.filter-reset:not(:disabled):hover { border-color: var(--green); background: var(--soft); }
.match-feedback { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px; }
.match-count { color: var(--muted); font-size: .82rem; }
.match-feedback .filter-reset { min-height: 32px; }
.result-summary { margin: 0 14px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 4px; background: var(--paper); }
.result-summary > div { min-width: 0; padding: 8px 11px; }
.result-summary > div + div { border-left: 1px solid var(--line); }
.result-summary dt { color: var(--muted); font-size: .78rem; }
.result-summary dd { color: var(--deep); font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 800; font-variant-numeric: tabular-nums; }
#fixtures { padding: 10px 14px 14px; }
.match-round + .match-round { margin-top: 16px; }
.match-round h3 { margin: 0 0 8px; padding: 5px 9px; border-left: 3px solid var(--orange); background: var(--forest); color: var(--white); font-size: .89rem; }
.round-matches { display: grid; align-items: start; gap: 8px; }
.match { min-width: 0; padding: 8px 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.match-meta { display: flex; align-items: center; justify-content: space-between; gap: 2px 8px; margin-bottom: 9px; }
.match-status { padding: 2px 6px; border-radius: 3px; background: var(--soft); color: var(--forest); font-weight: 650; white-space: nowrap; }
.fixture-team { min-width: 0; }
.fixture-winner .club-name { color: var(--forest); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.match-complete .score { min-width: 64px; background: var(--forest); color: var(--white); font-size: clamp(.95rem, 2.6vw, 1.17rem); }
.match-empty { padding: 16px 0; color: var(--muted); }
.match:focus { outline: 2px solid var(--orange); outline-offset: 1px; scroll-margin-top: 12px; }
.rank-unavailable { margin: 0; padding: 14px; color: var(--forest); }
.fixture-details { margin-top: 10px; border-top: 1px solid var(--line); }
.fixture-details summary { padding: 8px 0 2px; color: var(--forest); cursor: pointer; font-size: .85rem; font-weight: 750; }
.fixture-details table { width: 100%; table-layout: fixed; margin-top: 7px; text-align: center; font-size: .8rem; }
.fixture-details caption { margin-bottom: 4px; color: var(--muted); font-size: .78rem; }
.fixture-details th, .fixture-details td { padding: 5px 3px; overflow-wrap: anywhere; }
.fixture-details .form-list { flex-wrap: wrap; justify-content: center; }
@media (min-width: 1100px) {
  body:is([data-view="resultats"], [data-view="matchs"]) .round-matches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.table-wrap { overflow: auto; }
.rank-scroll-note, .rank-toggle { display: none; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: center; font-size: .87rem; font-variant-numeric: tabular-nums; }
table th, table td { padding: 8px clamp(5px, 1vw, 13px); }
thead { background: var(--soft); color: var(--forest); }
thead th { white-space: nowrap; }
thead th:nth-child(2), tbody th { text-align: left; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--paper); }
tbody .rank-leader { background: var(--soft); }
.rank-leader td:first-child { box-shadow: inset 3px 0 var(--orange); font-weight: 800; }
td:last-child { color: var(--forest); font-size: .94rem; }
.form-list { display: inline-flex; gap: 3px; white-space: nowrap; vertical-align: middle; }
.form-list span { display: grid; place-items: center; min-width: 20px; height: 20px; background: var(--soft); color: var(--forest); border-radius: 3px; font-size: .69rem; font-weight: 750; }
.form-list [data-outcome="V"] { background: var(--forest); color: var(--white); }
.form-list [data-outcome="D"] { background: var(--orange); color: var(--ink); }
.form-empty { color: var(--muted); }
body[data-view="accueil"] .rank-extra, body:not([data-view="accueil"]) .rank-full { display: none; }
abbr[title] { text-underline-offset: 3px; }

.analysis-panel { margin-top: 14px; border-top: 3px solid var(--green); }
.panel-note { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.analysis-grid > div { padding: 12px 14px; }
.analysis-grid > div + div { border-left: 1px solid var(--line); }
.analysis-grid dt { font-size: .82rem; font-weight: 750; }
.analysis-grid dd { display: grid; margin-top: 3px; }
.analysis-grid strong { color: var(--forest); font-size: clamp(1.12rem, 2vw, 1.45rem); font-variant-numeric: tabular-nums; }
.analysis-grid dd span { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
#team-panel { background: transparent; border: 0; }
.teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.teams li { display: grid; align-content: start; min-width: 0; gap: 12px; padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 5px; background: var(--white); }
.team-head { display: flex; align-items: center; gap: 10px; }
.team-head .club-crest { --crest-size: 42px; }
.team-head h2 { font-size: 1.01rem; line-height: 1.25; overflow-wrap: anywhere; }
.team-head p, .team-form { color: var(--muted); font-size: .8rem; }
.team-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px 0; background: var(--soft); }
.team-stats > div { text-align: center; }
.team-stats > div + div { border-left: 1px solid var(--line); }
.team-stats dt { color: var(--muted); font-size: .76rem; }
.team-stats dd { color: var(--forest); font-weight: 800; }
.team-form { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; }
.editorial-panel { margin-top: 14px; padding: 21px; border-top: 3px solid var(--green); }
.editorial-panel h2 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.editorial-panel p, .editorial-links { margin-top: 9px; color: var(--muted); }
.editorial-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.bureau-portraits figcaption { display: grid; gap: 3px; padding: 10px; }
.bureau-portraits strong { font-size: clamp(.9rem, 2vw, 1.1rem); }
.bureau-description { color: var(--forest); font-size: .85rem; }
.bureau-role, .bureau-roles dt { color: var(--muted); font-size: .83rem; font-weight: 700; }
.bureau-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 12px 0 0; }
.bureau-roles > div { min-width: 0; padding: 10px; border-left: 3px solid var(--green); background: var(--soft); }
.bureau-roles dd { margin-top: 3px; color: var(--forest); font-weight: 750; overflow-wrap: anywhere; }
.presidency-article { padding: clamp(14px, 4vw, 35px); }
.article-header, .article-text, .presidency-article .editorial-links { max-width: 72ch; margin-inline: auto; }
.article-header { padding-bottom: 14px; border-bottom: 2px solid var(--orange); }
.article-header .article-context, .article-header .article-byline { color: var(--forest); font-size: .88rem; font-weight: 700; }
.article-header h2 { margin-top: 8px; font-size: clamp(1.18rem, 3.1vw, 1.95rem); line-height: 1.2; }
.article-text { margin-top: 17px; }
.article-text p { color: var(--ink); line-height: 1.72; }
.presidency-article .editorial-links { margin-top: 18px; }

.photo-group { margin-top: 23px; }
.photo-group h3 { margin: 0 0 10px; font-size: 1rem; color: var(--forest); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.photo-grid-members, .photo-grid-delegation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid figure { display: grid; align-content: start; margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.photo-grid figcaption { padding: 8px 10px; color: var(--forest); font-size: .85rem; font-weight: 650; }
.photo-open { width: 100%; display: block; padding: 0; border: 0; border-radius: 4px 4px 0 0; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.photo-open img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-grid-delegation figure:last-child img { object-position: center 59%; }
.photo-dialog { max-width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 10px; border: 0; border-radius: 6px; background: var(--deep); color: var(--white); }
.photo-dialog::backdrop { background: #03170edb; }
.photo-dialog-actions { display: flex; justify-content: end; margin-bottom: 7px; }
.photo-dialog button { min-height: 36px; padding: 4px 11px; border: 0; border-radius: 4px; background: var(--white); color: var(--forest); font-weight: 750; }
.photo-dialog figure { margin: 0; }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 114px); margin: auto; object-fit: contain; }
.photo-dialog figcaption { margin-top: 7px; font-size: .9rem; }
@media (max-width: 680px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #federation-panel, #actualites-panel { padding: 13px; }
}

.partners-panel { margin-top: clamp(18px, 3vw, 30px); overflow: hidden; border-top: 3px solid var(--green); }
.partners-panel .panel-head { padding: 14px clamp(12px, 2.4vw, 25px); }
.partners-panel .panel-head h2 { color: var(--forest); font-size: clamp(1.05rem, 2.1vw, 1.35rem); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(8px, 1.5vw, 16px);
  padding: clamp(10px, 2.4vw, 25px);
  background: var(--paper);
  list-style: none;
}
.partners-grid li {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--forest);
}
.partner-logo {
  display: grid;
  place-items: center;
  height: clamp(86px, 11vw, 132px);
  padding: clamp(8px, 1.2vw, 15px);
  overflow: hidden;
}
.partner-logo img { display: block; width: 100%; height: 100%; max-width: 145px; min-height: 0; object-fit: contain; }
.partners-grid li > span {
  display: grid;
  place-content: center;
  padding: 8px 6px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow-wrap: anywhere;
  text-align: center;
  font-size: clamp(.79rem, 1.35vw, .92rem);
  font-weight: 750;
  line-height: 1.25;
}
@media (max-width: 610px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-news { margin-top: 25px; }
.home-news-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.home-news-heading h2 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
.home-news-heading .panel-link { color: #fff; }
.home-news-heading .panel-link:focus-visible { outline-color: var(--orange); }
.footer-nav ul { list-style: none; padding: 0; }

.site-footer { background: var(--deep); color: var(--white); }
.footer-inner { max-width: var(--max); margin: auto; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(250px, 1fr); gap: 26px; padding: 28px 32px; }
.footer-brand a { font-size: 1.15rem; font-weight: 850; }
.footer-brand p { max-width: 36ch; margin-top: 6px; }
.footer-brand p, .footer-nav a, .footer-season { color: #fff; font-size: .89rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer-nav h2 { font-size: .97rem; margin-bottom: 6px; }
.footer-nav a { display: inline-block; padding: 3px 0; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-season { border-top: 1px solid var(--green); text-align: center; padding: 9px 15px; }

@media (max-width: 1100px) {
  .site-layout { grid-template-columns: 154px minmax(0, 1fr); padding-inline: 22px; gap: 15px; }
  .header-inner, .footer-inner { padding-inline: 22px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-row: 67px; --mobile-nav-space: calc(70px + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: var(--mobile-nav-space); }
  body { padding-bottom: var(--mobile-nav-space); }
  .header-inner { position: relative; gap: 10px; }
  .header-ball img { width: 36px; height: 36px; }
  .menu-toggle { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--forest); font-weight: 700; }
  .menu-toggle[aria-expanded="true"] { background: var(--soft); }
  #nav { display: none; position: absolute; z-index: 5; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-space) - var(--mobile-nav-space)); overflow-y: auto; background: var(--white); padding: 8px 22px 15px; border-bottom: 2px solid var(--orange); }
  #nav.open { display: grid; align-content: start; gap: 0; }
  #nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--forest); }
  #nav a::after { bottom: 3px; }
  .site-layout { grid-template-columns: minmax(0, 1fr); padding-top: 14px; gap: 12px; }
  body .site-layout .league-sidebar {
    position: fixed;
    z-index: 6;
    inset: auto 0 0;
    padding: 5px max(5px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(5px, env(safe-area-inset-left, 0px));
    background: var(--deep);
    border: 0;
    border-top: 2px solid var(--orange);
    border-radius: 0;
  }
  body .league-sidebar #league-nav {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, .89fr) minmax(0, 1.08fr) minmax(0, .81fr);
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
  }
  .league-heading { display: none; }
  body .league-sidebar #league-nav a {
    display: grid;
    min-height: 54px;
    align-content: center;
    place-items: center;
    gap: 4px;
    padding: 4px 1px;
    border: 0;
    color: var(--white);
    border-radius: 6px;
    font-size: clamp(.76rem, 2.65vw, .92rem);
    line-height: 1.15;
    text-align: center;
  }
  body .league-sidebar #league-nav a:hover { background: var(--forest); }
  body .league-sidebar #league-nav a[aria-current] { background: var(--orange); color: var(--ink); }
  body .league-sidebar #league-nav a:focus-visible { outline-color: var(--white); }
}
@media (max-width: 610px) {
  .site-layout, .header-inner, .footer-inner { padding-inline: 13px; }
  .brand { gap: 8px; }
  .brand small { font-size: .72rem; }
  .page-masthead { min-height: 140px; padding: 16px; }
  body[data-view="accueil"] .page-masthead { min-height: 340px; }
  .hero-photo { object-position: 59% 24%; }
  .home-hero-image::after { background: linear-gradient(0deg, var(--deep) 8%, #062b19e5 27%, #062b1940 67%, #062b1926 100%); }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; }
  .hero-actions a { padding: 7px 8px; text-align: center; }
  .featured-match { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .featured-teams { grid-column: 1 / -1; grid-row: 2; }
  .featured-match .panel-link { text-align: right; }
  .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
  .match-controls select { min-height: 44px; font-size: .88rem; }
  .mobile-filters[open] { grid-column: 1 / -1; }
  .mobile-filters > summary { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; min-height: 44px; margin-left: auto; padding: 6px 8px; border: 1px solid var(--forest); border-radius: 4px; background: var(--white); color: var(--forest); font-size: .82rem; font-weight: 750; cursor: pointer; list-style: none; white-space: nowrap; }
  .mobile-filters > summary::-webkit-details-marker { display: none; }
  .mobile-filters > summary::after { content: "+"; color: var(--forest); }
  .mobile-filters[open] > summary { border-color: var(--orange); background: var(--forest); color: var(--white); }
  .mobile-filters[open] > summary::after { content: "−"; color: var(--white); }
  .extra-match-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 8px; margin-top: 8px; }
  .filter-reset { justify-self: start; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 17px; }
}
@media (max-width: 530px) {
  body[data-view="classement"] .rank-toggle { display: inline-flex; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: var(--forest); font-size: .82rem; font-weight: 750; }
  #rank-panel:not(.rank-expanded) :is(.rank-extra, .rank-detail) { display: none; }
  body[data-view="classement"] .rank-expanded .rank-scroll-note { display: block; padding: 7px 12px; color: var(--muted); font-size: .78rem; }
  body[data-view="classement"] .rank-expanded table { min-width: 510px; table-layout: fixed; }
  body[data-view="classement"] .rank-expanded :is(th, td):is(:first-child, :nth-child(2), :last-child) { position: sticky; z-index: 1; background: var(--soft); }
  body[data-view="classement"] .rank-expanded :is(th, td):first-child { left: 0; width: 27px; }
  body[data-view="classement"] .rank-expanded :is(th, td):nth-child(2) { left: 27px; width: 130px; box-shadow: 1px 0 var(--line); }
  body[data-view="classement"] .rank-expanded :is(th, td):last-child { right: 0; width: 38px; box-shadow: -1px 0 var(--line); }
  body[data-view="classement"] .rank-expanded th:nth-last-child(2) { width: 128px; }
}
@media (max-width: 400px) {
  .club { font-size: .82rem; gap: 4px; }
  .club-crest { --crest-size: 24px; }
  .fixture .club, .featured-teams .club { flex-direction: column; text-align: center; }
  .fixture .fixture-team, .featured-teams > .club:first-child { justify-self: center; text-align: center; }
  .fixture > .fixture-team:first-child .club-crest, .featured-teams > .club:first-child .club-crest { order: initial; }
  .stats > div { padding-inline: 6px; }
  .stats dt { font-size: .74rem; }
  .teams { grid-template-columns: 1fr; }
  .analysis-grid > div { padding-inline: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .tabs button { transition: color 140ms ease, background-color 140ms ease; }
}

.home-news-feature,
.home-news-entry {
  display: grid;
  overflow: hidden;
  border-radius: 5px;
  background: var(--white);
  color: var(--deep);
}

.home-news-feature {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.home-news-image {
  position: relative;
  align-self: stretch;
  min-height: 96px;
  background: var(--forest);
}

.home-news-feature .home-news-image { min-height: clamp(240px, 28vw, 360px); }

.home-news-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-feature img { object-position: center 30%; }

.home-news-feature-copy {
  align-self: center;
  padding: clamp(20px, 4vw, 42px);
}

.home-news-feature-copy time {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.home-news-feature-copy h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.home-news-feature-copy p { color: var(--muted); }

.home-news-read {
  display: inline-block;
  margin-top: 17px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--orange);
  font-size: .9rem;
  font-weight: 750;
}

.home-news-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.home-news-entry {
  grid-template-columns: minmax(96px, .55fr) minmax(0, 1fr);
  align-items: center;
}

.home-news-entry h3 {
  margin: 0;
  padding: 12px;
  font-size: clamp(.86rem, 1.5vw, 1.04rem);
  line-height: 1.25;
}

.home-news-feature:focus-visible,
.home-news-entry:focus-visible {
  outline-color: var(--orange);
}

.home-news-feature:hover h3,
.home-news-entry:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

@media (max-width: 610px) {
  .home-news-feature { grid-template-columns: minmax(0, 1fr); }
  .home-news-feature .home-news-image { min-height: 0; aspect-ratio: 2 / 1; }
  .home-news-entry { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .home-news-entry .home-news-image { min-height: 0; aspect-ratio: 3 / 2; }
}


body:is([data-view="federation"], [data-view="actualites"]) .page-masthead {
  min-height: 0;
  padding: clamp(16px, 3vw, 30px);
  border-bottom: 2px solid var(--orange);
  animation: none;
}

body:is([data-view="federation"], [data-view="actualites"]) .page-masthead h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}


:is(#federation-panel, #actualites-panel) {
  padding: clamp(14px, 3vw, 30px);
  border-top-width: 1px;
  animation: none;
}

.editorial-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.editorial-heading h2 {
  max-width: 32ch;
  color: var(--deep);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.editorial-heading .editorial-links { gap: 7px 19px; margin-top: 12px; }
.editorial-heading .editorial-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration-color: var(--orange);
}

:is(#federation-panel, #actualites-panel) .photo-group { margin-top: 24px; }
:is(#federation-panel, #actualites-panel) .photo-group h3 {
  padding-left: 9px;
  border-left: 3px solid var(--orange);
  margin-bottom: 12px;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

:is(#federation-panel, #actualites-panel) .photo-grid {
  gap: clamp(9px, 2vw, 18px);
}

:is(#federation-panel, #actualites-panel) .photo-grid figure {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

:is(#federation-panel, #actualites-panel) .photo-open {
  border-radius: 3px;
  background: var(--deep);
}

:is(#federation-panel, #actualites-panel) .photo-open img { transition: none; }
:is(#federation-panel, #actualites-panel) .photo-open:hover img { transform: none; }
:is(#federation-panel, #actualites-panel) .photo-grid figcaption {
  padding: 8px 0 10px;
  color: var(--ink);
}

#federation-panel .bureau-portraits img { object-position: center 36%; }
#federation-panel .bureau-portraits strong { line-height: 1.3; }
#federation-panel .bureau-roles { margin-top: 16px; }
#federation-panel .bureau-roles > div { padding-block: 8px; border-left-color: var(--orange); }

@media (max-width: 420px) {
  :is(#federation-panel, #actualites-panel) .photo-group { margin-top: 19px; }
}


@media (max-width: 350px) {
  :root { --mobile-nav-space: calc(106px + env(safe-area-inset-bottom, 0px)); }
  body .league-sidebar #league-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body .league-sidebar #league-nav a { grid-column: span 2; min-height: 44px; font-size: .82rem; }
  body .league-sidebar #league-nav a:nth-last-child(-n+2) { grid-column: span 3; }
}

/* ===========================================================================
   Sous-menus, actualités, FENIMADA TV et blocs ajoutés par l'administration
   =========================================================================== */

.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.page-subnav a {
  padding: 7px 14px;
  border: 2px solid var(--forest);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.page-subnav a:hover { background: var(--forest); color: var(--white); }
.page-subnav a[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.site-error {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 6px solid var(--orange);
  border-radius: 6px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 700;
}

/* --- Liste d'actualités --------------------------------------------------- */
.news-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 18px;
}
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid var(--forest);
  border-radius: 10px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.news-card:hover { border-color: var(--orange); }
.news-card-image { display: block; aspect-ratio: 16 / 10; background: var(--forest); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-copy { padding: 14px 16px 18px; }
.news-card-copy time { display: block; font-size: .8rem; font-weight: 700; color: var(--green); }
.news-card-copy h3 { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.3; }
.news-card-copy p { margin: 8px 0 0; font-size: .92rem; color: var(--muted); }

/* --- FENIMADA TV ---------------------------------------------------------- */
.home-tv { margin-bottom: clamp(20px, 3vw, 34px); }

.tv-intro { margin-bottom: 20px; }
.tv-tagline { margin: 0; font-weight: 700; color: var(--green); }
.tv-intro p { margin: 6px 0 0; max-width: 70ch; }
.tv-subscribe { display: inline-block; margin-top: 14px; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--deep);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tv-featured {
  display: grid;
  gap: 20px;
  margin-bottom: 26px;
  border: 3px solid var(--forest);
  border-radius: 12px;
  padding: 16px;
  background: var(--paper);
}
@media (min-width: 860px) {
  .tv-featured { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.tv-featured-copy h3 { margin: 6px 0 4px; font-size: 1.2rem; line-height: 1.3; }
.tv-kicker {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.tv-featured-copy time { font-size: .85rem; font-weight: 700; color: var(--green); }
.tv-description { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }

.video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.video-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--forest);
  border-radius: 10px;
  background: var(--paper);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.video-card:hover { border-color: var(--orange); }
.video-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--deep); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(6, 43, 25, .88);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
}
.video-play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 17px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  transform: translateX(3px);
}
.video-card:hover .video-play { background: var(--white); }
.video-copy { display: block; padding: 12px 14px 16px; }
.video-copy strong { display: block; font-size: .98rem; line-height: 1.32; }
.video-copy time { display: block; margin-top: 5px; font-size: .8rem; font-weight: 700; color: var(--green); }

.video-dialog {
  width: min(960px, 94vw);
  padding: 14px;
  border: 3px solid var(--forest);
  border-radius: 12px;
  background: var(--paper);
}
.video-dialog::backdrop { background: rgba(6, 43, 25, .78); }
.video-dialog p { margin: 12px 2px 2px; font-weight: 700; }

/* --- Blocs intégrés ------------------------------------------------------- */
.embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--deep);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.html-block { margin: 16px 0; }
.block-subtitle { margin: 2px 0 10px; color: var(--muted); }
