.matching-game {

    display: flex;
    justify-content: center;
    align-items: flex-start;

    gap: 60px;

    margin-top: 50px;
}

.matching-column {

    display: flex;
    flex-direction: column;

    gap: 16px;
}

.matching-item {

    min-width: 260px;

    padding: 16px 22px;

    border-radius: 10px;

    border: 2px solid #ccc;

    background-color: #f2f2f2;

    color: #333;

    font-size: 17px;
    font-weight: 500;

    text-align: center;

    cursor: pointer;

    transition: all 0.25s ease;
}

.matching-item:hover {

    transform: translateY(-2px);

    border-color: #39C6CD;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Bouton sélectionné */

.matching-item.selected {

    background-color: #39C6CD;

    color: white;

    border-color: #39C6CD;

    box-shadow: 0 0 0 4px rgba(57,198,205,0.25);
}

/* Bonne réponse */

.matching-item.correct {

    background-color: #4CAF50;

    border-color: #4CAF50;

    color: white;
}

/* Mauvaise réponse */

.matching-item.wrong {

    background-color: #E74C3C;

    border-color: #E74C3C;

    color: white;
}

@media (max-width: 768px) {


      .matching-game {
        display: flex;
        gap: 10px;
    }

    .matching-column {
        flex: 1;
    }

    .matching-item {
        padding: 10px;
        font-size: 14px;
        min-height: 60px;

        display: flex;
        align-items: center;
        justify-content: center;

        text-align: center;
        word-break: break-all;
    }

}
.matching-success {

    background: #4CAF50;

    color: white;

    padding: 25px 35px;

    border-radius: 12px;

    font-size: 22px;

    font-weight: 600;

    text-align: center;
}
.matching-end-screen {

    text-align: center;
    padding: 40px 20px;

}

.matching-end-screen h2 {

    font-size: 32px;
    margin-bottom: 20px;

}

.matching-score {

    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;

}

.matching-end-actions {

    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;

}

.restart-btn,
.back-series-btn {

    background-color: #39C6CD;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;

}

.restart-btn:hover,
.back-series-btn:hover {

    transform: translateY(-2px);
    opacity: 0.9;

}