:root {
    --s365-red: #FF0000;
    --s365-red-dark: #C40000;
    --s365-red-soft: #FFF1F1;
    --s365-white: #FFFFFF;
    --s365-ink: #111111;
    --s365-muted: #555555;
    --s365-black: #0B0B0B;
    --s365-gray: #F7F7F8;
    --s365-border: #ECECEC;
    --s365-radius: 16px;
    --s365-font: 1.125rem;
    --s365-content: min(1760px, 100%);
    --s365-pad-x: max(.7rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px), clamp(.5rem, 1.2vw, .9rem));
    --s365-lang-fr: #3b82f6;
    --s365-lang-en: #14b8a6;
    --s365-lang-es: #f97316;
    --s365-lang-pt: #a855f7;
    --s365-select-border: #d1d5db;
    --s365-select-focus: color-mix(in srgb, var(--s365-red) 55%, #ff6666);
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body.s365 {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: var(--s365-font);
    line-height: 1.55;
    color: var(--s365-ink);
    overflow-x: clip;
    background:
        radial-gradient(1200px 480px at 100% -10%, rgba(255, 0, 0, 0.10), transparent 55%),
        radial-gradient(900px 420px at -10% 0%, rgba(255, 0, 0, 0.06), transparent 50%),
        linear-gradient(180deg, #fff 0%, var(--s365-gray) 42%, var(--s365-gray) 100%);
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

body.s365 h1,
body.s365 h2,
body.s365 h3 {
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
}

body.s365 h1 { font-size: clamp(2rem, 3.6vw, 2.65rem); }
body.s365 h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
body.s365 h3 { font-size: 1.2rem; }

.s365-header {
    background: var(--s365-black);
    color: var(--s365-white);
    padding: 1.35rem var(--s365-pad-x);
    padding-top: max(1.35rem, env(safe-area-inset-top, 0px));
    border-bottom: 4px solid var(--s365-red);
}

.s365-header__inner {
    max-width: var(--s365-content);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
}

.s365-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .85rem 1.25rem;
    min-width: 0;
}

.s365-nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    padding: .55rem .85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
}

.s365-nav-toggle__bars {
    position: relative;
    width: 1.25rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

.s365-nav-toggle[aria-expanded="true"] {
    background: var(--s365-red);
    border-color: var(--s365-red);
}

.s365-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--s365-white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .01em;
    flex-shrink: 0;
}

.s365-brand img {
    height: 84px;
    width: auto;
    display: block;
    border-radius: 14px;
}

.s365-brand__text {
    display: block;
    line-height: 1.02;
    text-transform: uppercase;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: .02em;
}

.s365-brand__text small {
    display: block;
    color: var(--s365-red);
    font-size: .72em;
    margin-top: .15rem;
    letter-spacing: .04em;
}

.s365-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    align-items: center;
}

.s365-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.12rem;
    opacity: 1;
}

.s365-nav a:hover,
.s365-nav a.is-active {
    color: #FFFFFF;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--s365-red);
}

.s365-nav__dropdown {
    position: relative;
}

.s365-nav__dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    font-size: 1.12rem;
    cursor: pointer;
}

.s365-nav__dropdown-trigger:hover,
.s365-nav__dropdown-trigger.is-active,
.s365-nav__dropdown.is-open .s365-nav__dropdown-trigger {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--s365-red);
}

.s365-nav__dropdown-caret {
    width: 0;
    height: 0;
    border-left: .28rem solid transparent;
    border-right: .28rem solid transparent;
    border-top: .34rem solid currentColor;
    opacity: .85;
    transition: transform .15s ease;
}

.s365-nav__dropdown.is-open .s365-nav__dropdown-caret {
    transform: rotate(180deg);
}

.s365-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    padding-top: .35rem; /* pont souris entre le bouton et le panneau */
    z-index: 40;
}

.s365-nav__dropdown-menu[hidden] {
    display: none !important;
}

.s365-nav__dropdown-panel {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .45rem;
    border: 2px solid color-mix(in srgb, var(--s365-red) 45%, rgba(255, 255, 255, 0.22));
    border-radius: 12px;
    background: linear-gradient(180deg, #1c1c1c 0%, #101010 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.s365-nav__dropdown-panel a {
    display: block;
    padding: .55rem .7rem;
    border-radius: 8px;
    font-size: 1rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .12s ease, color .12s ease;
}

.s365-nav__dropdown-panel a:hover,
.s365-nav__dropdown-panel a.is-active {
    background: color-mix(in srgb, var(--s365-red) 22%, rgba(255, 255, 255, 0.1));
    color: #fff;
    text-decoration: none;
}

.s365-nav__dropdown-empty {
    display: block;
    padding: .55rem .7rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: .95rem;
    font-weight: 600;
}

.s365-lang {
    display: inline-flex;
    align-items: center;
}

.s365-lang--select {
    position: relative;
}

.s365-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.s365-lang__select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 8.75rem;
    max-width: 100%;
    padding: .42rem 2.1rem .42rem .75rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .55rem center;
    background-size: 1.15em 1.15em;
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}

