/* ==========================================
   COMPOSANT CARD PRESTATAIRE
========================================== */
.prestataire-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-card-wrapper .prestataire-card {
    width: 100%;
    margin: 0;
    max-height: 550px !important;
}

.carousel-card-wrapper .prestataire-card .card-content {
    display: flex;
    flex-direction: column;
    max-height: 300px !important;
}

.prestataire-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image - HAUTEUR FIXE */
.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prestataire-card:hover .card-image img {
    transform: scale(1.05);
}

/* Badges */
.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-featured-home {
    background: #2C2961;
    color: white;
}

.badge-featured {
    background: #D8A807;
    color: white;
}

.badge-cles-en-main {
    background: #10B981;
    color: white;
}

.badge i {
    font-size: 10px;
}

/* Contenu - Prend toute la hauteur restante */
.card-content {
    padding: 16px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Titre - HAUTEUR FIXE */
.card-title {
    font-size: 24px;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    color: #1F1A47;
    margin: 0 0 12px 0;
    line-height: 22px;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* Informations - HAUTEUR MINIMUM FIXE */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 96px;
    /* Espace pour 2 lignes d'info */
    flex-shrink: 0;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.4;
}

.card-info-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Catégories - HAUTEUR FIXE */
.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 60px;
    /* Espace fixe pour les catégories */
    align-content: flex-start;
    flex-shrink: 0;
}

.card-category-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: capitalize;
    height: fit-content;
}

/* SPACER - Prend tout l'espace restant */
.card-spacer {
    flex: 1;
}

/* Trait de séparation */
.card-divider {
    width: 100%;
    height: 1px;
    background: #E5E7EB;
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.card-price {
    font-size: 16px;
    color: #D8A807;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    line-height: 1.3;
}

.card-btn-icon {
    width: 32px;
    height: 32px;
    background: #1F1A47;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.prestataire-card:hover .card-btn-icon {
    background: #D8A807;
    transform: translateX(4px);
}

.card-btn-mascot {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ==========================================
   LAYOUT LIST
========================================== */
.prestataire-card-list {
    flex-direction: row;
}

.prestataire-card-list .card-link {
    flex-direction: row;
}

.prestataire-card-list .card-image {
    width: 240px;
    height: auto;
    flex-shrink: 0;
}

.prestataire-card-list .card-content {
    flex: 1;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .card-image {
        height: 160px;
    }

    .card-title {
        font-size: 15px;
        height: 42px;
        line-height: 21px;
    }

    .card-info {
        min-height: 80px;
    }

    .card-categories {
        min-height: 50px;
    }

    .card-info-item {
        font-size: 12px;
    }

    .card-content {
        padding: 14px;
    }

    .card-price {
        font-size: 12px;
    }

    .card-btn-icon {
        width: 28px;
        height: 28px;
    }

    .card-btn-mascot {
        width: 16px;
        height: 16px;
    }

    .card-info-icon {
        width: 32px;
        height: 32px;
    }

    .prestataire-card-list {
        flex-direction: column;
    }

    .prestataire-card-list .card-link {
        flex-direction: column;
    }

    .prestataire-card-list .card-image {
        width: 100%;
        height: 160px;
    }
}

/* Catégorie principale - au-dessus de la ville */
.card-primary-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #6b7280;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    margin-bottom: 8px;
}

/* Image de l'icône de catégorie */
.card-category-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Icône Font Awesome */
.card-primary-category i {
    font-size: 16px;
    color: #D8A807;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}