/* Bandeau direct : styles limités à la barre d'accueil. */
.slf-live-ticker--bandeau {
    --ticker-ink: #f3f8f6;
    --ticker-muted: #b1c8cc;
    --ticker-surface: #1a414f;
    --ticker-line: #365763;
    --ticker-accent: #86e5bf;
    --ticker-columns: 3;
    --ticker-card-width: 216px;
    --ticker-card-padding: 10px;
    --ticker-logo-size: 29px;
    margin: 0 0 22px;
    padding: 0;
    border: 1px solid var(--ticker-line);
    border-radius: 14px;
    background: #102e3b;
    color: var(--ticker-ink);
    box-shadow: 0 10px 28px #102e3b18;
    overflow: hidden;
    isolation: isolate;
    font: 13px/1.45 "Segoe UI", Arial, sans-serif;
}
.slf-live-ticker--bandeau[hidden],
.slf-live-ticker--bandeau [hidden] { display: none !important; }
.slf-live-ticker--bandeau *,
.slf-live-ticker--bandeau *::before,
.slf-live-ticker--bandeau *::after { box-sizing: border-box; }
.slf-live-ticker--bandeau button,
.slf-live-ticker--bandeau a { font: inherit; text-shadow: none; }
.slf-live-ticker--bandeau :is(button, a, [tabindex]):focus-visible {
    outline: 2px solid var(--ticker-accent);
    outline-offset: 3px;
}
.slf-live-ticker--bandeau .slf-live-ticker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px 14px;
    background: transparent;
    border: 0;
}
.slf-live-ticker--bandeau .slf-live-ticker__heading { gap: 10px; }
.slf-live-ticker--bandeau .slf-live-ticker__eyebrow {
    margin: 0 0 5px;
    color: var(--ticker-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.slf-live-ticker--bandeau .slf-live-ticker__heading h2 {
    margin: 0;
    padding: 0;
    color: var(--ticker-ink);
    font: 800 28px/1.05 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.9px;
    text-transform: none;
}
.slf-live-ticker--bandeau .slf-live-ticker__heading h2 > span { color: var(--ticker-accent); }
.slf-live-ticker--bandeau .slf-live-ticker__actions { flex-wrap: wrap; gap: 13px; }
.slf-live-ticker--bandeau .slf-live-ticker__date {
    color: var(--ticker-muted);
    font-size: 11px;
    white-space: nowrap;
    text-transform: capitalize;
}
.slf-live-ticker--bandeau .slf-live-ticker__choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--ticker-line);
    border-radius: 7px;
    background: var(--ticker-surface);
    color: var(--ticker-ink);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.slf-live-ticker--bandeau .slf-live-ticker__choose > span { color: var(--ticker-accent); font-size: 18px; line-height: 1; }
.slf-live-ticker--bandeau .slf-live-ticker__choose:hover { border-color: var(--ticker-accent); }
.slf-live-ticker--bandeau .slf-live-ticker__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 12px;
}
.slf-live-ticker--bandeau .slf-live-ticker__views { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.slf-live-ticker--bandeau .slf-live-ticker__views button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--ticker-muted);
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}
.slf-live-ticker--bandeau .slf-live-ticker__views button[aria-pressed="true"] { color: var(--ticker-ink); border-bottom-color: var(--ticker-accent); }
.slf-live-ticker--bandeau [data-live-ticker-selected-count] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 17px;
    min-height: 17px;
    padding: 0 3px;
    border-radius: 4px;
    background: var(--ticker-surface);
    color: var(--ticker-accent);
    font-size: 11px;
}
.slf-live-ticker--bandeau .slf-live-ticker__pager { display: flex; align-items: center; gap: 6px; flex: none; }
.slf-live-ticker--bandeau .slf-live-ticker__control {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 29px;
    height: 29px;
    padding: 0 0 2px;
    border: 1px solid var(--ticker-line);
    border-radius: 6px;
    background: var(--ticker-surface);
    color: var(--ticker-ink);
    font: 24px/1 "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}
.slf-live-ticker--bandeau .slf-live-ticker__control:hover:not(:disabled) { background: #1f514e; border-color: var(--ticker-accent); }
.slf-live-ticker--bandeau .slf-live-ticker__control:disabled { opacity: .35; cursor: default; }
.slf-live-ticker--bandeau [data-live-ticker-page] { min-width: 28px; color: var(--ticker-muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.slf-live-ticker--bandeau .slf-live-ticker__viewport {
    margin: 0 20px;
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
}
.slf-live-ticker--bandeau .slf-live-ticker__viewport:has(.slf-live-ticker__track:not(.is-message)) {
    --ticker-visible-cards: min(var(--ticker-columns), var(--ticker-count, 3));
    max-width: calc(var(--ticker-visible-cards) * var(--ticker-card-width) + (var(--ticker-visible-cards) - 1) * 10px);
}
.slf-live-ticker--bandeau .slf-live-ticker__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (min(var(--ticker-columns), var(--ticker-count, 3)) - 1) * 10px) / min(var(--ticker-columns), var(--ticker-count, 3)));
    gap: 10px;
    width: 100%;
    min-width: 0;
}
.slf-live-ticker--bandeau .slf-live-ticker__track.is-message { display: block; }
.slf-live-ticker--bandeau .slf-live-ticker__match {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--ticker-line);
    border-radius: 8px;
    background: var(--ticker-surface);
    color: var(--ticker-ink);
    scroll-snap-align: start;
}
.slf-live-ticker--bandeau .slf-live-ticker__match:last-child { border-right: 1px solid var(--ticker-line); }
.slf-live-ticker--bandeau .slf-live-ticker__match.is-live { border-color: #4b9e8d; background: var(--ticker-surface); }
.slf-live-ticker--bandeau .slf-live-ticker__match::before { display: none; }
.slf-live-ticker--bandeau .slf-live-ticker__meta {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 11px;
    color: var(--ticker-muted);
    font-size: 11px;
    font-weight: 550;
}
.slf-live-ticker--bandeau .slf-live-ticker__competition { overflow: hidden; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; white-space: nowrap; text-overflow: ellipsis; }
.slf-live-ticker--bandeau .slf-live-ticker__phase { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; font-weight: 700; }
.slf-live-ticker--bandeau .slf-live-ticker__phase.is-live { color: var(--ticker-accent); }
.slf-live-ticker--bandeau .slf-live-ticker__phase.is-live::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.slf-live-ticker--bandeau .slf-live-ticker__versus { display: grid; grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "home score" "away score"; align-items: center; gap: 7px 12px; }
.slf-live-ticker--bandeau .slf-live-ticker__team {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}
.slf-live-ticker--bandeau .slf-live-ticker__team--home { grid-area: home; }
.slf-live-ticker--bandeau .slf-live-ticker__team--away { grid-area: away; flex-direction: row; }
.slf-live-ticker--bandeau .slf-live-ticker__team > .slf-live-ticker__name { min-width: 0; max-width: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.slf-live-ticker--bandeau .slf-live-ticker__logo {
    display: grid;
    place-items: center;
    width: var(--ticker-logo-size);
    height: var(--ticker-logo-size);
    flex: 0 0 var(--ticker-logo-size);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.slf-live-ticker--bandeau .slf-live-ticker__logo img { display: block; width: var(--ticker-logo-size); height: var(--ticker-logo-size); max-width: var(--ticker-logo-size); max-height: var(--ticker-logo-size); object-fit: contain; }
.slf-live-ticker--bandeau .slf-live-ticker__logo b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #2a5660; color: var(--ticker-ink); font-size: 12px; }
.slf-live-ticker--bandeau .slf-live-ticker__score {
    grid-area: score;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 7px;
    padding: 0;
    color: var(--ticker-ink);
    font-size: 23px;
    font-weight: 800;
    line-height: var(--ticker-logo-size);
    font-variant-numeric: tabular-nums;
}
.slf-live-ticker--bandeau .slf-live-ticker__kickoff { grid-area: score; justify-self: end; color: var(--ticker-muted); font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slf-live-ticker--bandeau .slf-live-ticker__footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 13px 20px 15px; color: var(--ticker-muted); font-size: 11px; }
.slf-live-ticker--bandeau .slf-live-ticker__notice { display: inline-flex; align-items: center; gap: 6px; }
.slf-live-ticker--bandeau .slf-live-ticker__dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--ticker-accent); }
.slf-live-ticker--bandeau .slf-live-ticker__all { color: var(--ticker-accent); font-size: 11px; font-weight: 600; text-decoration: none; }
.slf-live-ticker--bandeau .slf-live-ticker__all:hover { text-decoration: underline; }
.slf-live-ticker--bandeau .slf-live-ticker__empty,
.slf-live-ticker--bandeau .slf-live-ticker__loading { grid-column: 1 / -1; width: 100%; min-height: 115px; padding: 25px 12px; color: var(--ticker-muted); font-size: 13px; line-height: 1.6; }
.slf-live-ticker--bandeau .slf-live-ticker__retry { display: inline-block; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--ticker-line); border-radius: 6px; background: var(--ticker-surface); color: var(--ticker-ink); cursor: pointer; }
@media (max-width: 900px) and (min-width: 701px) { .slf-live-ticker--bandeau { --ticker-columns: 2; } }
@media (max-width: 700px) {
    .slf-live-ticker--bandeau { --ticker-columns: 1; margin-bottom: 15px; }
    .slf-live-ticker--bandeau .slf-live-ticker__header { padding: 16px 14px 12px; gap: 12px; }
    .slf-live-ticker--bandeau .slf-live-ticker__actions { width: 100%; justify-content: space-between; gap: 8px; }
    .slf-live-ticker--bandeau .slf-live-ticker__toolbar { padding: 0 14px 11px; gap: 5px; }
    .slf-live-ticker--bandeau .slf-live-ticker__views { gap: 0; }
    .slf-live-ticker--bandeau .slf-live-ticker__views button { padding: 5px; }
    .slf-live-ticker--bandeau .slf-live-ticker__pager { gap: 3px; }
    .slf-live-ticker--bandeau .slf-live-ticker__control { display: inline-flex; width: 26px; height: 29px; }
    .slf-live-ticker--bandeau .slf-live-ticker__viewport { margin: 0 14px; }
    .slf-live-ticker--bandeau .slf-live-ticker__match { padding: 14px 16px; }
    .slf-live-ticker--bandeau .slf-live-ticker__footer { padding: 12px 14px 14px; }
}
@media (pointer: coarse) {
    .slf-live-ticker--bandeau .slf-live-ticker__choose,
    .slf-live-ticker--bandeau .slf-live-ticker__views button,
    .slf-live-ticker--bandeau .slf-live-ticker__control,
    .slf-live-ticker--bandeau .slf-live-ticker__retry { min-height: 44px; }
    .slf-live-ticker--bandeau .slf-live-ticker__control { min-width: 36px; }
}
@media (prefers-reduced-motion: reduce) { .slf-live-ticker--bandeau .slf-live-ticker__viewport { scroll-behavior: auto; } }

