/* CARD */
.card.error {
    border: 1px solid red;
    opacity: 0.6;
}

.card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(31,139,255,0.25);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: var(--text-muted);
}

.card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}
.map-card {
    background-size: cover;
    background-position: center;
    height: 220px;
    position: relative;
    color: white;
    border-radius: 14px;
    overflow: hidden;
}

.map-card .overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.tag {
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px; /* bien arrondi */
    white-space: nowrap;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;

    max-width: 1200px;   /* limite la largeur */
    margin: 0 auto;      /* centre horizontalement */
}