/* ──────────────────────────────────────────────────────────────
   Héros communs à toutes les pages (sauf la page d'accueil).
   Fond bleu nuit + filigrane « icône IP monochrome » en bas à droite.
   Appliquer la classe `page-hero` à la <section> du héro.
   ────────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bleu-nuit);
  padding: 52px 0 44px;
}

/* Le contenu reste au-dessus du filigrane */
.page-hero .container { position: relative; z-index: 1; }

/* Filigrane : SVG « fond sombre » (déjà en blanc), posé dans le coin
   en bas à droite de chaque héro. */
.page-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 300px;
  height: 300px;
  background: url('../filigrane_fond_claire_IP_noir.svg') no-repeat center / contain;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Accueil + « Qui sommes-nous » : le filigrane occupe toute la hauteur
   du héro, calé sur le bord droit (le SVG est carré, donc width = height).
   width/height: auto force l'écrasement de la règle .page-hero::after. */
.hero-section::after,
.qsn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -40px;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  background: url('../filigrane_fond_claire_IP_noir.svg') no-repeat center right / contain;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 640px) {
  .page-hero::after { width: 190px; height: 190px; right: -26px; bottom: -28px; }
}
