/* ==========================================================================
   CARDS COMPONENTS - Styles spécifiques
   ========================================================================== */

/* ===== STYLES POUR LES CARTES D'ACTIVITÉS ===== */
.activity-card {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 420px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.activity-image {
    height: 180px;
    overflow: hidden;
}

.activity-image img {
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-details {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.activity-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.5;
    max-height: 65px;
    overflow: hidden;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.activity-meta span {
    display: flex;
    align-items: center;
}

.activity-meta i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.activity-btn {
    align-self: flex-start;
    border-radius: 20px;
    font-weight: 500;
    padding: 6px 16px;
    font-size: 0.85rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.activity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Style alternatif pour les cartes d'activités avec image en ratio */
.activity-card-ratio .activity-image {
    position: relative;
    height: 0;
    padding-bottom: 75%;
}

.activity-card-ratio .activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

/* Badge de catégorie */
.activity-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== STYLES POUR LES CARTES DE CATÉGORIES ===== */
.category-card {
    display: block;
    height: 250px;
    position: relative;
    text-decoration: none;
}

.category-image {
    height: 100%;
}

.category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    z-index: 2;
}

/* Style alternatif pour les cartes de catégories avec ratio carré */
.category-card-square {
    height: 0;
    padding-bottom: 100%;
}

.category-card-square .category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.category-card-square .category-title {
    background: transparent;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
}

/* ===== STYLES POUR LES CARTES DE CONSEILS ET D'INFORMATIONS ===== */
.tip-card {
    padding: 1.5rem;
    height: 100%;
}

.info-card {
    padding: 2rem;
    height: 100%;
}

/* ===== STYLES POUR LA GRILLE D'ACTIVITÉS ===== */
.activities-grid {
    margin-bottom: 35px;
}

.activities-grid .row {
    margin-bottom: 5px;
}

.top-activities-section {
    padding: 60px 0 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .activity-title, .category-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .activity-card {
        margin-bottom: 20px;
        max-height: none;
    }
    
    .activity-image {
        height: 160px;
    }
    
    .activity-details {
        padding: 15px;
    }
}

@media (max-width: 575.98px) {
    .activity-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: none;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}