/* A shorter bar, retaining the score, logo and touch target sizes. */
.slf-live-ticker--bandeau .slf-live-ticker__header{padding-top:10px;padding-bottom:8px;gap:10px}
.slf-live-ticker--bandeau .slf-live-ticker__eyebrow{margin-bottom:3px}
.slf-live-ticker--bandeau .slf-live-ticker__heading h2{font-size:24px}
.slf-live-ticker--bandeau .slf-live-ticker__choose{min-height:30px;padding-top:5px;padding-bottom:5px}
.slf-live-ticker--bandeau .slf-live-ticker__toolbar{padding-bottom:6px}
.slf-live-ticker--bandeau .slf-live-ticker__views button{min-height:28px;padding-top:3px;padding-bottom:3px}
.slf-live-ticker--bandeau .slf-live-ticker__match{padding-block:var(--ticker-card-padding)}
.slf-live-ticker--bandeau .slf-live-ticker__meta{margin-bottom:6px}
.slf-live-ticker--bandeau .slf-live-ticker__versus{row-gap:4px}
.slf-live-ticker--bandeau .slf-live-ticker__score{gap:4px}
.slf-live-ticker--bandeau .slf-live-ticker__footer{padding-top:7px;padding-bottom:8px}
@media(max-width:700px){.slf-live-ticker--bandeau .slf-live-ticker__header{gap:8px}}
@media(pointer:coarse){.slf-live-ticker--bandeau .slf-live-ticker__choose,.slf-live-ticker--bandeau .slf-live-ticker__views button,.slf-live-ticker--bandeau .slf-live-ticker__control{min-height:44px}}

