/* ==========================================================================================================================
   Bande « Réalisation » des mentions légales (lot L4c). Fond violet profond du kit, formes douces, nom en Playfair Display 700 jaune clair
   (contraste mesuré dans docs/qa.md), texte blanc cassé. Soulignement du nom qui se dessine à la première entrée (data-reveal="draw").
   ========================================================================================================================== */
.credit {
  position: relative;
  overflow: clip;
  padding-block: var(--s7);
  color: color-mix(in srgb, var(--blanc) 90%, var(--violet));
  background: linear-gradient(135deg, var(--violet), color-mix(in srgb, var(--violet) 72%, var(--violet-2)));
}

.credit__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.credit__shape--a {
  top: -140px;
  right: -90px;
  width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--violet-3) 45%, transparent), transparent);
}

.credit__shape--b {
  bottom: -170px;
  left: 6%;
  width: 360px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--or-clair) 14%, transparent), transparent);
}

.credit__inner {
  position: relative;
  display: grid;
  gap: var(--s3);
  justify-items: start;
}

.credit__eyebrow {
  margin: 0;
  font-size: calc(14px * var(--echelle));
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--blanc) 82%, var(--violet));
}

.credit__name {
  margin: 0;
  font-family: 'Playfair Nom', 'Playfair Repli', Georgia, serif;
  font-size: clamp(calc(34px * var(--echelle)), 6vw, calc(64px * var(--echelle)));
  font-weight: 700;
  line-height: 1.1;
  color: var(--or-clair);
  text-wrap: balance;
}

.credit__nowrap {
  white-space: nowrap;
}

.credit__underline {
  display: block;
  width: min(100%, 14em);
  height: 14px;
  margin-top: calc(-1 * var(--s1));
  overflow: visible;
}

.credit__underline path {
  fill: none;
  stroke: var(--or-clair);
  stroke-width: 3;
  stroke-linecap: round;
}

.credit__role {
  margin: var(--s2) 0 0;
  font-size: calc(20px * var(--echelle));
  font-weight: 800;
  line-height: 1.3;
  color: var(--blanc);
}

.credit__intro {
  max-width: 60ch;
  margin: 0;
  font-size: calc(17px * var(--echelle));
  line-height: 1.65;
}

.credit__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}

.credit__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  font-size: calc(16px * var(--echelle));
  color: var(--blanc);
  text-decoration: none;
  background: linear-gradient(var(--or-clair), var(--or-clair)) 0 calc(100% - 8px) / 100% 2px no-repeat;
}

.credit__link b {
  font-weight: 800;
}

.credit__link .icon {
  width: 18px;
  height: 18px;
}

.credit__link:hover,
.credit__link:focus-visible {
  color: var(--or-clair);
}

.credit__link:focus-visible {
  outline: 3px solid var(--or-clair);
  outline-offset: 3px;
  border-radius: 4px;
}
