/* VÉO — catalogue Projets : fiches plus aérées, photos valorisées.
   Correction ciblée après retour utilisateur (v835).
   Ne touche pas aux fiches détaillées, aux contenus, aux filtres ni à la carte. */

/* Passer de quatre petites cartes à trois cartes de meilleure proportion. */
html body.public-projects-page #publicProjectResults.explorer-project-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  column-gap:27px!important;
  row-gap:30px!important;
  align-items:stretch;
  padding-bottom:16px;
}
html body.public-projects-page #publicProjectResults .explorer-project-card{
  min-height:0!important;
  height:100%;
  background:#fff;
  border:1px solid #dadee0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
/* Image moins panoramique ; véritable présence visuelle. */
html body.public-projects-page #publicProjectResults .explorer-project-visual{
  width:100%!important;
  height:245px!important;
  min-height:245px!important;
  overflow:hidden;
  flex:0 0 auto!important;
  background:#e4e9ea;
}
html body.public-projects-page #publicProjectResults .explorer-project-visual img,
html body.public-projects-page #publicProjectResults .explorer-project-visual .project-fallback-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:none!important;
}
/* Mettre du rythme entre photo, titre et informations, sans allonger excessivement. */
html body.public-projects-page #publicProjectResults .explorer-project-body{
  padding:18px 19px 17px!important;
  min-width:0;
}
html body.public-projects-page #publicProjectResults .explorer-project-body h3{
  font:650 17px/1.28 'Inter',Arial,sans-serif!important;
  letter-spacing:-.012em!important;
  margin:8px 0 8px!important;
  min-height:0!important;
  overflow-wrap:anywhere;
}
html body.public-projects-page #publicProjectResults .explorer-project-location{
  font-size:12.5px!important;
  line-height:1.45!important;
  min-height:0!important;
}
html body.public-projects-page #publicProjectResults .explorer-project-progress-head{
  padding-top:15px!important;
  margin-top:auto!important;
}
html body.public-projects-page #publicProjectResults .explorer-project-footer{
  padding-top:13px!important;
  margin-top:13px!important;
  gap:10px;
}
/* Espacer aussi le début de la liste pour ne pas coller les cartes au résultat. */
html body.public-projects-page .explorer-results-head{
  margin-bottom:19px!important;
}

@media(max-width:1080px){
  html body.public-projects-page #publicProjectResults.explorer-project-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:21px!important;
    row-gap:24px!important;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-visual{
    height:245px!important;
    min-height:245px!important;
  }
}
@media(max-width:700px){
  html body.public-projects-page #publicProjectResults.explorer-project-grid{
    grid-template-columns:1fr!important;
    row-gap:20px!important;
    padding-bottom:12px;
  }
  /* Sur mobile, la photo couvre la largeur plutôt qu'une vignette étroite. */
  html body.public-projects-page #publicProjectResults .explorer-project-card{
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-visual{
    width:100%!important;
    height:220px!important;
    min-height:220px!important;
    align-self:stretch;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-body{
    padding:15px 16px 15px!important;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-body h3{
    font-size:16px!important;
    line-height:1.3!important;
    margin:7px 0!important;
    -webkit-line-clamp:3;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-location{
    font-size:12px!important;
    -webkit-line-clamp:2;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-progress-head{
    padding-top:13px!important;
  }
  html body.public-projects-page #publicProjectResults .explorer-project-footer{
    margin-top:12px!important;
    padding-top:12px!important;
  }
}
@media(max-width:390px){
  html body.public-projects-page #publicProjectResults .explorer-project-visual{
    height:205px!important;
    min-height:205px!important;
  }
}