.rencontres { padding-block: 2rem 4rem; color: #17253f; }
.rencontres-header { border-bottom: 3px solid #b62944; padding: .8rem 0 1rem; }
.rencontres-header > a { color: #8f2036; font-weight: 750; }
.rencontres-header h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.02; margin: .5rem 0 0; }
.rencontres h2 { color: #842039; margin-top: 2rem; }
.rencontres a:focus-visible, .rencontres select:focus-visible { outline: 3px solid #9b2c43; outline-offset: 3px; }
.rencontres-tabs, .rencontres-selectors, .rencontres-alphabet, .rencontres-squad { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.1rem; }
.rencontres-tabs a, .rencontres-selectors label, .rencontres-alphabet a, .rencontres-squad span { background: #e9edf4; padding: .55rem .75rem; border-radius: .45rem; color: #17253f; font-weight: 700; }
.rencontres-tabs a[aria-current], .rencontres-tabs a:hover { background: #86223a; color: #fff; }
.rencontres-grid, .rencontres-rounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem,100%), 1fr)); gap: .7rem; }
.rencontres-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.rencontres-season, .rencontres-round { border: 1px solid #dae0ea; border-radius: .7rem; padding: .8rem; background: #fff; }
.rencontres-season { display: grid; place-content: center; text-align: center; gap: .15rem; min-height: 5.6rem; color: #17253f; text-decoration: none; }
.rencontres-season small { color: #4b566c; }
.rencontres-season:hover { border-color: #b62944; background: #fff0f2; }
.rencontres-title-season { border-color: #be964a; }
.rencontres-trophy { font-size: 1.5rem; }
.rencontres-rounds { grid-template-columns: repeat(auto-fit, minmax(min(16rem,100%), 1fr)); }
.rencontres-round h3 { margin: 0 0 .55rem; color: #842039; font-size: 1rem; }
.rencontres-round ul, .rencontres-club-list { padding: 0; margin: 0; list-style: none; }
.rencontres-round li + li { border-top: 1px solid #e9edf4; }
.rencontres-round li { padding: .28rem 0; }
.rencontres-table { overflow: auto; margin-bottom: 1.4rem; background: white; border: 1px solid #dae0ea; border-radius: .6rem; }
.rencontres table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.rencontres th, .rencontres td { padding: .4rem .65rem; white-space: nowrap; text-align: right; border-bottom: 1px solid #e2e7ef; }
.rencontres thead th { background: #182740; color: white; }
.rencontres tbody tr:nth-child(even) { background: #f3f5f9; }
.rencontres th[scope=row], .rencontres .rencontres-left { text-align: left; }
.rencontres .rencontres-lille { color: #8a1730; font-weight: 800; background: #fce8ed !important; }
.rencontres-selectors select { display: block; margin-top: .35rem; max-width: 100%; }
.rencontres-club-group { display: grid; grid-template-columns: 3rem 1fr; align-items: stretch; gap: .7rem; margin-bottom: .7rem; background: #eef1f7; border-radius: .6rem; }
.rencontres-club-group h2 { font-size: 1.35rem; margin: 0; display: grid; place-items: center; background: #dbe3ef; border-radius: .6rem 0 0 .6rem; }
.rencontres-club-list { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .65rem .8rem; }
.rencontres-club-list a { display: flex; align-items: center; min-height: 2rem; gap: .4rem; font-weight: 700; }
.rencontres-club-list img { width: 1.85rem; height: 1.85rem; object-fit: contain; }
.rencontres-squad span { border-radius: 99px; background: #e7eef9; }
.rencontres-matrix th[scope=row] { position: sticky; left: 0; background: #eef1f7; }
.rencontres-matrix td { text-align: center; }
.rencontres-present { color: #087144; font-weight: 800; }
.rencontres-discipline { padding: 0; list-style: none; }
.rencontres-discipline li { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem; background: #eef1f7; gap: .6rem; }
.rencontres-discipline li:nth-child(even) { background: white; }
.rencontres-card { width: .65em; height: .9em; transform: rotate(-12deg); border-radius: 2px; background: #edce24; display: inline-block; vertical-align: -.05em; margin-inline: .14em; border: 1px solid #0003; }
.rencontres-card.red { background: #c82943; }
.rencontres-scoreboard { background: #17253f; color: white; border-radius: .7rem; padding: 1.2rem; text-align: center; margin: 1rem 0; }
.rencontres-scoreboard h2 { color: white; margin: .4rem 0; }
.rencontres-note { margin-block: 1.25rem; color: #485269; }
@media(max-width: 760px) { .rencontres-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width: 370px) { .rencontres-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.rencontres-library .rencontres-rounds {
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
}
.rencontres-library .rencontres-round small {
  display: block;
  color: #485269;
}

.rencontres-club-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: .45rem .8rem;
  padding-block: .8rem;
}
.rencontres-club-list a { min-height: 2.7rem; }
.rencontres-club-logo.rencontres-club-logo-l2 {
  background: #263551;
  padding: .18rem;
  border-radius: .35rem;
}
.rencontres-club-group { grid-template-columns: 3rem minmax(0,1fr) auto; }
.rencontres-top { align-self: end; padding: .45rem .6rem; font-size: .8rem; white-space: nowrap; }
.rencontres-back { display: inline-block; padding: .55rem .8rem; border-radius: .45rem; background: #e9edf4; color: #17253f; }
.rencontres-club-identity { display: flex; align-items: center; gap: .65rem; font-weight: 750; }
.rencontres-club-identity img { width: 3.2rem; height: 3.2rem; object-fit: contain; }
.rencontres-club-identity small { color: #485269; }
.rencontres-squad .rencontres-position-G { background: #fcf0d3; }
.rencontres-squad .rencontres-position-D { background: #e3eefb; }
.rencontres-squad .rencontres-position-M { background: #e4f3e9; }
.rencontres-squad .rencontres-position-A { background: #f9e7ed; }

.rencontres-league-rounds { grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.rencontres-league-rounds .rencontres-round { height: 100%; }
.rencontres-league-rounds a { display: block; padding: .14rem 0; text-decoration: none; }
.rencontres-league-rounds a:hover { text-decoration: underline; }
.rencontres-league-rounds section { scroll-margin-top: 1rem; }
.rencontres-match-nav, .rencontres-match-nav span, .rencontres-match-facts { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.rencontres-match-nav { justify-content: space-between; }
.rencontres-match-facts { justify-content: center; }
.rencontres-match-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.rencontres-match-score > div { display: grid; justify-items: center; gap: .35rem; }
.rencontres-match-score img { width: clamp(2.5rem, 8vw, 6rem); height: clamp(2.5rem, 8vw, 6rem); object-fit: contain; padding: .25rem; background: #fff; border-radius: .65rem; }
.rencontres-match-digits { font-size: clamp(1.3rem, 5vw, 3.15rem); line-height: 1; white-space: nowrap; }
.rencontres-match-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rencontres-match-team { min-width: 0; padding: .8rem; border: 1px solid #dae0ea; border-radius: .65rem; background: #fff; }
.rencontres-match-team h2 { margin-top: .4rem; }
.rencontres-match-events, .rencontres-lineup { padding: 0; list-style: none; }
.rencontres-match-events li, .rencontres-lineup li { display: flex; align-items: center; gap: .45rem; margin-bottom: .24rem; }
.rencontres-match-player { flex: 1; border-radius: .3rem; background: #f0f2f7; padding: .32rem .5rem; }
.rencontres-player-goal { background: #fcf0d3; }
.rencontres-player-def { background: #e3eefb; }
.rencontres-player-mil { background: #e4f3e9; }
.rencontres-player-att { background: #f9e7ed; }
.rencontres-event-meta { flex: 0 0 7.7rem; font-size: .8rem; }
@media(max-width: 650px) { .rencontres-match-teams { grid-template-columns: 1fr; } }
.rencontres-match-score .rencontres-league2-crest { background: #263551; }

.rn-cup-intro { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; }
.rn-cup-intro img { width: 4rem; height: 5rem; object-fit: contain; background: #fff; border-radius: .5rem; }
.rn-cup-intro h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.9rem); }
.rn-cup-intro p { margin: .3rem 0 0; }
.rn-cup-picker { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-weight: 750; margin-block: 1.5rem; }
.rn-cup-picker select { font: inherit; color: inherit; padding: .45rem .6rem; border: 1px solid #b8c2d0; border-radius: .45rem; background: white; }
.rn-cup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.rn-cup-season, .rn-cup-match { background: white; border: 1px solid #d6dce8; border-radius: .65rem; }
.rn-cup-round, .rn-cup-season { scroll-margin-top: 1rem; }
.rn-cup-round h2 { border-bottom: 1px solid #d6dce8; padding-bottom: .55rem; }
.rn-cup-season h3 { display: flex; justify-content: space-between; background: #17253f; color: white; margin: 0; border-radius: .6rem .6rem 0 0; padding: .65rem .75rem; }
.rn-cup-season ul { margin: 0; list-style: none; padding: .1rem .65rem; }
.rn-cup-season li { padding-block: .6rem; }
.rn-cup-season li + li { border-top: 1px solid #e9edf4; }
.rn-cup-season li > span { display: block; margin-bottom: .2rem; font-size: .84rem; font-weight: 750; }
.rn-cup-season p { margin: .65rem; }
.rn-cup-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .4rem; padding: .75rem .55rem; text-align: center; text-decoration: none; color: #17253f; overflow-wrap: anywhere; }
.rn-cup-match:hover { border-color: #a62c47; background: #fff3f5; }
.rn-cup-lille { border-left: .24rem solid #b62944; }
.rn-cup-team { display: grid; justify-items: center; gap: .3rem; font-weight: 700; line-height: 1.2; }
.rn-cup-match img, .rn-cup-detail img { display: block; width: 2.75rem; height: 2.75rem; object-fit: contain; }
.rn-cup-score { align-self: center; background: #e9edf4; border-radius: .35rem; padding: .2rem .3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rn-cup-match small { grid-column: 1 / -1; color: #485269; }
.rn-cup-initials { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .45rem; background: #edf0f6; }
.rn-cup-season .rn-cup-match { border: 0; padding: .3rem .15rem; }
.rn-cup-detail { background: #17253f; color: #fff; padding: 1.1rem; border-radius: .7rem; text-align: center; }
.rn-cup-detail h2 { color: #fff; margin: 0 0 1rem; }
.rn-cup-detail a { color: #fff; }
.rn-cup-detail-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; }
.rn-cup-detail-score div { display: grid; justify-items: center; gap: .45rem; overflow-wrap: anywhere; }
.rn-cup-detail-score b { font-size: clamp(1.5rem, 7vw, 3rem); }
.rn-cup-detail-score img { background: #fff; border-radius: .35rem; padding: .2rem; }
.rn-cup-detail-score .rn-cup-initials { color: #17253f; }
@media (max-width: 950px) { .rn-cup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 510px) { .rn-cup-grid { grid-template-columns: 1fr; } }
.rn-cup-full-score img { padding: .25rem; background: white; border-radius: .5rem; }
.rn-cup-full-score .rn-cup-initials { color: #17253f; margin-inline: auto; }

.rencontres-tabs[hidden] { display: none; }
.rn-eu-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(8rem, 1fr); align-items: center; gap: 1rem; background: #17253f; color: #fff; padding: clamp(1rem, 4vw, 2.25rem); border-radius: .75rem; margin: 1.25rem 0; }
.rn-eu-hero h2 { color: #fff; margin: 0; }
.rn-eu-hero p { margin-bottom: 0; max-width: 65ch; }
.rn-eu-hero-award { display: grid; justify-items: center; color: #fff; text-align: center; }
.rn-eu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem; }
.rn-eu-competitions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rn-eu-tile { display: grid; align-content: start; justify-items: center; gap: .3rem; padding: .8rem .55rem; text-align: center; color: #17253f; text-decoration: none; border: 1px solid #d6dce8; border-radius: .65rem; background: white; overflow-wrap: anywhere; }
.rn-eu-tile:hover { border-color: #a62c47; background: #fff3f5; }
.rn-eu-tile small { color: #485269; }
.rn-eu-pair { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: .3rem; margin-block: .25rem; }
.rn-eu-side { display: grid; justify-items: center; gap: .35rem; font-size: .9rem; font-weight: 700; line-height: 1.2; }
.rn-eu-pair b { align-self: center; background: #e9edf4; border-radius: .35rem; padding: .2rem .35rem; white-space: nowrap; }
.rn-eu-crest, .rn-eu-mark { display: block; object-fit: contain; }
.rn-eu-crest { width: 3.25rem; height: 3.25rem; }
.rn-eu-mark { width: 4.5rem; height: 4.5rem; }
.rn-eu-trophy { display: grid; place-items: center; font-size: 2.75rem; }
.rn-eu-intro, .rn-eu-strip, .rn-eu-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block: 1rem; }
.rn-eu-strip a { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; padding: .3rem; background: white; border: 1px solid #d6dce8; border-radius: .4rem; }
.rn-eu-strip .rn-eu-crest, .rn-eu-strip .rn-cup-initials { width: 100%; height: 100%; }
.rn-eu-nav { margin-top: 1.8rem; }
.rn-eu-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 0; list-style: none; }
.rn-eu-podium li { display: grid; justify-items: center; gap: .25rem; text-align: center; padding: 1rem .5rem; border: 1px solid #d6dce8; border-radius: .65rem; }
.rn-eu-podium li span { font-size: 2.6rem; }
.rn-eu-scorers div { display: grid; grid-template-columns: 5rem 1fr; padding: .6rem .4rem; border-bottom: 1px solid #d6dce8; }
.rn-eu-scorers dt { color: #842039; font-weight: 800; }
.rn-eu-scorers dd { margin: 0; }
@media (max-width: 600px) {
  .rn-eu-hero { grid-template-columns: 1fr; }
  .rn-eu-competitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rn-eu-ranking {
  border-bottom: 1px solid var(--line, #e1e5eb);
  padding: 1.5rem 0;
  scroll-margin-top: 5rem;
}
.rn-eu-cup-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding: 0;
  list-style: none;
}
