/* Home expertise cards: CTA below the paragraph with consistent breathing room. */
html body main article[id="Conseil"] a.tenedim-expertise-discover,
html body main article[id="Technologie"] a.tenedim-expertise-discover,
html body main article[id="Broking"] a.tenedim-expertise-discover,
html body main article[id="Formation"] a.tenedim-expertise-discover {
  display:table!important;
  width:max-content!important;
  margin-top:24px!important;
  clear:both!important;
  white-space:nowrap!important;
}

/* The four home cards share the same bottom baseline. Legacy CSS sets margin-top:auto.
   Use padding inside CTA to preserve generous paragraph separation even then. */
html body:has(.tenedim-home-contact) main>section:nth-of-type(3)>div:nth-child(2){
 align-items:stretch!important;
}
html body:has(.tenedim-home-contact) main>section:nth-of-type(3) article>div.reveal{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 height:100%!important;flex:1 1 auto!important;
}
html body:has(.tenedim-home-contact) main>section:nth-of-type(3) article>div.reveal p{
 margin-bottom:0!important;
}
html body:has(.tenedim-home-contact) main>section:nth-of-type(3) article>div.reveal a.tenedim-expertise-discover{
 display:block!important;flex-shrink:0!important;
 margin-top:auto!important;padding-top:28px!important;
 line-height:1.5!important;align-self:flex-start!important;
}

/* Compact spacing: links immediately below the longest description. */
html body:has(.tenedim-home-contact) main>section:nth-of-type(3) article>div.reveal{
 height:auto!important;flex:0 0 auto!important;
}
html body:has(.tenedim-home-contact) main>section:nth-of-type(3) article>div.reveal a.tenedim-expertise-discover{
 margin-top:18px!important;padding-top:0!important;
}
html body:has(.tenedim-home-contact) main>section:nth-of-type(3)>div:nth-child(2){
 align-items:start!important;
}

@media(min-width:1024px){
 html body:has(.tenedim-home-contact) main>section:nth-of-type(3) article>div.reveal p{
  min-height:6.4em!important;
 }
}

/* Slightly tighter breathing room after the four discovery links. */
html body:has(.tenedim-home-contact) main>section:nth-of-type(3){
 padding-bottom:32px!important;
}