.s365-lang--fr .s365-lang__select,
.s365-lang__select--fr {
    border-color: var(--s365-lang-fr);
    background-color: color-mix(in srgb, var(--s365-lang-fr) 42%, rgba(0, 0, 0, 0.25));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--s365-lang-fr) 55%, transparent);
}

.s365-lang--en .s365-lang__select,
.s365-lang__select--en {
    border-color: var(--s365-lang-en);
    background-color: color-mix(in srgb, var(--s365-lang-en) 42%, rgba(0, 0, 0, 0.25));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--s365-lang-en) 55%, transparent);
}

.s365-lang--es .s365-lang__select,
.s365-lang__select--es {
    border-color: var(--s365-lang-es);
    background-color: color-mix(in srgb, var(--s365-lang-es) 42%, rgba(0, 0, 0, 0.25));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--s365-lang-es) 55%, transparent);
}

.s365-lang--pt .s365-lang__select,
.s365-lang__select--pt {
    border-color: var(--s365-lang-pt);
    background-color: color-mix(in srgb, var(--s365-lang-pt) 42%, rgba(0, 0, 0, 0.25));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--s365-lang-pt) 55%, transparent);
}

.s365-lang__select:hover {
    filter: brightness(1.12);
}

.s365-lang__select:focus {
    outline: none;
    filter: brightness(1.12);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--s365-red) 35%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.45);
}

.s365-lang__select option {
    color: #111;
    background: #fff;
    font-weight: 700;
}

.s365-calendar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .85rem 1rem;
    margin: 0 0 1rem;
}

.s365-calendar-export {
    width: auto;
    white-space: nowrap;
}

.s365-calendar-filters {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #f0d0d0;
    border-radius: 16px;
    background: #fff;
}

.s365-calendar-filters__grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.s365-calendar-filters__field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    color: #444;
}

.s365-calendar-filters__field select,
.s365-calendar-filters__field input[type="date"] {
    width: 100%;
    min-height: 2.55rem;
    padding: .55rem .7rem;
    border: 2px solid var(--s365-select-border);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    color: #111;
    font: inherit;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.s365-calendar-filters__field select:hover,
.s365-calendar-filters__field input[type="date"]:hover {
    border-color: color-mix(in srgb, var(--s365-red) 35%, var(--s365-select-border));
}

.s365-calendar-filters__field select:focus,
.s365-calendar-filters__field input[type="date"]:focus {
    outline: none;
    border-color: var(--s365-select-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--s365-red) 22%, transparent);
}

.s365-calendar-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .9rem;
}

.s365-calendar-filters__actions .s365-btn {
    width: auto;
}

.s365-standings-updated {
    margin: 0 0 .75rem;
    color: var(--s365-muted);
    font-size: .88rem;
    font-weight: 600;
}

.s365-nav__amicaux {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.s365-nav__amicaux-icon {
    display: inline-flex;
    color: #ffd666;
}

.s365-nav__amicaux.is-active .s365-nav__amicaux-icon,
.s365-nav__amicaux:hover .s365-nav__amicaux-icon {
    color: #ffe9a8;
}

.s365-page-title {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin: 0 0 1.35rem;
}

.s365-page-title h1 {
    margin: 0 0 .25rem;
    font-size: clamp(1.55rem, 2.8vw, 2.1rem);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.s365-page-title p {
    margin: 0;
    color: var(--s365-muted);
    line-height: 1.45;
    max-width: 40rem;
}

.s365-page-title__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.s365-page-title__icon .league-card__icon,
.s365-page-title__icon .league-card__custom,
.s365-page-title__icon img {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 16px;
}

.s365-page-title__icon .league-card__icon {
    display: flex;
}

.s365-page-title--amicaux h1 {
    color: #111;
}

.s365-friendly-list {
    display: grid;
    gap: .85rem;
}

.s365-friendly-card {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.s365-friendly-card__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.s365-friendly-card__icon .league-card__icon,
.s365-friendly-card__icon img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 12px;
}

.s365-friendly-card__body {
    min-width: 0;
    flex: 1;
}

.s365-friendly-card h2 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
}

.s365-friendly-card .meta {
    margin: 0 0 .55rem;
    color: var(--s365-muted);
    font-size: .92rem;
}

.s365-friendly-card .chip {
    display: inline-block;
    margin: 0 .35rem .35rem 0;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #fff1f1;
    color: #9f1239;
    font-size: .78rem;
    font-weight: 700;
}

.s365-social {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding-left: .85rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    flex-wrap: wrap;
}

.s365-social__label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--s365-red);
    white-space: nowrap;
}

