.page-heading {
  padding-block: clamp(1.75rem, 4.5vw, 3.5rem);
  color: var(--color-text-white);
  background: var(--color-header-cta);
}
.page-heading__title {
  margin: 0;
  color: inherit;
}

.page-heading__title--with-icon {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.7vw, 1.1rem);
}

.page-heading__title--with-icon::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: clamp(2.1rem, 4vw, 3rem);
  aspect-ratio: 948 / 863;
  background: url("../../../images/boulets-canon.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
}

.page-heading__intro,
.page-heading__element {
  max-width: 61rem;
  color: inherit;
}

.page-heading__intro,
.page-heading__intro p,
.page-heading__element,
.page-heading__element p {
  color: inherit;
}

.page-heading__intro > :last-child,
.page-heading__element > :last-child,
.page-heading__breadcrumb > :last-child {
  margin-bottom: 0;
}

/* Actions réutilisables : liens éditoriaux présentés sous le chapeau. */
.page-heading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

.page-heading__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--color-text-white);
  font-size: var(--art-font-size-small);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.page-heading__action-label {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.page-heading__action:hover,
.page-heading__action:focus-visible {
  color: var(--color-text-white);
  text-decoration: none;
}

.page-heading__action:hover .page-heading__action-label,
.page-heading__action:focus-visible .page-heading__action-label {
  text-decoration-thickness: 0.12em;
}

.page-heading__share {
  display: inline-flex;
  align-items: center;
  min-height: var(--art-touch-target);
  color: var(--color-text-white);
  font-size: var(--art-font-size-small);
  font-weight: 700;
  text-decoration: underline;
}

.page-heading__share:hover,
.page-heading__share:focus-visible {
  color: var(--color-text-white);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.page-heading__breadcrumb {
  color: var(--color-text-white);
}


.page-heading__breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0;

  margin: 0;
  padding: 0;

  color: inherit;

  background: transparent;
}


.page-heading__breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;

  padding: 0;

  color: inherit;

  line-height: 1.25;
}


.page-heading__breadcrumb .breadcrumb-item a {
  color: var(--color-text-white);

  text-decoration: underline;
  text-underline-offset: 0.15em;
}


.page-heading__breadcrumb .breadcrumb-item a:hover,
.page-heading__breadcrumb .breadcrumb-item a:focus-visible {
  color: var(--color-text-white);

  text-decoration-thickness: 0.12em;
}


/*
 * On ne dépend pas de --bs-breadcrumb-divider-color :
 * le séparateur appartient visuellement au page-heading.
 */
.page-heading__breadcrumb
.breadcrumb-item
+ .breadcrumb-item::before {
  float: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding:
    0
    0.65rem;

  color: var(--color-text-white);

  content: ">";

  line-height: 1;
}


/* Élément courant éventuel. */
.page-heading__breadcrumb .breadcrumb-item.active {
  color: var(--color-text-white);
}

@media (max-width: 767.98px) {
  .page-heading {
    padding-block: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-heading__breadcrumb {
    display: none;
  }

  .page-heading__title--with-icon {
    align-items: flex-start;
  }

  .page-heading__title--with-icon::before {
    width: clamp(2rem, 8vw, 2.6rem);
    margin-top: 0.15em;
  }

  .page-heading__share {
    margin-top: 0.25rem;
  }
}
