/* ============================================================
   BLOCKS.CSS
   Style de chaque bloc modulaire
   ============================================================ */

/* ═══════════════════════════════════════════
   SYSTÈME DE BLOCS (structure commune)
═══════════════════════════════════════════ */
.block {
    position: relative;
    padding: var(--space-block) 0;
    color: var(--text);
}

.block--alt {
    background: linear-gradient(180deg, transparent, rgba(0, 200, 83, 0.02), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.block--compact {
    padding: var(--space-block-sm) 0;
}

.block--no-pad {
    padding: 0;
}

.block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.block__title {
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

.block__title::before {
    content: '';
    width: 5px;
    height: 26px;
    background: var(--primary);
    border-radius: 3px;
    flex-shrink: 0;
}

.block__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.block__link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}

.block__link:hover {
    color: var(--primary-dark);
}

.block__select {
    max-width: 180px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
}

.block__body {
    position: relative;
}

.block__body.p-0 {
    padding: 0 !important;
}

.block__footer {
    display: block;
    padding: 0.9rem 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--primary);
    border-top: 1px solid var(--border);
    font-weight: 600;
    transition: background 0.2s;
}

.block__footer:hover {
    background: rgba(0, 200, 83, 0.08);
    color: var(--primary);
}

/* ═══════════════════════════════════════════
   BLOC · NAVBAR
═══════════════════════════════════════════ */
.block--navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.block--navbar .nav-link {
    color: var(--text-muted) !important;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.2s;
    font-size: 0.92rem;
}

.block--navbar .nav-link:hover,
.block--navbar .nav-link.active {
    color: var(--primary) !important;
}

.block--navbar .navbar-brand {
    padding: 0.25rem 0;
}

/* ═══════════════════════════════════════════
   BLOC · TICKER
═══════════════════════════════════════════ */
.block--ticker {
    background: linear-gradient(90deg, #050810, #0a0e1a, #050810);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    overflow: hidden;
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.ticker {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ticker-item .score-tag {
    background: rgba(0, 200, 83, 0.15);
    color: var(--primary);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
}

.ticker-item .live-tag {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    animation: blink 1.2s infinite;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   BLOC · HERO
═══════════════════════════════════════════ */
.block--hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 200, 83, 0.18), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 193, 7, 0.10), transparent 45%),
        linear-gradient(135deg, #0a0e1a 0%, #111827 60%, #0a0e1a 100%);
    border-bottom: 1px solid var(--border);
}

/* Featured match (sous-bloc du hero) */
.block--featured-match {
    background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.block--featured-match::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.featured-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.team-box {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.team-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.6rem;
    background: linear-gradient(135deg, #1a2234, #0f172a);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.team-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.team-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    letter-spacing: 4px;
    white-space: nowrap;
    line-height: 1;
}

/* ═══════════════════════════════════════════
   BLOC · FILTRES
═══════════════════════════════════════════ */
.block--filters {
    background: #0a0e1a;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.filters-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
    justify-content: center;
}

.filters-scroll::-webkit-scrollbar {
    height: 4px;
}

.filters-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-3);
    border-radius: 4px;
}

.filters-scroll .btn {
    white-space: nowrap;
    font-size: 0.82rem;
}

.filters-scroll .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #0a0e1a;
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   BLOC · LIVE ZONE (composite)
═══════════════════════════════════════════ */
.block--live-zone {
    padding: var(--space-block) 0;
}

.block--live,
.block--standings,
.block--scorers {
    padding: 0;
}

/* Match cards */
.match-card {
    background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    color: var(--text);
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 200, 83, 0.15);
}

.match-card .league {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.match-card .teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2rem 0;
    gap: 0.5rem;
}

.match-card .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.match-card .team-logo {
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border-width: 1.5px;
}

.match-card .team span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.match-card .score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    padding: 0 0.6rem;
    white-space: nowrap;
    letter-spacing: 2px;
    line-height: 1;
}

.match-card .time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   BLOC · CLASSEMENT
═══════════════════════════════════════════ */
.block--standings,
.block--scorers {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.block--standings .block__header,
.block--scorers .block__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 200, 83, 0.04);
    margin-bottom: 0;
}

.block--standings .block__title,
.block--scorers .block__title {
    font-size: 1rem;
}

.block--standings .block__title::before,
.block--scorers .block__title::before {
    height: 20px;
    width: 4px;
}

.standings-table {
    color: var(--text);
    font-size: 0.85rem;
    margin: 0;
}

.standings-table thead th {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
}

.standings-table tbody td {
    border-color: var(--border);
    padding: 0.6rem 0.8rem;
    vertical-align: middle;
    color: var(--text);
}

.standings-table tbody tr:hover {
    background: rgba(0, 200, 83, 0.05);
}

.pos-badge {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-3);
    color: var(--text-muted);
}

.pos-1 {
    background: rgba(0, 200, 83, 0.2);
    color: var(--primary);
}

.pos-2 {
    background: rgba(0, 200, 83, 0.12);
    color: var(--primary-light);
}

.pos-3 {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

/* ═══════════════════════════════════════════
   BLOC · TOP BUTEURS
═══════════════════════════════════════════ */
.top-scorers li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.top-scorers li:last-child {
    border-bottom: none;
}

.top-scorers li:hover {
    background: rgba(0, 200, 83, 0.05);
}

.scorer-rank {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--text-muted);
    min-width: 28px;
}

.scorer-rank.gold {
    color: var(--warning);
}

.scorer-info {
    flex: 1;
    min-width: 0;
}

.scorer-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scorer-team {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.scorer-goals {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
}

/* ═══════════════════════════════════════════
   BLOC · CALENDRIER (FIXTURES)
═══════════════════════════════════════════ */
.fixtures-table {
    color: #111827 !important;
    font-size: 0.9rem;
    margin: 0;
    background: #fff;
}

.fixtures-table thead th {
    background: #0a0e1a !important;
    color: #fff !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem;
    border: none;
    font-weight: 600;
}

.fixtures-table tbody td {
    padding: 0.9rem;
    border-color: #e5e7eb;
    vertical-align: middle;
    color: #111827 !important;
    background: #fff;
}

.fixtures-table tbody tr:hover td {
    background: #f0fdf4 !important;
}

.fixtures-table .comp-tag {
    background: #0a0e1a;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.fixtures-table .text-muted {
    color: #6b7280 !important;
}

/* ═══════════════════════════════════════════
   BLOC · ARTICLES
═══════════════════════════════════════════ */
.article-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 200, 83, 0.12);
}

.article-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-3);
    position: relative;
    flex-shrink: 0;
}

.article-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 26, 0.9) 100%);
}

.article-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #0a0e1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: 0.5px;
}

.article-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-meta i {
    color: var(--primary);
}

/* ═════════════════════════════