.s365-social__icons {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.s365-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}

.s365-social__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.s365-social__link svg {
    width: 1.4rem;
    height: 1.4rem;
    display: block;
}

.s365-social__link--facebook,
.s365-social__link--facebook-group {
    color: #1877F2;
}

.s365-social__link--facebook:hover,
.s365-social__link--facebook-group:hover {
    background: #1877F2;
    color: #fff;
    border-color: #1877F2;
}

.s365-social__link--youtube {
    color: #FF0000;
}

.s365-social__link--youtube:hover {
    background: #FF0000;
    color: #fff;
    border-color: #FF0000;
}

.s365-social__link--youtube:hover path:last-child {
    fill: #fff;
}

.s365-social__link--tiktok:hover {
    background: #111;
    border-color: #111;
}

.s365-social__link--tiktok:hover path:last-child {
    fill: #fff;
}

.s365-main {
    max-width: var(--s365-content);
    margin: 0 auto;
    padding: 1.75rem var(--s365-pad-x) 3.25rem;
}

.s365-main--narrow {
    max-width: min(640px, var(--s365-content));
}

.s365-main--doc {
    max-width: min(860px, var(--s365-content));
}

.s365-card {
    background: var(--s365-white);
    border-radius: var(--s365-radius);
    padding: 1.25rem;
    border: 1px solid var(--s365-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.s365-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.s365-btn-primary {
    background: var(--s365-red);
    color: #fff;
}

.s365-btn-primary:hover {
    background: var(--s365-red-dark);
}

.s365-btn-secondary {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}

.s365-footer {
    max-width: var(--s365-content);
    margin: 0 auto;
    padding: 1.5rem var(--s365-pad-x) max(2.25rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
    color: var(--s365-muted);
    font-size: .95rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid #f0d0d0;
}

.s365-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.s365-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    font-weight: 700;
    color: var(--s365-ink);
    font-size: 1.05rem;
}

.s365-footer__meta {
    flex: 1 1 14rem;
    min-width: 0;
    text-align: center;
    line-height: 1.45;
}

.s365-footer__meta p {
    margin: 0;
}

.s365-footer__copy {
    color: var(--s365-ink);
    font-weight: 600;
}

.s365-footer__contact {
    margin-top: .35rem !important;
}

.s365-footer__contact a {
    color: var(--s365-red);
    font-weight: 700;
    text-decoration: none;
}

.s365-footer__contact a:hover {
    text-decoration: underline;
}

.s365-footer__updated {
    margin-top: .25rem !important;
    font-size: .9rem;
}

.s365-footer__updated time {
    color: var(--s365-ink);
    font-weight: 600;
}

.s365-footer__logo {
    display: block;
    height: 96px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(196, 0, 0, .18);
    opacity: 1;
}

.s365-footer__partners {
    width: 100%;
    padding-top: .85rem;
    border-top: 1px solid #f3e0e0;
    text-align: center;
}

.s365-footer__partners-label {
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--s365-ink);
}

.s365-footer__partners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .85rem 1.25rem;
}

.s365-footer__partners-list a,
.s365-footer__partners-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .65rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0d0d0;
    transition: transform .15s ease, box-shadow .15s ease;
}

.s365-footer__partners-list a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 0, 0, .12);
    text-decoration: none;
}

.s365-footer__partners-list img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.s365-social--footer {
    padding-left: 0;
    border-left: 0;
}

/* ——— Tableaux marque (public + admin) ——— */
.s365-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #f0d0d0;
    box-shadow: 0 1px 3px rgba(196, 0, 0, 0.05);
}

.s365-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
}

