@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --hbcb-blue:    #009FE3;
    --hbcb-dark:    #040c35;
    --hbcb-yellow:  #f7d101;
    --hbcb-black:   #101010;
    --hbcb-white:   #ffffff;
    --hbcb-gray:    #f4f6f9;
    --hbcb-border:  #e2e8f0;
    --hbcb-muted:   #8891a4;
    --hbcb-green:   #16a34a;
    --hbcb-orange:  #ea580c;
    --hbcb-red:     #dc2626;
    --hbcb-radius:  12px;
    --hbcb-shadow:  0 4px 24px rgba(4,12,53,.12);
}

/* ── Carousel ─────────────────────────────────────────────── */
.hbcb-carousel {
    position: relative;
    width: 100%;
    font-family: 'Barlow', sans-serif;
}

/* ── Carte base ───────────────────────────────────────────── */
.hbcb-card {
    display: none;
    background: var(--hbcb-white);
    border-radius: var(--hbcb-radius);
    border: 1px solid var(--hbcb-border);
    overflow: hidden;
    box-shadow: var(--hbcb-shadow);
    cursor: default;
}
.hbcb-card.hbcb-card-active { display: block; }
.hbcb-card a, .hbcb-card a:hover { pointer-events: none; text-decoration: none; color: inherit; }

/* ── HEADER ───────────────────────────────────────────────── */
.hbcb-card-header {
    background: var(--hbcb-dark);
    padding: 13px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Date — plus grande */
.hbcb-card-date {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hbcb-blue);
    white-space: nowrap;
}

/* Championnat — plus grand et plus visible */
.hbcb-card-champ {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--hbcb-white);
    text-align: center;
    flex: 1;
}

/* Journée — plus grande */
.hbcb-card-journee {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hbcb-yellow);
    background: rgba(247,209,1,.12);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── BODY ─────────────────────────────────────────────────── */
.hbcb-card-body {
    display: flex;
    align-items: center;
    padding: 28px 20px 22px;
    gap: 8px;
}

/* Equipe */
.hbcb-team {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

/* Logo — plus grand, padding réduit pour que l'image prenne plus de place */
.hbcb-team-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--hbcb-gray);
    border: 2px solid var(--hbcb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.hbcb-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.hbcb-team-logo-home {
    border-color: var(--hbcb-blue);
}
.hbcb-initiales {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--hbcb-dark);
}
.hbcb-team-logo-home .hbcb-initiales { color: var(--hbcb-blue); }

/* Nom court — significativement plus grand */
.hbcb-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--hbcb-black);
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    letter-spacing: .5px;
}

/* Categorie — plus grande */
.hbcb-team-cat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--hbcb-blue);
    text-transform: uppercase;
    letter-spacing: .8px;
    text-align: center;
}

/* Tag dom/ext — plus grand */
.hbcb-team-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hbcb-muted);
}

/* ── VS ───────────────────────────────────────────────────── */
.hbcb-vs-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    flex-shrink: 0;
}
.hbcb-vs-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--hbcb-blue);
    letter-spacing: 2px;
    line-height: 1;
}

/* ── Score ────────────────────────────────────────────────── */
.hbcb-score-block {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--hbcb-gray);
    border: 1px solid var(--hbcb-border);
    border-radius: 8px;
    padding: 8px 14px;
}
.hbcb-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: var(--hbcb-dark);
    line-height: 1;
    min-width: 42px;
    text-align: center;
}
.hbcb-score.hbcb-score-win { color: var(--hbcb-blue); }
.hbcb-score-sep {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
    font-weight: 300;
    color: var(--hbcb-border);
    line-height: 1;
}
.hbcb-score-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hbcb-muted);
    margin-top: 4px;
    text-align: center;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.hbcb-card-footer {
    background: var(--hbcb-gray);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--hbcb-border);
    gap: 12px;
    flex-wrap: wrap;
}
.hbcb-card-footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-width: 0;
}

/* Footer items — icones et texte plus grands */
.hbcb-footer-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hbcb-muted);
}
.hbcb-footer-item svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}
.hbcb-footer-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Navigation carousel ──────────────────────────────────── */
.hbcb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hbcb-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--hbcb-border);
    background: var(--hbcb-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--hbcb-dark);
    line-height: 1;
    transition: all .15s;
    padding: 0;
}
.hbcb-nav-btn:hover {
    background: var(--hbcb-blue);
    border-color: var(--hbcb-blue);
    color: var(--hbcb-white);
}
.hbcb-nav-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hbcb-muted);
    min-width: 36px;
    text-align: center;
}

