/* 1) Container principal */
.container h1,
.container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 40px !important;
}

/* Container de la carte */
.cheval-card {
    background: #FFFEFC;
    border-radius: 16px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* 1) Photo */
.cheval-card__thumb img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* 2) Bandeau titre */
.cheval-card__title-band {
    background-color: #C1E7DF;
    text-align: center;
    padding: 4px;
    border-radius: 0 0 50px 50px;
    font-size: 19px;
    /* ~18px */
    font-weight: bold;
    color: #2D2216;
    font-family: 'libre baskerville';
}

/* 3) Corps de la carte */
.cheval-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Extrait / description */
.cheval-card__excerpt {
    font-size: 0.875rem;
    /* ~14px */
    line-height: 1.5;
    color: #2D2216;
    margin-bottom: 1rem;
}

/* Meta (deux colonnes) */
.cheval-card__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.meta-item {
    flex: 1;
    text-align: center;
}

.meta-item__label {
    font-size: 1rem;
    /* ~16px */
    font-weight: 600;
    color: #2D2216;
}

.meta-item__value {
    font-size: 0.75rem;
    /* ~12px */
    text-transform: uppercase;
    color: #4F4F4F;
    margin-top: 0.25rem;
}

/* Filtres de tri */
.cheval-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.cheval-filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: #2D2216;
    font-weight: 600;
    margin: 0;
}

.cheval-filters select,
.cheval-filters input {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #C1E7DF;
    border-radius: 8px;
    background: #FFFEFC;
    font-size: 0.875rem;
    color: #2D2216;
    appearance: none;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Bouton filtrer */
.cheval-filters .btn-filter {
    height: 40px;
    width: 100px;
    background-color: #C1E7DF;
    color: #2D2216;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 0;
}

.cheval-filters .btn-filter:hover {
    background-color: #F4CFA3;
    color: #2D2216;
}

.no-horse {
    width: 90%;
    margin: 0 auto;
    background-color: #FFFEFC;
    padding: 100px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Desktop : 3 colonnes */
@media (min-width: 768px) {

    .container h1,
    .container h2 {
        margin-bottom: 40px;
    }

    .btn-switch {
        margin-bottom: 60px !important;
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cheval-card {
        width: calc(33.325% - .66rem);
        margin: 0;
        margin-bottom: 20px;
    }

    .cheval-card__title-band {
        font-size: 22px;
    }

    .no-horse {
        width: 100%;
    }

    .cheval-filters .btn-filter {
        width: 50px;
        margin-top: 1.5rem;
    }
}