.grille-annonces {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 40px;
}
.carte-annonce {
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.carte-annonce:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.carte-annonce-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f2f2f2;
    overflow: hidden;
}
.carte-annonce-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carte-annonce-infos {
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}
.carte-annonce-statut-ligne {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.carte-annonce-statut {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.carte-annonce-statut-vendre {
    background: #003366;
}
.carte-annonce-statut-louer {
    background: #e08a00;
}
.carte-annonce-statut-donner {
    background: #2e8b57;
}
.carte-annonce-offre {
    color: #003366;
    font-size: 14px;
}
.carte-annonce-titre {
    font-size: 14px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carte-annonce-prix {
    font-size: 15px;
    font-weight: 700;
    color: #003366;
    text-align: center;
}
.aucune-annonce {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

/* ---- Cartes avec boutons (Mes annonces, Favoris) ---- */
.carte-annonce-avec-actions {
    display: flex;
    flex-direction: column;
}
.carte-annonce-lien {
    display: block;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}
.carte-annonce-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 10px;
    border-top: 1px solid #eeeeee;
}
.carte-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #3370B7;
    border-radius: 4px;
    background: #ffffff;
    color: #3370B7;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.carte-action:hover {
    background: #EAF3FF;
}
.carte-action-supprimer {
    border-color: #B22222;
    color: #B22222;
}
.carte-action-supprimer:hover {
    background: #fdecea;
}
/* Favoris : poubelle seule, sans cadre, alignee a droite */
.carte-annonce-actions-favori {
    justify-content: flex-end;
    padding-right: 5px;
}
.carte-action-retirer {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #B22222;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.carte-action-retirer:hover {
    color: #7f1515;
}
