/* Bloc officiel UE : hauteur H du drapeau 60 px, zone de protection H/2.
   L'image officielle mesure 4087 x 919 px ; le drapeau mesure 788 px de haut.
   Le bloc n'est ni recoloré, ni déformé, ni mêlé aux billes de la charte RDG. */
.eu-visibility {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
  background: #fff;
  border-bottom: 1px solid #e3e9ee;
}
.eu-lockup {
  --eu-flag-height: 60px;
  display: block;
  position: relative;
  box-sizing: content-box;
  flex: 0 0 auto;
  width: calc(var(--eu-flag-height) * 4087 / 788);
  padding: calc(var(--eu-flag-height) / 2);
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  line-height: 0;
  text-decoration: none;
  isolation: isolate;
}
.eu-lockup img.eu-funding-mark {
  display: block;
  width: calc(var(--eu-flag-height) * 4087 / 788);
  height: calc(var(--eu-flag-height) * 919 / 788);
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: none;
  mix-blend-mode: normal;
  box-shadow: none;
}
.eu-lockup:focus-visible {
  outline: 2px solid #003399;
  outline-offset: 4px;
}
.footer-eu {
  padding: 0;
  border-radius: 0;
  gap: 24px;
}
.footer-eu > p {
  padding: 20px 26px 20px 0;
}
.europe-teaser > .eu-lockup {
  margin-inline: auto;
}
.eu-lockup--project {
  margin: 0 auto 28px;
}
@media (max-width: 600px) {
  .eu-lockup { --eu-flag-height: 50px; }
  .footer-eu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
  }
  .footer-eu > p {
    padding: 0 20px 24px;
    text-align: center;
  }
}
@media (max-width: 359px) {
  .eu-lockup { --eu-flag-height: 44px; }
  .site-header .brand img {
    width: calc(44px * 229 / 58);
    height: 44px;
  }
}
@media print {
  .eu-lockup { --eu-flag-height: 16mm; }
  .eu-visibility { border: 0; }
  .eu-visibility, .eu-lockup { break-inside: avoid; }
  .eu-funding-mark { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* La grille de financement reste dans l'écran, même à 320 px. */
.europe-head + .page-body .funding-grid > .fund-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.europe-head + .page-body .fund-card h2 { hyphens: auto; }
@media (max-width: 359px) {
  .site-header { column-gap: 10px; }
}
