﻿/* Cartes tonics alignées sur le style gins */
.tonic-card-modern {
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.05);
    background: #fff;
    overflow: hidden;
    transition: box-shadow .35s cubic-bezier(.2,.8,.2,1), transform .25s;
    min-height: 420px;
    max-width: 320px;
    min-width: 320px;
    height: 420px;
    margin: 10px auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .tonic-card-modern:hover {
        box-shadow: 0 6px 32px rgba(0,0,0,0.15), 0 3px 12px rgba(0,0,0,0.10);
        transform: translateY(-4px);
    }

.tonic-card-header {
    height: 54px;
    width: 100%;
    background: linear-gradient(90deg, var(--gin-primary,#BC70A4), var(--gin-secondary,#BFD641));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tonic-card-badge {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.09);
    width: 36px;
    height: 36px;
    border: 3px solid var(--gin-primary,#BC70A4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gin-primary,#BC70A4);
    font-size: 0.95rem;
}

.tonic-card-image {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 150px;
    height: 190px;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    border: 2.5px solid var(--gin-primary,#BC70A4);
    transition: filter .18s;
}

.tonic-card-modern:hover .tonic-card-image {
    filter: drop-shadow(0 10px 26px rgba(0,0,0,0.18));
}

.tonic-card-content {
    padding: 155px 18px 16px 18px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tonic-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 2px;
    text-align: center;
    color: #222;
    line-height: 1.15;
}

.tonic-card-sub {
    line-height: 1.1;
}

.tonic-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
    flex-wrap: wrap;
}

    .tonic-card-rating .fa-star,
    .tonic-card-rating .fa-star-half-stroke,
    .tonic-card-rating .fa-regular.fa-star {
        color: darkgoldenrod;
        font-size: 0.9rem;
    }

.tonic-card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .tonic-card-actions .details-btn {
        font-size: 1.2rem;
        color: var(--gin-primary,#BC70A4);
        border-radius: 10px;
        padding: 6px 12px;
        transition: background .18s, color .18s;
    }

        .tonic-card-actions .details-btn:hover {
            background: var(--gin-primary,#BC70A4);
            color: #fff;
        }

/* Mini rating dans le collapse */
.star-btn-mini {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--gin-primary,#BC70A4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    color: var(--gin-primary,#BC70A4);
    background: #fff;
    transition: .15s;
}

    .star-btn-mini:hover,
    .star-btn-mini.active {
        background: var(--gin-primary,#BC70A4);
        color: #fff;
    }

/* Réutilisation des styles de filtres déjà présents dans Gins.css (input-with-icon / select-with-icon) */
/* Optionnel: ajustements responsive */
@media (max-width: 880px) {
    .tonic-card-modern {
        max-width: 300px;
        min-width: 300px;
        height: 410px;
    }

    .tonic-card-image {
        width: 140px;
        height: 175px;
    }
}
