/* 29/10/2026 (Anthony) : vignettes plus discrètes.
   - Filigrane « Abracadeal » des photos importées : plus petit et transparent sur les vignettes (la page annonce garde le sien).
   - Cœur et Partager : petits boutons « verre fumé » côte à côte en haut à droite, au lieu de deux pastilles blanches empilées. */
html body :is(.ad-photo,.personalized-photo,.home-featured-photo,.detail-related-photo,.b2b-listing-photo) .photo-watermark.photo-watermark--overlay{
  opacity:.42!important;font-size:.6rem!important;right:7px!important;bottom:5px!important;
  -webkit-text-stroke:0!important;text-shadow:0 1px 3px rgba(0,0,0,.45)!important;letter-spacing:.03em!important}
html body .card-photo-actions,html body .ad-card .card-photo-actions,html body .immo-card .card-photo-actions,
html body #resultats .card-photo-actions,html body .ad-photo .card-photo-actions{
  flex-direction:row!important;align-items:center!important;gap:5px!important;top:7px!important;right:7px!important}
html body .card-photo-actions .share-action{order:-1!important}
html body .card-photo-actions .favorite-action{order:0!important}
html body .card-photo-actions .card-action-btn,html body #resultats .card-photo-actions .card-action-btn,
html body :is(#homeFeaturedSection,#recentSearchSection,#recentViewedSection,#nearbySection) .card-photo-actions .card-action-btn{
  height:28px!important;min-width:28px!important;width:auto!important;padding:0 6px!important;
  background:rgba(20,8,30,.30)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;
  box-shadow:none!important;-webkit-backdrop-filter:blur(6px)!important;backdrop-filter:blur(6px)!important;font-size:.9rem!important}
