/* Page Services et prestations — décorations raster indépendantes.
   Chaque motif reste sous le contenu et ignore les interactions. */
#main-content > .public-reference-page > section {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

#main-content > .public-reference-page,
#main-content > .public-reference-page > section,
#main-content > .public-reference-page > section > * {
  min-width: 0;
  max-width: 100%;
}

#main-content > .public-reference-page > section > * {
  position: relative;
  z-index: 1;
}

/* Contrastes renforcés pour les petits textes informatifs. */
#main-content > .public-reference-page > section:not(.dark-section) .eyebrow {
  color: var(--blue);
}

#main-content > .public-reference-page > .dark-section .eyebrow {
  color: var(--cream);
}

#main-content > .public-reference-page > .soft-pink .text-link {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#main-content > .public-reference-page > .page-hero::before,
#main-content > .public-reference-page > .service-list::before,
#main-content > .public-reference-page > .dark-section::before,
#main-content > .public-reference-page > section:last-of-type::after {
  content: "";
  z-index: 0;
  pointer-events: none;
  user-select: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
}

/* Une marge décorée à gauche, entièrement hors de la colonne de texte. */
#main-content > .public-reference-page > .page-hero::before {
  width: clamp(170px, 14vw, 240px);
  aspect-ratio: 2 / 3;
  bottom: 0;
  left: -55px;
  opacity: .62;
  background-image: url("/home-backgrounds/prestations-hero-botanical.png?v=1");
}

/* La piste reste dans la marge latérale des fiches de prestations. */
#main-content > .public-reference-page > .service-list::before {
  width: clamp(160px, 14vw, 210px);
  aspect-ratio: 1959 / 803;
  top: 18%;
  left: -64px;
  opacity: .58;
  transform: rotate(68deg);
  background-image: url("/home-backgrounds/prestations-paw-trail.png?v=1");
}

/* Ornement réservé au coin vide du bandeau bleu. */
#main-content > .public-reference-page > .dark-section::before {
  width: clamp(180px, 15vw, 230px);
  aspect-ratio: 1672 / 941;
  bottom: -10px;
  left: -45px;
  opacity: .72;
  background-image: url("/home-backgrounds/prestations-blue-flourish.png?v=1");
}

/* Les compagnons disposent de leur propre espace sous la liste des animaux. */
#main-content > .public-reference-page > section:last-of-type {
  padding-bottom: 280px;
}

#main-content > .public-reference-page > section:last-of-type::after {
  width: clamp(320px, 30vw, 460px);
  aspect-ratio: 3 / 2;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .78;
  background-image: url("/home-backgrounds/prestations-companions.png?v=1");
}

@media (max-width: 900px) {
  #main-content > .public-reference-page > .page-hero::before,
  #main-content > .public-reference-page > .service-list::before,
  #main-content > .public-reference-page > .dark-section::before {
    display: none;
  }

  #main-content > .public-reference-page > section:last-of-type {
    padding-bottom: 225px;
  }

  #main-content > .public-reference-page > section:last-of-type::after {
    width: min(310px, 85vw);
    bottom: 12px;
  }

  #main-content > .public-reference-page .price-sheet {
    width: 100%;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    gap: 6px;
    padding-inline: 10px;
  }

  .site-header .brand {
    min-width: 0;
    gap: 6px;
  }

  .site-header .brand img {
    width: 40px;
    height: 40px;
  }

  .site-header .brand strong {
    font-size: 14px;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .menu-button {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .site-account-control {
    --site-account-width: 118px;
  }

  #main-content > .public-reference-page .page-hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  #main-content > .public-reference-page .service-detail,
  #main-content > .public-reference-page .price-sheet {
    min-width: 0;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main-content > .public-reference-page > .page-hero::before,
  #main-content > .public-reference-page > .service-list::before,
  #main-content > .public-reference-page > .dark-section::before,
  #main-content > .public-reference-page > section:last-of-type::after {
    animation: none;
  }
}