.s365-table thead th {
    background: linear-gradient(180deg, #1a1a1a 0%, #0b0b0b 100%);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
    padding: .75rem .7rem;
    border-bottom: 3px solid var(--s365-red);
    white-space: nowrap;
}

.s365-table thead th.num,
.s365-table td.num {
    text-align: center;
}

.s365-table tbody td {
    padding: .65rem .7rem;
    border-bottom: 1px solid #f3e0e0;
    vertical-align: middle;
    color: #222;
}

.s365-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.s365-table tbody tr:nth-child(even) td {
    background: #fff7f7;
}

.s365-table tbody tr:hover td {
    background: #ffe8e8 !important;
}

/* Colonne d’identité (1re) */
.s365-table tbody td:first-child,
.s365-table thead th:first-child {
    border-right: 1px solid rgba(255, 0, 0, 0.12);
}

.s365-table tbody td:first-child {
    font-weight: 700;
    color: #444;
    background-image: linear-gradient(90deg, rgba(255, 0, 0, 0.04), transparent 70%);
}

.s365-table tbody tr:nth-child(even) td:first-child {
    background-image: linear-gradient(90deg, rgba(255, 0, 0, 0.07), transparent 70%);
}

/* Colonnes numériques : bandeau vertical léger en alternance */
.s365-table tbody td.num:nth-child(odd) {
    background-color: color-mix(in srgb, #fff 88%, #ff0000 12%);
}

.s365-table tbody tr:nth-child(even) td.num:nth-child(odd) {
    background-color: color-mix(in srgb, #fff7f7 82%, #ff0000 18%);
}

.s365-table tbody td.num:nth-child(even) {
    background-color: transparent;
}

.s365-table .col-accent,
.s365-table td.col-accent {
    font-weight: 800;
    color: var(--s365-red);
    background-color: color-mix(in srgb, #fff 70%, #ff0000 30%) !important;
}

.s365-table tbody tr:nth-child(even) td.col-accent {
    background-color: color-mix(in srgb, #fff1f1 55%, #ff0000 45%) !important;
    color: #9f0000;
}

.s365-table tbody tr.is-current td,
.s365-table tbody tr.current td {
    background: #ffe0e0 !important;
    box-shadow: inset 3px 0 0 var(--s365-red);
}

.s365-table a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.s365-table a:hover {
    color: var(--s365-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.s365-table .empty-cell {
    text-align: center;
    color: var(--s365-muted);
    padding: 2rem .75rem !important;
    background: #fff !important;
}

.s365-table-legend {
    margin-top: .75rem;
    font-size: .75rem;
    color: var(--s365-muted);
}

.league-subnav {
    display: none; /* remplacé par .league-hero */
}

.league-hero {
    display: grid;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
    padding: 1.45rem 1.5rem;
    background: #fff;
    border: 1px solid #f0d0d0;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(196, 0, 0, 0.06);
}

@media (min-width: 720px) {
    .league-hero {
        grid-template-columns: auto 1fr;
        align-items: center;
    }
}

.league-hero__logo {
    display: block;
    line-height: 0;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.league-hero__logo .league-card__icon,
.league-hero__logo .league-card__custom,
.league-hero__logo img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
}

.league-hero__logo .league-card__icon {
    display: flex;
    background: #0f172a;
    border: 1px solid rgba(15, 23, 42, .1);
}

.league-hero h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

.league-hero h1 a {
    color: inherit;
    text-decoration: none;
}

.league-hero h1 a:hover {
    color: var(--s365-red);
}

.league-hero .meta {
    margin: 0;
    color: var(--s365-muted);
    font-size: 1.02rem;
}

.league-hero__archives {
    color: var(--s365-red);
    font-weight: 700;
    text-decoration: none;
}

.league-hero .desc {
    margin: .65rem 0 0;
    color: #333;
    line-height: 1.45;
}

.league-hero__body {
    min-width: 0;
}

.league-hero__nav {
    margin-top: 1rem;
}

.league-hero__menu-summary {
    display: none;
}

.league-hero__menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.league-hero__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--s365-red);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: .9rem;
    border: 2px solid var(--s365-red);
}

.league-hero__nav a:hover {
    background: #d40000;
    border-color: #d40000;
}

.league-hero__nav a.is-active {
    background: #111;
    border-color: #111;
}

.league-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (min-width: 1100px) {
    .league-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .league-hero__menu-summary {
        display: none;
    }

    .league-hero__menu-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 0;
    }
}

.league-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 2.5px solid #e8a0a0;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(196, 0, 0, 0.04);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    min-height: 132px;
}

.league-card:hover {
    border-color: #ff0000;
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.12);
    transform: translateY(-2px);
}

.league-card__main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
}

.league-card__signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: .5rem 1.15rem;
    border-radius: 999px;
    background: var(--s365-red);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    text-decoration: none;
    border: 2px solid var(--s365-red);
}

.league-card__signup:hover {
    background: #d40000;
    border-color: #d40000;
}

.league-hero__nav-signup {
    background: #111 !important;
    border-color: #111 !important;
}

.league-card__body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    flex: 1;
}

.league-card img,
.league-card__custom,
.league-card__icon {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff7f7;
    flex-shrink: 0;
}

.league-card__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 20px;
    isolation: isolate;
    background: #0f172a;
    padding: 0;
}

.league-card__icon--photo {
    background: #0f172a;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .12),
        0 10px 22px rgba(15, 23, 42, .16);
}

.league-card__icon--photo .league-card__glyph--photo,
.league-card img.league-card__glyph--photo {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    object-fit: cover;
    object-position: center;
    filter: none;
}

.league-card__custom {
    border: 1px solid #f0d0d0;
    background: #fff;
    padding: .35rem;
}

.s365-form__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s365-form__field label {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    margin: 0 0 .35rem;
}

