/*
 * Bloc d'en-tête avec l'effet FoilDrift (scripts/foil-drift.js).
 * Le canevas couvre tout le bloc, derrière le texte ; le texte est aligné à gauche
 * pour laisser l'effet respirer sur la droite, comme sur la page Catégories.
 */
.foil-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.foil-hero > .foil-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.foil-hero > :not(.foil-hero__canvas) {
  position: relative;
  z-index: 1;
}

/* Variante plein écran (maintenance, construction) */
.foil-hero__canvas--page {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