/* ── No data ──────────────────────────────────────────────── */
.hbcb-no-data {
    padding: 28px 20px;
    text-align: center;
    color: var(--hbcb-muted);
    font-style: italic;
    font-size: 15px;
    font-family: 'Barlow', sans-serif;
    margin: 0;
}

/* ── Classement ───────────────────────────────────────────── */
.hbcb-classement-wrap { width: 100%; }
.hbcb-classement-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--hbcb-dark);
    text-transform: uppercase;
    margin: 0 0 14px;
}
.hbcb-classement-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hbcb-classement-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    background: var(--hbcb-white);
    border-radius: var(--hbcb-radius);
    overflow: hidden;
    box-shadow: var(--hbcb-shadow);
}
.hbcb-classement-table thead tr { background: var(--hbcb-dark); }
.hbcb-classement-table thead th {
    padding: 12px 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,.65);
    text-transform: uppercase; letter-spacing: .8px;
    text-align: center; white-space: nowrap;
}
.hbcb-classement-table thead th.col-equipe { text-align: left; }
.hbcb-classement-table thead th.col-pts { color: var(--hbcb-yellow); }
.hbcb-classement-table tbody tr { border-bottom: 1px solid var(--hbcb-border); transition: background .15s; }
.hbcb-classement-table tbody tr:last-child { border-bottom: none; }
.hbcb-classement-table tbody tr:hover { background: #eef6fd; }
.hbcb-classement-table td { padding: 12px 14px; text-align: center; color: var(--hbcb-black); font-size: 15px; }
.hbcb-classement-table td.col-equipe { text-align: left; }
.col-rang { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--hbcb-muted); width: 40px; font-size: 16px; }
.hbcb-cl-top td.col-rang { font-size: 20px; }
.hbcb-cl-equipe { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hbcb-cl-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; border: 1px solid var(--hbcb-border); flex-shrink: 0; }
.hbcb-cl-initiales {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--hbcb-dark); color: var(--hbcb-white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.hbcb-cl-nom { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--hbcb-black); }
.col-pts strong { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 900; color: var(--hbcb-dark); }
.diff-pos { color: var(--hbcb-green); font-weight: 700; }
.diff-neg { color: var(--hbcb-red); font-weight: 700; }

/* ── Clubs grid ───────────────────────────────────────────── */
.hbcb-clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
    gap: 18px;
    font-family: 'Barlow', sans-serif;
}
.hbcb-club-card {
    background: var(--hbcb-white);
    border: 1px solid var(--hbcb-border);
    border-top: 4px solid var(--hbcb-blue);
    border-radius: var(--hbcb-radius);
    padding: 22px 14px 18px;
    text-align: center;
    box-shadow: var(--hbcb-shadow);
    cursor: default;
}
.hbcb-club-logo-wrap { width: 80px; height: 80px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.hbcb-club-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hbcb-club-placeholder {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--hbcb-dark); color: var(--hbcb-white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900;
}
.hbcb-club-nom-court { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 900; color: var(--hbcb-black); margin: 0 0 5px; }
.hbcb-club-nom-long  { font-size: 12px; color: var(--hbcb-muted); margin: 0; line-height: 1.3; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .hbcb-team-logo  { width: 70px; height: 70px; }
    .hbcb-team-name  { font-size: 20px; }
    .hbcb-team-cat   { font-size: 13px; }
    .hbcb-vs-text    { font-size: 30px; }
    .hbcb-score      { font-size: 42px; min-width: 34px; }
    .hbcb-score-sep  { font-size: 32px; }
    .hbcb-card-body  { padding: 18px 14px 16px; gap: 4px; }
    .hbcb-card-date  { font-size: 13px; }
    .hbcb-card-champ { font-size: 14px; }
    .hbcb-card-journee { font-size: 12px; }
    .hbcb-footer-item { font-size: 12px; }
    .hbcb-footer-item svg { width: 14px; height: 14px; }
    .hbcb-clubs-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 400px) {
    .hbcb-team-logo  { width: 56px; height: 56px; }
    .hbcb-team-name  { font-size: 17px; }
    .hbcb-vs-text    { font-size: 24px; }
    .hbcb-score      { font-size: 34px; min-width: 28px; }
    .hbcb-score-sep  { font-size: 26px; }
    .hbcb-card-header { padding: 10px 14px; }
    .hbcb-card-date  { font-size: 11px; }
    .hbcb-card-champ { font-size: 12px; }
}

/* ── Badge résultat ───────────────────────────────────────── */
.hbcb-result-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hbcb-victoire {
    background: rgba(22,163,74,0.15);
    color: #16a34a;
}
.hbcb-defaite {
    background: rgba(220,38,38,0.15);
    color: #dc2626;
}
.hbcb-nul {
    background: rgba(234,88,12,0.15);
    color: #ea580c;
}