.s365-form__field input,
.s365-form__field select,
.s365-form__field textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 2px solid var(--s365-select-border);
    border-radius: 10px;
    font: inherit;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.s365-form__field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23ef4444' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 1.25em 1.25em;
}

.s365-form__field select:hover,
.s365-form__field input:hover,
.s365-form__field textarea:hover {
    border-color: color-mix(in srgb, var(--s365-red) 35%, var(--s365-select-border));
}

.s365-form__field input:focus,
.s365-form__field select:focus,
.s365-form__field textarea:focus {
    outline: none;
    border-color: var(--s365-select-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--s365-red) 22%, transparent);
}

.s365-form__actions {
    margin-top: 1.25rem;
}

.s365-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--s365-red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.s365-btn:hover {
    filter: brightness(0.95);
}

.s365-alert {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-size: .95rem;
}

.s365-alert--ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.s365-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 720px) {
    .s365-form__grid {
        grid-template-columns: 1fr;
    }
}

.league-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.league-card p {
    margin: 0;
    color: var(--s365-muted);
    font-size: .98rem;
}

.league-card .chip {
    display: inline-flex;
    align-self: flex-start;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #fff1f1;
    color: var(--s365-red);
    font-size: .8rem;
    font-weight: 700;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin: 0 0 1rem;
}

.section-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--s365-ink);
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--s365-red);
}

.section-head h2 .section-head__meta {
    color: var(--s365-red);
    font-weight: 700;
}

.section-head a {
    color: var(--s365-red);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.archive-list {
    display: grid;
    gap: 1.35rem;
}

.archive-season-block {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.archive-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #f0d0d0;
    border-radius: 14px;
}

.archive-item h3 {
    margin: 0 0 .2rem;
    font-size: 1.05rem;
}

.archive-item p {
    margin: 0;
    color: var(--s365-muted);
    font-size: .85rem;
}

.archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.archive-actions a {
    display: inline-flex;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #fff1f1;
    color: var(--s365-red);
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
}

.archive-actions a:hover {
    background: var(--s365-red);
    color: #fff;
}

.badge-active {
    display: inline-flex;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--s365-red);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    margin-left: .35rem;
}

.badge-archive {
    display: inline-flex;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    margin-left: .35rem;
}

.mini-teams {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.mini-teams a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: .9rem;
}

.mini-teams a:hover {
    border-color: #ffcccc;
}

.mini-teams img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f3f3;
}

.league-subnav a { font-size: .95rem; }
.s365-table { font-size: 1rem; }
.s365-table thead th { font-size: .8rem; }

/* Carrousels matchs / photos */
.s365-carousel-section { margin-bottom: 2.1rem; }

.s365-carousel-nav { display: flex; gap: .45rem; }

.s365-carousel-btn {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    border: 1px solid #f0d0d0;
    background: #fff;
    color: #111;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.s365-carousel-btn:hover {
    background: var(--s365-red);
    color: #fff;
    border-color: var(--s365-red);
}

.s365-carousel {
    overflow: hidden;
}

.s365-carousel-track {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .25rem;
}

.s365-carousel-track::-webkit-scrollbar { display: none; }

.s365-carousel-slide {
    flex: 0 0 min(85%, 300px);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #f0d0d0;
    border-radius: 16px;
    padding: .85rem .9rem .75rem;
    box-shadow: 0 2px 8px rgba(196, 0, 0, 0.05);
}

.s365-carousel--matches .s365-carousel-slide {
    flex-basis: min(82%, 260px);
    padding: .8rem .85rem .7rem;
}

@media (min-width: 720px) {
    .s365-carousel--matches .s365-carousel-slide { flex-basis: min(42%, 280px); }
}

@media (min-width: 1100px) {
    .s365-carousel--matches .s365-carousel-slide { flex-basis: min(26%, 300px); }
}

.s365-match-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    height: 100%;
}

.s365-match-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.s365-match-card__league {
    font-size: .78rem;
    font-weight: 800;
    color: var(--s365-red);
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.s365-match-card__when {
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--s365-muted);
    text-transform: capitalize;
    white-space: nowrap;
}

.s365-match-card__clash {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: .35rem;
}

.s365-match-card__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    text-align: center;
}

.s365-match-card__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.s365-match-card__name {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.s365-match-card__mid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: .45rem;
    min-width: 2.75rem;
}

.s365-match-card__vs {
    font-size: .72rem;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.s365-match-card__score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--s365-ink, #111);
    letter-spacing: -.02em;
    white-space: nowrap;
}

.s365-match-card--result .s365-match-card__score {
    color: var(--s365-red);
}

.s365-match-card__meta {
    margin-top: auto;
    color: var(--s365-muted);
    font-size: .82rem;
    font-weight: 600;
    padding-top: .45rem;
    border-top: 1px solid #ffe8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s365-carousel--gallery .s365-carousel-slide {
    padding: 0;
    overflow: hidden;
    min-height: 220px;
}

