/* Only the new competition navigation; existing banners and menus are untouched. */
.cfcn-division-nav {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
}

.cfcn-division-nav .cfcn-division-link {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 2px;
    border: 1px solid #d8dedb;
    border-radius: 7px;
    background: #fff;
    color: #171b19;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    -webkit-tap-highlight-color: rgba(23, 131, 71, .15);
}

.cfcn-division-nav .cfcn-division-link:hover {
    border-color: #178347;
    background: #f0f7f3;
    color: #126a39;
    text-decoration: none;
}

.cfcn-division-nav .cfcn-division-link[aria-current="page"],
.cfcn-division-nav .cfcn-division-link[aria-current="page"]:hover {
    border-color: #178347;
    background: #178347;
    color: #fff;
}

.cfcn-division-nav .cfcn-division-link:focus-visible {
    outline: 2px solid #171b19;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .cfcn-division-nav {
        gap: 4px;
    }

    .cfcn-division-nav .cfcn-division-link {
        font-size: 14px;
    }
}

/* Repli autonome ; la charte commune est fournie par Confort de lecture. */
.cfcn-scores{margin:18px 0}
.cfcn-scores h2{margin:10px 0 6px;padding:8px 10px;background:#111;color:#fff;border:0;border-radius:5px;font-size:18px;line-height:1.25;text-align:left}
.cfcn-scores .cfcn-date {
    margin: 0 0 8px;
    color: #526258;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

#cfcn-scores {
    scroll-margin-top: 90px;
}

body #wrapper .cfcn-week-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    align-items: center;
    padding: 1px 0;
    margin: 3px 0 7px;
}

body #wrapper .cfcn-week-nav .cfcn-date {
    margin: 0;
    color: #26362d;
    line-height: 1.35;
}

body #wrapper .cfcn-week-nav .cfcn-week-arrow {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #abc1b1;
    border-radius: 7px;
    background: #fff;
    color: #156238;
    text-decoration: none;
    box-shadow: none;
}

.cfcn-week-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    transform: translateX(-2px) rotate(45deg);
}

.cfcn-week-precedente::before {
    transform: translateX(2px) rotate(-135deg);
}

body #wrapper .cfcn-week-nav .cfcn-week-arrow:disabled {
    color: #a4aca7;
    background: #f0f2f0;
    border-color: #dee3df;
    opacity: 1;
}

body #wrapper .cfcn-week-nav a.cfcn-week-arrow:hover {
    background: #eff6f1;
    border-color: #248447;
}

body #wrapper .cfcn-week-nav a.cfcn-week-arrow:focus-visible {
    outline: 2px solid #156238;
    outline-offset: 2px;
}

/* Le titre porte le libellé principal. La ligne FFF reste une cible tactile compacte. */
body #wrapper div[id^="cfc-competition-"] .cfcn-fff-compact a.cfc-v2-link {
    min-height: 56px !important;
    padding-block: 12px !important;
}

body #wrapper div[id^="cfc-competition-"] .cfcn-fff-compact .cfc-v2-copy small {
    color: #46534b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body #wrapper div[id^="cfc-competition-"] .cfc-v2-pool.cfcn-fff-poule {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

body #wrapper div[id^="cfc-competition-"] .cfcn-fff-poule .cfc-v2-pool-ref {
    font-weight: 700 !important;
    white-space: normal;
}

