/** Critical CSS for the theme. This file is included on every page. */

/* Reset styles inspired by https://www.joshwcomeau.com/css/custom-css-reset/ */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
}

html:has(dialog[scroll-lock][open], details[scroll-lock][open]) {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select {
  font: inherit;
  border-radius: var(--inputs-border-radius);
}

select {
  background-color: var(--color-background);
  color: currentcolor;
}

dialog {
  background: var(--gradient-background);
  color: var(--color-foreground);
  border: 0;
}

p {
  text-wrap: pretty;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p:empty {
  display: none;
}

:is(p, h1, h2, h3, h4, h5, h6):first-child,
:empty:first-child + :where(p, h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0;
}

:is(p, h1, h2, h3, h4, h5, h6):last-child,
:where(p, h1, h2, h3, h4, h5, h6) + :has(+ :empty:last-child) {
  margin-block-end: 0;
}

@media (max-width: 750px) {
  .image-banner__content > .groupe-hero {
    display: flex;
    flex: 1;
    height: auto;
    align-self: stretch;
  }

  .groupe-hero > .group {
    flex: 1;
    height: auto;
    justify-content: flex-start;
  }

  .groupe-hero > .group > .button-block {
    margin-top: auto;
  }

  [id$='__image_banner_WqWawk'] .image-banner__media-filter {
    opacity: 0.15;
  }

  [id$='__image_banner_WqWawk'] .text-block.h6 {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.42),
      0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* K&J 2026-07-19 — migration vendor 2.5 : le CSS vendor `.icon` est passé de la variable font
   Material au système mask SVG. Les rares spans ligature directs (cart-icon/header-actions,
   branche icône — inactive tant que le header est en mode texte) doivent conserver le rendu
   font 2.3. Cible STRICTE : ne touche aucun theme-icon (système mask custom, compatible 2.5). */