.s365-gallery-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.s365-matchday-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .75rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid #ffe0e0;
}

.s365-matchday-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: capitalize;
}

.s365-matchday-head span {
    color: var(--s365-red);
    font-size: .8rem;
    font-weight: 700;
}

.s365-match-list { display: grid; gap: .55rem; }

.s365-match-row {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: .35rem .55rem;
    padding: .55rem .45rem;
    border-radius: 10px;
    background: #fff7f7;
}

.s365-match-row time {
    font-weight: 800;
    color: var(--s365-red);
    font-size: .9rem;
}

.s365-match-teams {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .45rem;
    font-weight: 700;
    font-size: .95rem;
}

.s365-match-teams em {
    font-style: normal;
    color: #999;
    font-weight: 600;
    font-size: .8rem;
}

.s365-match-row--result {
    grid-template-columns: 1fr;
}

.s365-score {
    color: var(--s365-red);
    font-size: 1.05rem;
    min-width: 3.5rem;
    text-align: center;
}

.s365-match-meta {
    grid-column: 2;
    color: var(--s365-muted);
    font-size: .8rem;
}

.s365-match-row--result .s365-match-meta { grid-column: 1; }

.s365-gallery-placeholder {
    text-align: center;
    padding: 2rem 1.25rem;
    border-style: dashed;
    border-color: #ffb3b3;
    background: #fffafa;
}

.s365-gallery-placeholder .hint {
    margin: .45rem 0 0;
    color: var(--s365-muted);
    font-size: .88rem;
}

.s365-gallery-empty { margin-bottom: 1.85rem; }

.s365-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (min-width: 720px) {
    .s365-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.s365-photo-grid__item {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #f0d0d0;
    background: #fff;
    aspect-ratio: 4 / 3;
    box-shadow: 0 2px 8px rgba(196, 0, 0, 0.05);
    transition: transform .15s ease, box-shadow .15s ease;
}

.s365-photo-grid__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(196, 0, 0, 0.12);
}

.s365-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.s365-block {
    margin: 1.75rem 0;
}

.s365-block__sub {
    color: var(--s365-muted);
    font-size: .88rem;
    font-weight: 600;
    text-transform: capitalize;
}

.s365-match-list {
    display: grid;
    gap: .55rem;
}

.s365-match-list__row {
    display: grid;
    gap: .45rem;
    background: #fff;
    border: 1px solid #f0d0d0;
    border-radius: 12px;
    padding: .75rem .9rem;
}

@media (min-width: 720px) {
    .s365-match-list__row {
        grid-template-columns: 140px 1fr auto;
        align-items: center;
    }
}

.s365-match-list__when {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .82rem;
    color: var(--s365-muted);
}

.s365-match-list__when strong {
    color: var(--s365-ink);
    font-size: .95rem;
}

.s365-match-list__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .55rem;
    align-items: center;
    font-weight: 800;
}

.s365-match-list__teams .home { text-align: right; }
.s365-match-list__teams .away { text-align: left; }
.s365-match-list__teams .score {
    color: var(--s365-red);
    white-space: nowrap;
    min-width: 3.5rem;
    text-align: center;
}

.s365-match-list__tag {
    justify-self: end;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--s365-red);
    background: #fff1f1;
    border-radius: 999px;
    padding: .2rem .55rem;
}

.s365-player-cell {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.s365-player-cell img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.s365-table td.col-card-yellow {
    font-weight: 800;
    color: #a16207;
}

.s365-table td.col-card-red {
    font-weight: 800;
    color: var(--s365-red);
}

.stats-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 960px) {
    .stats-duo {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .stats-duo > .s365-block {
        margin-bottom: 0;
    }
}

.s365-team-cell {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.s365-team-cell img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f5f5f5;
    flex-shrink: 0;
}

.s365-team-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: .55rem;
    padding: .65rem;
    margin-bottom: 1.15rem;
    border: 1px solid #f0d0d0;
    border-radius: 16px;
    background: #fff7f7;
    box-shadow: 0 6px 18px rgba(196, 0, 0, 0.06);
    scrollbar-width: thin;
}

.s365-team-tabs__btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: .45rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    border: 2px solid #ffb3b3;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.s365-team-tabs__btn img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #f3f3f3;
    border: 1px solid #eee;
}

.s365-team-tabs__btn.is-active,
.s365-team-tabs__btn:hover {
    background: var(--s365-red);
    border-color: var(--s365-red);
    color: #fff;
}

.s365-team-panel {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #f0d0d0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(196, 0, 0, 0.06);
}

.s365-team-panel__head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.s365-team-panel__head img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.s365-team-panel__head h2 {
    margin: 0 0 .2rem;
}

