/* VÉO v921 — une seule grille d'alignement pour les bandeaux publics.
   Les titres et descriptions reviennent à la ligne naturellement, jamais
   à cause d'une petite colonne de texte arbitraire. */
html body#veoSite.veo-public-shell {
  --veo-hero-content-width:var(--veo-content-width,1260px);
  --veo-hero-side-padding:var(--veo-gutter,28px);
}

/* Même axe de départ que les résultats/filtres sur chaque page de catalogue. */
html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero > .container,
html body#veoSite.veo-public-shell.public-consultations-page .public-consult-hero > .container,
html body#veoSite.veo-public-shell.public-initiatives-page .initiative-hero-v575 > .container,
html body#veoSite.veo-public-shell .meeting-page-hero > .meeting-page-intro {
  display:block;
  width:100%!important;
  max-width:var(--veo-hero-content-width)!important;
  min-width:0!important;
  margin-inline:auto!important;
  padding-inline:var(--veo-hero-side-padding)!important;
  box-sizing:border-box!important;
}

/* La liste des territoires utilise un gabarit de 1220px : bandeau identique. */
html body#veoSite.veo-public-shell .public-territories-hero > .public-territories-hero-inner {
  display:block!important;
  width:100%!important;
  max-width:1220px!important;
  min-width:0!important;
  margin-inline:auto!important;
  padding-left:var(--veo-hero-side-padding)!important;
  padding-right:var(--veo-hero-side-padding)!important;
  box-sizing:border-box!important;
}

/* Les copies étaient centrées dans des blocs de 760-800px :
   on supprime ce décalage tout en gardant du texte aligné à gauche. */
html body#veoSite.veo-public-shell.public-consultations-page .public-consult-hero-copy,
html body#veoSite.veo-public-shell.public-initiatives-page .initiative-hero-v575 > .container,
html body#veoSite.veo-public-shell .meeting-page-hero .meeting-page-intro,
html body#veoSite.veo-public-shell .public-territories-hero .public-territories-hero-copy {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  text-align:left!important;
}

/* Projets : le compteur occupe sa propre colonne.
   Le texte utilise tout l'espace disponible sans lui passer dessous. */
html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero .projects-explorer-heading {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(190px,max-content)!important;
  gap:clamp(22px,3vw,50px)!important;
  align-items:center!important;
  width:100%!important;
  min-height:0!important;
  position:relative!important;
}
html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero .projects-explorer-heading > div:first-child {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  text-align:left!important;
}
html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero .projects-explorer-count {
  position:static!important;
  width:auto!important;
  min-width:190px!important;
  max-width:none!important;
  align-self:end!important;
  justify-self:end!important;
  margin:0!important;
  padding-left:25px!important;
  border-left:1px solid rgba(0,0,0,.35)!important;
}

/* Aucune largeur de texte de 700/720/780px qui provoque un retour prématuré. */
html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero .projects-explorer-heading :is(h1,p),
html body#veoSite.veo-public-shell.public-consultations-page .public-consult-hero-copy :is(h1,p),
html body#veoSite.veo-public-shell.public-initiatives-page .initiative-hero-v575 > .container :is(h1,p),
html body#veoSite.veo-public-shell .meeting-page-hero .meeting-page-intro :is(h1,p),
html body#veoSite.veo-public-shell .public-territories-hero .public-territories-hero-copy :is(h1,p) {
  display:block;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  text-align:left!important;
  white-space:normal!important;
  text-wrap:wrap!important;
  overflow-wrap:break-word;
}

/* Accueil : photo plein large (v920 conservée), texte à l'axe du site,
   avec retour à la ligne uniquement lorsque la place disponible l'impose. */
html body#veoSite.veo-public-shell.home-mode #app .home-initiative-spotlight .home-initiative-panel {
  padding-left:max(var(--veo-hero-side-padding),calc((100vw - var(--veo-hero-content-width))/2 + var(--veo-hero-side-padding)))!important;
  padding-right:max(var(--veo-hero-side-padding),calc((100vw - var(--veo-hero-content-width))/2 + var(--veo-hero-side-padding)))!important;
}
html body#veoSite.veo-public-shell.home-mode #app .home-initiative-spotlight .home-initiative-copy,
html body#veoSite.veo-public-shell.home-mode #app .home-initiative-spotlight .home-initiative-panel > div:first-child {
  width:100%!important;
  max-width:1000px!important;
  margin-left:0!important;
  text-align:left!important;
}
html body#veoSite.veo-public-shell.home-mode #app .home-initiative-spotlight .home-initiative-copy :is(h2,p) {
  max-width:none!important;
  width:100%!important;
  white-space:normal!important;
  text-wrap:wrap!important;
  overflow-wrap:break-word;
}

/* Sur les tablettes, plus de colonnes trop étroites pour le compteur. */
@media (max-width:950px) {
  html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero .projects-explorer-heading {
    grid-template-columns:minmax(0,1fr)!important;
    gap:15px!important;
  }
  html body#veoSite.veo-public-shell.public-projects-page .projects-explorer-hero .projects-explorer-count {
    justify-self:start!important;
    align-self:start!important;
    min-width:0!important;
    padding:12px 0 0!important;
    border-left:0!important;
    border-top:1px solid rgba(255,255,255,.3)!important;
  }
}
@media (max-width:700px) {
  html body#veoSite.veo-public-shell .public-territories-hero > .public-territories-hero-inner {
    padding-inline:var(--veo-gutter,16px)!important;
  }
  html body#veoSite.veo-public-shell.home-mode #app .home-initiative-spotlight .home-initiative-panel {
    padding-left:var(--veo-gutter,16px)!important;
    padding-right:var(--veo-gutter,16px)!important;
  }
  html body#veoSite.veo-public-shell.home-mode #app .home-initiative-spotlight .home-initiative-copy {
    max-width:none!important;
  }
}