/* PEGGASE · Accueil · blocs « Notre sélection » (SNG) et « C'est signé ! » · 19/11/2026
   Couche pegcartes déclarée en premier dans <head> : ses !important priment. */
@layer pegcartes{

/* ---------- Annonces SNG ---------- */
html body section#residences .sx-grid{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:24px !important;align-items:stretch !important}
html body section#residences article.sx-card{display:flex !important;flex-direction:column !important;padding:8px !important;margin:0 !important;
  background:#FFFFFF !important;background-image:none !important;border:1px solid rgba(143,163,199,.55) !important;border-radius:18px !important;
  box-shadow:0 1px 2px rgba(22,41,79,.04),0 14px 28px -24px rgba(22,41,79,.22) !important;overflow:hidden !important;min-width:0 !important;height:100% !important;box-sizing:border-box !important}
html body section#residences article.sx-card a.sx-vis{display:block !important;aspect-ratio:5/4 !important;width:100% !important;height:auto !important;
  border:0 !important;border-radius:12px !important;box-shadow:none !important;overflow:hidden !important;background:#EEF1F6 !important;flex:0 0 auto !important}
html body section#residences article.sx-card a.sx-vis picture,
html body section#residences article.sx-card a.sx-vis img{display:block !important;width:100% !important;height:100% !important;object-fit:cover !important;border-radius:12px !important;transform:none !important}
/* Cadrage photo par photo (sources 5:4 : image entière, marquage SNG jamais coupé) */
html body section#residences .sx-acheter .sx-vis img{object-position:50% 100% !important}
html body section#residences .sx-louer .sx-vis img{object-position:50% 100% !important}
html body section#residences .sx-investir .sx-vis img{object-position:50% 100% !important}
html body section#residences .sx-vendre .sx-vis img{object-position:50% 100% !important}
html body section#residences .sx-badge{top:10px !important;left:10px !important}

html body section#residences article.sx-card .sx-body{display:flex !important;flex-direction:column !important;flex:1 1 auto !important;padding:16px 10px 10px !important;gap:0 !important}
html body section#residences .sx-place{white-space:normal !important;overflow-wrap:anywhere !important;line-height:1.45 !important;margin:0 0 8px !important}
html body section#residences .sx-typ{margin:0 0 2px !important}
html body section#residences .sx-price{margin:14px 0 4px !important;white-space:normal !important}
html body section#residences .sx-price small{display:inline !important;white-space:normal !important}
html body section#residences .sx-sub{font-size:11.5px !important;line-height:1.5 !important;color:#5F6B7D !important;-webkit-text-fill-color:#5F6B7D !important;margin:0 0 16px !important;white-space:normal !important}
html body section#residences article.sx-card .sx-body .sx-cta{margin-top:auto !important;align-self:flex-start !important}
html body section#residences article.sx-vendre{background:#FFFFFF !important}

@media (max-width:1100px){
  html body section#residences .sx-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:20px !important}
}
@media (max-width:640px){
  html body section#residences .sx-grid{grid-template-columns:1fr !important;gap:18px !important}
  html body section#residences article.sx-card .sx-body{padding:16px 12px 12px !important}
}

/* ---------- C'est signé ! ---------- */
html body section#temoignages .tv-row{align-items:stretch !important}
html body section#temoignages article.tv-ph{display:flex !important;flex-direction:column !important;padding:8px 8px 22px !important;
  background:#FFFFFF !important;border:1px solid rgba(143,163,199,.55) !important;border-radius:20px !important;
  box-shadow:0 1px 2px rgba(22,41,79,.04),0 14px 28px -24px rgba(22,41,79,.22) !important;overflow:hidden !important;height:auto !important;box-sizing:border-box !important}
html body section#temoignages article.tv-ph > img{aspect-ratio:4/5 !important;width:100% !important;height:auto !important;object-fit:cover !important;
  border:0 !important;border-radius:14px !important;box-shadow:none !important;transform:none !important}
html body section#temoignages article.tv-ph:hover > img{transform:none !important;box-shadow:none !important}
/* Cadrage photo par photo */
html body section#temoignages article.tv-ph > img[src*="caroline-2026"]{object-position:50% 62% !important}
html body section#temoignages article.tv-ph > img[src*="62c9b495"]{object-position:50% 42% !important}  /* Emma : visage + geste */
html body section#temoignages article.tv-ph > img[src*="4241e580"]{object-position:40% 18% !important}  /* sœurs : air autour du visage */
html body section#temoignages article.tv-ph > img[src*="db76fb00"]{object-position:55% 62% !important}  /* personne + signature */
html body section#temoignages article.tv-ph > img[src*="614e7be3"]{object-position:51% 50% !important}  /* les deux visages */

/* Date sous la photo, au-dessus du nom : même structure partout */
html body section#temoignages article.tv-ph .tv-pt{position:static !important;inset:auto !important;display:flex !important;flex-direction:column-reverse !important;align-items:flex-start !important;text-align:left !important;gap:4px !important;margin:16px 10px 0 !important;z-index:auto !important}
html body section#temoignages article.tv-ph .tv-pd{display:block !important;position:static !important;background:none !important;border:0 !important;box-shadow:none !important;backdrop-filter:none !important;
  padding:0 !important;margin:0 !important;font:500 12px/1.3 Manrope,Inter,system-ui,sans-serif !important;letter-spacing:.02em !important;text-transform:none !important;
  color:#2F5BD3 !important;-webkit-text-fill-color:#2F5BD3 !important}
html body section#temoignages article.tv-ph .tv-pn{display:block !important;position:static !important;clip:auto !important;clip-path:none !important;width:auto !important;height:auto !important;overflow:visible !important;opacity:1 !important;font:650 15.5px/1.3 Manrope,Inter,system-ui,sans-serif !important;
  color:#173480 !important;-webkit-text-fill-color:#173480 !important;background:none !important;padding:0 !important;margin:0 !important;text-shadow:none !important;white-space:normal !important}
html body section#temoignages article.tv-ph .tv-pq{text-align:left !important;margin:12px 10px 0 !important;padding:12px 0 0 !important;border-top:1px solid rgba(143,163,199,.55) !important;
  white-space:normal !important;overflow:visible !important;display:block !important;-webkit-line-clamp:unset !important;max-height:none !important;font-size:17px !important;line-height:1.45 !important}
html body section#temoignages article.tv-ph .tv-pq::before{content:none !important;display:none !important}
}
@layer pegcartes{
@media (min-width:1101px){
  html body section#residences .sx-grid:has(> article.sx-card:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:18px !important}
  html body section#residences .sx-grid:has(> article.sx-card:nth-child(5)) .sx-cta{font-size:12.5px !important;padding:0 12px !important}
}
}
