.c5hero-component {
  /*
   * Valeurs reprises de la palette du thème, exposée sur html:root. Les
   * repli servent uniquement si la feuille du thème n'est pas chargée.
   */
  --c5hero-primary: var(--funige-primary, #0082db);
  --c5hero-secondary: var(--funige-secondary, #154079);
  --c5hero-dark: var(--funige-dark, #08182d);
  --c5hero-light: var(--funige-light, #fafafa);

  position: relative;
  display: grid;
  min-height: clamp(400px, 55vh, 620px);
  overflow: hidden;
  background-color: var(--c5hero-secondary);

  /*
   * Pleine largeur, indépendamment de ce qui contraint le conteneur parent.
   * Le bandeau se cale sur la largeur du viewport et se recentre par des
   * marges négatives calculées, ce qui le fait sortir de n'importe quel
   * ancêtre centré sans avoir à connaître sa largeur.
   *
   * max-width évite qu'un ancêtre plus étroit ne le rétrécisse à nouveau.
   */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.c5hero-component *,
.c5hero-component *::before,
.c5hero-component *::after {
  box-sizing: border-box;
}

.c5hero-component .c5hero-content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 96px);
  color: var(--c5hero-light);
}

.c5hero-component .c5hero-text {
  max-width: 760px;
}

/*
 * Ni font-size ni font-weight ici : le thème impose
 * « h1 { font-size: 3rem !important; font-weight: 600 !important } » à tout le
 * site, et c'est la taille voulue pour ce bandeau. Redéclarer avec !important
 * fonctionnerait, mais désolidariserait le titre de la typographie du site.
 */
.c5hero-component .c5hero-title {
  width: fit-content;
  max-width: 32ch;
  margin: 0;
  color: var(--c5hero-light);
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.c5hero-component .c5hero-title::before {
  content: "";
  display: block;
  width: min(100%, 12ch);
  height: 5px;
  margin-bottom: 20px;
  border-radius: 999px;
  background-color: var(--c5hero-primary);
}

.c5hero-component .c5hero-description {
  max-width: 65ch;
  margin: 24px 0 0;
  color: var(--c5hero-light);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.c5hero-component .c5hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 14px;
  margin-top: 32px;
}

.c5hero-component .c5hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 24px;
  color: var(--c5hero-light);
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--c5hero-primary);
  border-radius: 4px;
  background-color: var(--c5hero-primary);
  box-shadow: 0 6px 20px rgba(8, 24, 45, 0.28);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.c5hero-component .c5hero-button:hover {
  color: var(--c5hero-light);
  text-decoration: none;
  border-color: var(--c5hero-dark);
  background-color: var(--c5hero-dark);
  transform: translateY(-2px);
}

.c5hero-component .c5hero-button-secondary {
  color: var(--c5hero-light);
  border-color: var(--c5hero-light);
  background-color: transparent;
  box-shadow: none;
}

.c5hero-component .c5hero-button-secondary:hover {
  color: var(--c5hero-dark);
  border-color: var(--c5hero-light);
  background-color: var(--c5hero-light);
}

.c5hero-component .c5hero-button:focus-visible {
  outline: 3px solid var(--c5hero-light);
  outline-offset: 4px;
}

@media screen and (max-width: 640px) {
  .c5hero-component {
    min-height: 480px;
  }

  .c5hero-component .c5hero-content {
    align-self: end;
    padding: 32px 24px 40px;
  }

  .c5hero-component .c5hero-title {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c5hero-component .c5hero-button {
    transition: none;
  }
}
