/* ============================================
   Activités à Proximité — Frontend Styles
   ============================================ */

.ap-heading {
    margin-bottom: 1.2em;
    font-size: 1.4em;
}

/* --- Grille --- */
.ap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

/* --- Liste --- */
.ap-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.ap-list .ap-card {
    flex-direction: row;
    max-width: 100%;
}

.ap-list .ap-thumb {
    flex: 0 0 160px;
    max-width: 160px;
}

.ap-list .ap-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* --- Carte --- */
.ap-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.ap-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.ap-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.ap-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .4rem;
}

.ap-cat {
    font-size: .72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6366f1;
}

.ap-card-title {
    font-size: 1em;
    margin: 0;
    line-height: 1.35;
}

.ap-card-title a {
    text-decoration: none;
    color: inherit;
}

.ap-card-title a:hover {
    color: #6366f1;
}

.ap-excerpt {
    font-size: .85em;
    color: #6b7280;
    margin: 0;
    flex: 1;
}

.ap-btn {
    display: inline-block;
    margin-top: .6rem;
    font-size: .82em;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
}

.ap-btn:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .ap-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ap-list .ap-card {
        flex-direction: column;
    }
    .ap-list .ap-thumb {
        flex: none;
        max-width: 100%;
    }
}
