/* AyetamA Réseau — pages de recherche : annonces de même taille (v2.8.196).
   Mode « grille » uniquement (le mode « liste » n'est pas touché).
   Comme sur la page Annonces : photo en haut au même format 16/10, titre sur 2 lignes
   au plus, description sur 3 lignes au plus, boutons alignés en bas, et toutes les
   lignes de la grille ont la même hauteur. Feuille à part (nom neuf), chargée en dernier. */

/* Toutes les lignes ont la hauteur de la plus haute annonce ; même espace entre les annonces. */
html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-cartes {
	grid-auto-rows: 1fr;
	column-gap: 18px;
	row-gap: 18px;
}

html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-carte-li {
	display: flex;
	margin: 0;
}

/* Carte : colonne unique (photo au-dessus du texte), remplit toute la case de la grille. */
html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-rc {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Photo : même format pour toutes les annonces. */
html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-th {
	flex: 0 0 auto;
	width: 100%;
	min-height: 0;
	aspect-ratio: 16 / 10;
}

/* Texte : occupe la place restante, les boutons restent en bas. */
html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-corps {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-rc h3 {
	display: -webkit-box;
	min-height: 2.6em;
	padding-right: 0;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-desc span {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-m {
	padding-right: 0;
}

html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-actions {
	margin-top: auto;
	padding-top: 12px;
}

/* Cœur des favoris sur la photo, comme sur les annonces étroites. */
html body .ayap-sr:not(.ayap-sr--liste) .ayap-sr-rc .ayap-btn-favori {
	top: 20px;
	right: 20px;
}