.s365-team-panel__head p {
    margin: 0;
    color: var(--s365-muted);
    font-size: .9rem;
}

.s365-team-panel__head a {
    color: var(--s365-red);
    font-weight: 700;
    text-decoration: none;
}

.s365-suspension-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #fff1f1;
    border: 1px solid #ffb3b3;
    color: var(--s365-red);
    font-weight: 800;
    font-size: .82rem;
    white-space: nowrap;
}

.s365-table tr.is-suspended td {
    background: #fff8f8;
}

.s365-prose h2 {
    margin: 1.35rem 0 .55rem;
    font-size: 1.15rem;
}

.s365-prose h2:first-child {
    margin-top: 0;
}

.s365-prose p,
.s365-prose li {
    line-height: 1.6;
    color: var(--s365-ink);
}

.s365-prose ul {
    margin: .35rem 0 1rem;
    padding-left: 1.25rem;
}

.s365-prose li {
    margin: .25rem 0;
}

.s365-prose code {
    font-size: .85em;
    background: #fff1f1;
    padding: .1rem .35rem;
    border-radius: 6px;
}

.s365-news-list {
    display: grid;
    gap: 1rem;
}

.s365-news-item h2 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
}

.s365-news-item h2 a {
    color: inherit;
    text-decoration: none;
}

.s365-news-item h2 a:hover {
    color: var(--s365-red);
}

.s365-news-item .meta {
    margin: 0 0 .65rem;
    color: var(--s365-muted);
    font-size: .88rem;
    font-weight: 600;
}

.s365-news-item__cover {
    display: block;
    margin: 0 0 .85rem;
    border-radius: 10px;
    overflow: hidden;
    background: #0b0b0b;
}

.s365-news-item__cover img,
.s365-news-cover {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.s365-news-cover {
    background: #0b0b0b;
}

.s365-news-item__more {
    color: var(--s365-red);
    font-weight: 700;
    text-decoration: none;
}

.s365-sponsor-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.s365-sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #f0d0d0;
    border-radius: 14px;
    padding: 1.1rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.s365-sponsor-card:hover {
    border-color: #ffb3b3;
    box-shadow: 0 6px 18px rgba(255, 0, 0, .08);
}

.s365-sponsor-card img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 12px;
}

.s365-sponsor-card__tier {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--s365-red);
    background: #fff1f1;
    border-radius: 999px;
    padding: .15rem .55rem;
}

.s365-sponsor-card p {
    margin: 0;
    color: var(--s365-muted);
    font-size: .85rem;
}

/* Slider accueil */
.s365-home-slider {
    margin: 0 0 1.5rem;
}

.s365-home-slider__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #f0d0d0;
    background: #111;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
    max-height: min(70vh, 780px);
}

.s365-home-slider__track {
    position: absolute;
    inset: 0;
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: transform .38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .s365-home-slider__track {
        transition-duration: .01s;
    }
}

.s365-home-slider__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #1a1a1a;
}

.s365-home-slider__slide::before {
    content: "";
    position: absolute;
    inset: -12%;
    background-image: var(--slide-img);
    background-size: cover;
    background-position: center;
    filter: blur(28px);
    opacity: .7;
    pointer-events: none;
}

.s365-home-slider__photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.s365-home-slider__nav {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .65rem;
    pointer-events: none;
}

.s365-home-slider__btn {
    pointer-events: auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

.s365-home-slider__btn:hover {
    background: var(--s365-red);
}

.s365-home-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .75rem;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: .4rem;
}

.s365-home-slider__dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}

.s365-home-slider__dot.is-active {
    background: var(--s365-red);
    width: 1.15rem;
}

.s365-matchday-stack {
    display: grid;
    gap: .25rem;
}

.s365-matchday .section-head h2 {
    font-size: 1.05rem;
    text-transform: capitalize;
}

