/*
 * Readability overrides for HTML-imported pages (e.g. Babylone Outdoor).
 * Adds a gradient scrim + text-shadow so light text stays legible over photos
 * (category tiles, hero). Scoped to the imported markup classes — a no-op on
 * sites without them. Loaded globally in App.razor; `!important` is used because
 * the page's layout CSS is JS-injected AFTER this stylesheet.
 */

/* ── Category tiles ("Six manières d'habiter l'extérieur") ── */
.cat-tile { position: relative !important; }

/* Gradient scrim over the tile photo, beneath the text. */
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.34) 45%,
      rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Text rides above the scrim, with a soft halo for any bright spots. */
.cat-tile__txt { position: relative !important; z-index: 2 !important; }
.cat-tile__txt,
.cat-tile__txt * { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.5) !important; }

/* ── Hero headline over photo ── */
.hero .display,
.hero__inner .display,
.hero h1,
.hero__inner h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.55) !important; }

/* ── HTML-import safety net (was <HeadContent> in HtmlImport.razor) ──
 * Imported pages ship reveal/animation CSS that starts elements hidden and
 * relies on JS to reveal them; if that JS is stripped/blocked the content
 * stays invisible. These overrides force imported content visible.
 * Moved here because Blazor HeadContent is LAST-WRITER-WINS: every HtmlImport
 * writing it clobbered the page's real head content (SEO meta, canonical).
 * NOTE: no blanket opacity:1 on .palladium-html-import — every hybrid node
 * carries that class, so it nuked legitimate design opacity (e.g. Wix vector
 * art faded via opacity:var(--opacity)). Force opacity only on elements that
 * animation libraries start hidden (.reveal, [data-aos], .wow). */
.palladium-html-import{visibility:visible!important}
.palladium-html-import *{visibility:visible!important}
.palladium-html-import .reveal,
.palladium-html-import [data-aos],
.palladium-html-import .wow{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
.palladium-html-import [data-pb-import-section-id],.palladium-html-import [data-pb-import-section-id] *{visibility:visible!important}
