.last-match-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif;
    max-width: 500px;
}

.last-match-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.last-match-header h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.match-date {
    font-size: 14px;
    color: #666;
}

.match-competition {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.match-result-wrapper {
    position: relative;
    padding: 30px 15px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.match-win {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.match-draw {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.match-loss {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.match-pending {
    background-color: rgba(158, 158, 158, 0.1);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.match-result-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.match-win .match-result-badge {
    background-color: #4CAF50;
}

.match-draw .match-result-badge {
    background-color: #FF9800;
}

.match-loss .match-result-badge {
    background-color: #F44336;
}

.match-pending .match-result-badge {
    background-color: #9E9E9E;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team-highlight {
    font-weight: bold;
}

.team-highlight .team-name {
    color: #1a237e;
}

.team-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.team-name {
    text-align: center;
    font-size: 14px;
}

.match-score {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.score-separator {
    margin: 0 5px;
    color: #666;
}

.match-win .score-home, .match-win .score-away {
    color: #2e7d32;
}

.match-loss .score-home, .match-loss .score-away {
    color: #c62828;
}

.match-actions {
    text-align: center;
    margin-top: 10px;
}

.match-details-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3f51b5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.match-details-btn:hover {
    background-color: #303f9f;
}

.no-match-container {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.no-match-message {
    color: #666;
    font-style: italic;
}

/* Media queries pour la responsivité */
@media screen and (max-width: 480px) {
    .match-teams {
        flex-direction: column;
    }

    .team {
        width: 100%;
        margin-bottom: 15px;
    }

    .match-score {
        margin: 10px 0;
    }

    .match-result-wrapper {
        padding: 35px 10px 15px;
    }
}

.next-matches-container {
    margin-bottom: 2rem;
}

.next-match-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.match-teams-wrapper {
    padding: 0.75rem 0;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team-highlight {
    font-weight: bold;
}

.team-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-name {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.match-vs {
    font-weight: bold;
    color: #888;
}

.match-actions {
    text-align: center;
    margin-top: 0.75rem;
}

.match-details-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f2f2f2;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.match-details-btn:hover {
    background-color: #e5e5e5;
}