/* ——— Responsive : tablette + téléphone ——— */
@media (max-width: 1099px) {
    .league-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .s365-carousel--matches .s365-carousel-slide {
        flex-basis: min(46%, 280px);
    }

    .s365-nav-toggle {
        display: inline-flex;
        min-height: 44px;
        min-width: 44px;
    }

    .s365-header__right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0 .25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .s365-header__right.is-open {
        display: flex;
    }

    .s365-header__right.is-open .s365-lang,
    .s365-header__right.is-open .s365-lang__select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .league-hero__menu-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 44px;
        padding: .7rem 1rem;
        border: 0;
        border-radius: 12px;
        background: var(--s365-red);
        color: #fff;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
        text-align: left;
    }

    .league-hero__menu-summary::after {
        content: "▾";
        font-size: 1.05rem;
        line-height: 1;
    }

    .league-hero__nav.is-open .league-hero__menu-summary::after {
        content: "▴";
    }

    .league-hero__menu-links {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: .4rem;
        margin-top: .55rem;
    }

    .league-hero__nav.is-open .league-hero__menu-links {
        display: flex;
    }

    .league-hero__nav a {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        border-radius: 12px;
        padding: .65rem 1rem;
    }

    .s365-calendar-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .s365-nav {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        width: 100%;
    }

    .s365-nav a {
        display: block;
        padding: .85rem .9rem;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .s365-nav a.is-active,
    .s365-nav a:hover {
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
    }

    .s365-nav__dropdown-trigger {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: .85rem .9rem;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .s365-nav__dropdown-trigger:hover,
    .s365-nav__dropdown-trigger.is-active,
    .s365-nav__dropdown.is-open .s365-nav__dropdown-trigger {
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
    }

    .s365-nav__dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 .35rem;
        padding: .15rem 0 .15rem .55rem;
    }

    .s365-nav__dropdown-panel {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: .1rem;
    }

    .s365-nav__dropdown-panel a {
        font-size: 1rem;
        opacity: .92;
    }

    .s365-social {
        padding-left: 0;
        border-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .s365-brand img {
        height: 64px;
    }

    .s365-brand__text {
        font-size: clamp(1.2rem, 4vw, 1.55rem);
    }

    .s365-footer {
        align-items: center;
        text-align: center;
    }

    .s365-footer__top {
        flex-direction: column;
        align-items: center;
    }

    .s365-footer__meta {
        text-align: center;
        width: 100%;
    }

    .s365-social--footer {
        order: 2;
    }
}

@media (max-width: 719px) {
    :root {
        --s365-font: 1.05rem;
    }

    body.s365 h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
    body.s365 h2 { font-size: clamp(1.2rem, 5vw, 1.45rem); }

    .s365-main {
        padding: 1.15rem var(--s365-pad-x) 2.5rem;
    }

    .league-grid {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .league-card {
        min-height: 0;
        padding: 1rem 1.05rem;
        gap: .85rem;
    }

    .league-card img,
    .league-card__icon {
        width: 76px;
        height: 76px;
        border-radius: 14px;
    }

    .league-card__icon--photo .league-card__glyph--photo {
        width: 100%;
        height: 100%;
    }

    .league-card h2 {
        font-size: 1.2rem;
    }

    .league-card p {
        font-size: .92rem;
    }

    .league-hero {
        padding: 1.1rem;
        gap: .9rem;
    }

    .league-hero img,
    .league-hero__logo,
    .league-hero__logo .league-card__icon,
    .league-hero__logo .league-card__custom {
        width: 84px;
        height: 84px;
    }

    .s365-page-title__icon,
    .s365-page-title__icon .league-card__icon,
    .s365-page-title__icon .league-card__custom,
    .s365-page-title__icon img {
        width: 4.25rem;
        height: 4.25rem;
    }

    .s365-home-slider__viewport {
        min-height: 180px;
        max-height: min(58vh, 520px);
        border-radius: 14px;
    }

    .s365-home-slider__btn {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.2rem;
    }

    .s365-carousel--matches .s365-carousel-slide {
        flex-basis: min(86%, 280px);
    }

    .s365-match-card__logo {
        width: 46px;
        height: 46px;
    }

    .s365-social__link {
        width: 2.6rem;
        height: 2.6rem;
    }

    .s365-social__link svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .s365-table {
        font-size: .85rem;
        min-width: 520px;
    }

    .s365-table thead th,
    .s365-table tbody td {
        padding: .55rem .45rem;
    }

    .s365-calendar-filters__grid {
        grid-template-columns: 1fr;
    }

    .s365-calendar-filters__field select,
    .s365-calendar-filters__field input[type="date"],
    .s365-form__field input,
    .s365-form__field select,
    .s365-form__field textarea,
    .s365-lang__select {
        font-size: 1rem;
        min-height: 2.75rem;
    }

    .s365-btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .s365-table thead th:first-child,
    .s365-table tbody td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .s365-table thead th:first-child {
        z-index: 2;
    }

    .s365-card {
        padding: 1rem;
    }

    .league-hero .cta .s365-btn,
    .cta .s365-btn {
        width: auto;
        min-width: 0;
    }

    .home-brand {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .85rem !important;
    }

    .home-brand img {
        width: 72px !important;
    }

    .s365-team-panel__head {
        flex-wrap: wrap;
    }

    .s365-sponsor-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .s365-match-list__tag {
        justify-self: start;
    }
}

@media (max-width: 479px) {
    .s365-brand img {
        height: 52px;
    }

    .s365-brand__text {
        font-size: 1.1rem;
    }

    .s365-nav-toggle__label {
        display: none;
    }

    .s365-nav-toggle {
        padding: .65rem .75rem;
    }

    .s365-photo-grid {
        grid-template-columns: 1fr;
    }
}