html body .card-photo-actions .card-action-btn:hover{background:rgba(20,8,30,.48)!important}
html body .card-photo-actions .card-action-btn .share-node-icon{width:13px!important;height:13px!important;stroke:#fff!important}
html body .card-photo-actions .favorite-action.active{color:#ff62b8!important;background:rgba(20,8,30,.40)!important}
html body .card-photo-actions .card-action-btn .fav-count-inline{font-size:.66rem!important;color:#fff!important}
@media (max-width:760px){
  html body .card-photo-actions .card-action-btn,html body #resultats .card-photo-actions .card-action-btn{height:26px!important;min-width:26px!important;padding:0 5px!important}
}

/* 29/10/2026 (Anthony) : textes des cartes « Les annonces » plus petits, comme les cartes du haut (Récemment consultées) :
   titre sur 2 lignes maximum, prix et caractéristiques plus compacts. */
html body #resultats .ad-card.ad-card .ad-title{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;
  min-height:0!important;margin:0 0 4px!important}
@media (max-width:760px){
  html body #resultats .ad-card.ad-card .ad-title{font-size:13px!important;line-height:1.25!important;font-weight:800!important}
  html body #resultats .ad-card.ad-card .ad-price{font-size:16px!important;line-height:1.15!important;margin-bottom:5px!important}
  html body #resultats .ad-card.ad-card .ad-specs{font-size:10.5px!important;gap:2px 6px!important;margin-bottom:5px!important}
  html body #resultats .ad-card.ad-card .ad-city,html body #resultats .ad-card.ad-card .ad-meta{font-size:10.5px!important}
}

/* 29/10/2026 (Anthony) : vignettes des annonces plus longues sur mobile et tablette, comme Leboncoin :
   photo un peu plus haute que large (6/7) au lieu de la bande paysage de 108 px. La photo remplit
   toujours la vignette (cadrage géré par thumb-fit-20261009.js). Ordinateur inchangé. */
@media (max-width:760px){
  html body main#top #resultats .ad-card .ad-photo,
  html body main#top #resultats .ad-card.immo-card .ad-photo{
    flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:6/7!important}
  html body main#top #resultats .ad-card .ad-photo img{width:100%!important;height:100%!important;object-fit:cover!important}
  /* 31/10/2026 (Anthony) : image par défaut (annonce sans photo) affichée entière dans la vignette, pas rognée. */
  html body main#top #resultats .ad-card .ad-photo img.abraca-default-photo{object-fit:contain!important;background:#1b052f!important}
  html body main#top #resultats .ad-card .ad-photo:has(img.abraca-default-photo){background:#1b052f!important}
}

/* 30/10/2026 (Anthony) : textes des vignettes. Caractéristiques véhicule sur une seule ligne de texte
   (« 2019 · 84 500 km · Diesel · Manuelle », 2 lignes max), sans émojis, et ville sur une ligne
   avec un petit pictogramme dessiné. Plus de mots coupés (« km » ou « Automatique » seuls à la ligne). */
html body .ad-specs.ad-specs-line{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  overflow:hidden!important;grid-template-columns:none!important;gap:0!important;line-height:1.35!important;white-space:normal!important;max-height:2.7em!important}
html body .ad-specs.ad-specs-line .ad-spec{display:inline!important;white-space:nowrap!important;padding:0!important;background:none!important;border:0!important}
html body .ad-specs.ad-specs-line .ad-spec-sep{opacity:.6}
html body :is(.ad-city,.home-featured-city),html body main#top #resultats .ad-card.ad-card .ad-city{display:block!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .ad-city-pin{display:inline-block;vertical-align:-1px;margin-right:4px;width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:.85}

/* 30/10/2026 (Anthony) : fenêtre « Erreurs de flux » de l'admin : pastille « À surveiller / À traiter » bien visible,
   et nom du flux lisible (il était blanc sur fond clair). */
html body .flow-error-card .flow-error-head .small{color:#6f5a78!important;font-size:.8rem}
html body .flow-error-card .flow-error-pill{font-size:.75rem!important;font-weight:900!important;padding:5px 10px!important;white-space:nowrap}
html body .flow-error-card.warning .flow-error-pill{background:#f5c46b!important;color:#5a3a00!important}
html body .flow-error-card.error .flow-error-pill{background:#e5484d!important;color:#fff!important}

/* 30/10/2026 (Anthony) : le filigrane « Abracadeal » (en bas à droite de la photo) passait sur le compteur « 1 / N ».
   Le compteur de photos de la page annonce passe en bas à gauche. */
html body .detail-photo-count,html body #detailModal .detail-photo-count{right:auto!important;left:12px!important;bottom:12px!important}
@media (max-width:760px){html body #detailModal .detail-photo-count,html body .detail-photo-count{left:10px!important;bottom:10px!important}}

/* 01/11/2026 (Anthony, Life Cars : photo à moitié cachée) : avec beaucoup de photos, la colonne des miniatures dépassait l'écran,
   la ligne de la grille grandissait et la grande photo descendait sous la barre du bas. Miniatures défilantes, photo toujours entière. */
.photo-lightbox-inner{grid-template-rows:minmax(0,1fr)!important}
.photo-lightbox-stage{min-height:0!important;max-height:100%!important;overflow:hidden}
.photo-lightbox-side{max-height:100%!important;overflow-y:auto!important;align-self:center;overscroll-behavior:contain;padding-right:4px}

/* 01/11/2026 : photo en hauteur affichée entière sur fond flou (classe posée par card-photo-fit-20261101.js). */
.photo-fit{position:relative;overflow:hidden;isolation:isolate;background:#140a1c!important}
.photo-fit::before{content:"";position:absolute;inset:-24px;background:var(--photo-bg) center/cover no-repeat;filter:blur(18px) brightness(.62) saturate(1.1);z-index:-1;pointer-events:none}
.photo-fit>img,html body main#top #resultats .ad-card .ad-photo.photo-fit img{object-fit:contain!important;background:transparent!important}

/* 08/11/2026 (Anthony : « ça clignote encore un peu » sur « À la une », mobile) : les cartes à la une ont un halo doré animé
   et un badge doré animé, posés sur la photo et son fond flou. Sur iPhone, chaque image de l'animation redessinait aussi la
   photo (et son flou) → léger scintillement. La zone photo, son fond flou et le badge ont maintenant chacun leur propre calque :
   l'animation continue, mais la photo n'est plus redessinée. */
.ad-photo,.home-featured-photo,.personalized-photo{transform:translateZ(0);-webkit-transform:translateZ(0);contain:paint;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.ad-photo>img,.home-featured-photo>img,.personalized-photo>img{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}
.photo-fit::before{transform:translateZ(0);will-change:transform}
.featured-badge{will-change:background-position,filter;transform:translateZ(0)}