.slf-live-ticker--bandeau .slf-live-ticker__open {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.slf-live-ticker--bandeau .slf-live-ticker__open:focus-visible { outline-offset: -3px; }
.slf-live-ticker--bandeau .slf-live-ticker__match:has(.slf-live-ticker__open:is(:hover, :focus-visible)) { border-color: var(--ticker-accent); }
.slf-live-ticker--bandeau .slf-live-ticker__detail-arrow { margin-inline-start: 3px; color: var(--ticker-accent); font: 700 17px/.8 "Segoe UI", Arial, sans-serif; }

html:has(.slf-live-detail[open]) { overflow: hidden; }
.slf-live-detail {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(620px, calc(100vw - 28px));
    max-width: none;
    max-height: min(740px, calc(100dvh - 28px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e5e3;
    border-radius: 16px;
    background: #fff;
    color: #102e3b;
    box-shadow: 0 24px 70px #081e2b55;
    font: 14px/1.5 "Segoe UI", Arial, sans-serif;
    text-align: left;
}
.slf-live-detail[open] { display: flex; flex-direction: column; }
.slf-live-detail::backdrop { background: #091b29b8; }
.slf-live-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #102e3b;
    color: #fff;
}
.slf-live-detail__header p { margin: 0 0 3px; color: #86e5bf; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.slf-live-detail__header h2 { margin: 0; color: inherit; font: 750 clamp(20px, 4vw, 26px)/1.2 "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere; }
.slf-live-detail button { border: 0; border-radius: 8px; padding: 9px 13px; background: #0c625b; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.slf-live-detail button:focus-visible { outline: 2px solid #4faf9d; outline-offset: 3px; }
.slf-live-detail [data-close] { flex: 0 0 44px; height: 44px; padding: 0; background: #244a58; font: 26px/1 "Segoe UI", Arial, sans-serif; }
.slf-live-detail [hidden] { display: none !important; }
.slf-live-detail__body { min-height: 0; padding: 18px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.slf-live-detail__body h3 { margin: 20px 0 8px; color: #102e3b; font: 750 17px/1.25 "Segoe UI", Arial, sans-serif; }
.slf-live-detail__meta { margin: 0 0 6px; color: #48656d; text-align: center; }
.slf-live-detail__scoreboard { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 27px); padding: 10px 12px; border-radius: 12px; background: #eef6f4; text-align: center; }
.slf-live-detail__scoreboard > div { display: grid; min-width: 90px; }
.slf-live-detail__scoreboard strong { font-size: 33px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.slf-live-detail__scoreboard > div span { color: #48656d; font-size: 13px; }
.slf-live-detail__scoreboard .slf-live-ticker__logo { display: grid; width: 46px; height: 46px; place-items: center; }
.slf-live-detail__scoreboard img { width: 46px; height: 46px; object-fit: contain; }
.slf-live-detail__notice { margin: 0 0 8px; color: #48656d; }
.slf-live-detail__timeline { display: grid; row-gap: 0; margin: 0; padding: 0; list-style: none; }
.slf-live-detail__timeline li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e1edeb; }
.slf-live-detail__timeline li:last-child { border-bottom: 0; }
.slf-live-detail__timeline li > div { display: grid; overflow-wrap: anywhere; }
.slf-live-detail__minute { color: #165b58; font-weight: 750; font-variant-numeric: tabular-nums; }
.slf-live-detail__kind { color: #48656d; font-size: 12px; }
.slf-live-detail__scorer { color: #b22036; }
.slf-live-detail__assist { color: #166d42; font-weight: 650; }
@media (max-width: 450px) { .slf-live-detail__header, .slf-live-detail__body { padding-inline: 14px; } }