.cfcn-scores .cfcn-matchs{margin:0;padding:0;list-style:none}
.cfcn-matchs li{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;margin:0;padding:10px;border-bottom:1px solid #dce2de;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.cfcn-home{text-align:right}.cfcn-score{min-width:58px;padding:4px 6px;border-radius:5px;background:#edf2ee;color:#15271a;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.cfcn-status{font-size:12px}

/* Fiches clubs : grille native de quatre colonnes, distincte du sélecteur. */
.cfcn-clubs {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 0;
    color: #111;
    background: transparent;
}
.cfcn-clubs > h2,
body #wrapper .cfcn-clubs > h2 {
    box-sizing: border-box;
    margin: 10px 0 6px;
    padding: 5px 0 5px 10px;
    border: 0;
    border-left: 4px solid var(--cfi-green, #248447);
    border-radius: 0;
    background: transparent;
    color: #111;
    font-family: var(--cfcl-font, inherit);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}
.cfcn-clubs .cfcn-clubs-intro,
body #wrapper .cfcn-clubs .cfcn-clubs-intro {
    margin: 0;
    padding: 0;
    color: #526258;
    font-size: 14px;
    line-height: 1.45;
}
.cfcn-clubs .cfcn-clubs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 8px;
    min-width: 0;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.cfcn-clubs .cfcn-clubs-grid > li { box-sizing: border-box; display: flex; flex: 0 0 calc(25% - 6px); min-width: 0; margin: 0; padding: 0; list-style: none; }
.cfcn-clubs-grid .cfcn-club-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 86px;
    margin: 0;
    padding: 2px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #111;
    text-decoration: none;
    box-shadow: none;
    -webkit-tap-highlight-color: rgba(36, 132, 71, .15);
}
.cfcn-club-link .cfcn-club-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #66776c;
}
.cfcn-club-link .cfcn-club-badge img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}
.cfcn-club-link .cfcn-club-name,
body #wrapper .cfcn-clubs .cfcn-club-name {
    display: block;
    max-width: 100%;
    min-height: 30px;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.cfcn-clubs-grid .cfcn-club-link:visited { color: #111; }
.cfcn-clubs-grid .cfcn-club-link:hover { color: var(--cfi-green, #248447); }
.cfcn-club-link:hover .cfcn-club-name { text-decoration: underline; text-underline-offset: 2px; }
.cfcn-clubs-grid .cfcn-club-link:focus-visible { outline: 2px solid var(--cfi-green, #248447); outline-offset: 2px; }
@media(min-width:769px) {
    .cfcn-clubs .cfcn-clubs-grid { gap: 14px 16px; }
    .cfcn-clubs .cfcn-clubs-grid > li { flex-basis: calc(25% - 12px); }
    .cfcn-club-link .cfcn-club-badge { flex-basis: 52px; width: 52px; height: 52px; }
    .cfcn-club-link .cfcn-club-name,
body #wrapper .cfcn-clubs .cfcn-club-name { font-size: 14px; line-height: 18px; min-height: 36px; }
}

/* Panneaux sur le même fond blanc que le bloc Classement et calendrier. */
body #wrapper :is(.cfcn-division-nav, .cfcn-scores, .cfcn-clubs) {
    background: #fff;
    border-radius: 5px;
}

body #wrapper .cfcn-division-nav { padding: 7px; }
body #wrapper :is(.cfcn-scores, .cfcn-clubs) { padding-block: 5px 9px; }

body.cfcl-site #wrapper :is(#cfcn-scores, #cfcn-clubs) > h2 {
    margin-top: 4px !important;
}

body #wrapper .cfcn-scores > :is(.cfcn-week-nav, .cfcn-matchs),
body #wrapper .cfcn-clubs > :is(.cfcn-clubs-grid, .cfcn-clubs-intro) {
    margin-inline: var(--cfi-gutter, 12px);
}

.cfcn-matchs li:last-child { border-bottom: 0; }

@media (max-width: 420px) {
    body #wrapper .cfcn-clubs .cfcn-clubs-grid { column-gap: 4px; }
    .cfcn-clubs .cfcn-clubs-grid > li { flex-basis: calc(25% - 3px); }
}

@media (max-width: 380px) {
    body.cfcl-site #wrapper #cfcn-competitions .cfcn-division-link { padding-inline: 3px !important; }
    .cfcn-scores .cfcn-matchs li { padding-inline: 3px; gap: 6px; }
}
