.hr3 {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: var(--hr3-min-h, 0px);
  background: var(--hr3-bg); color: var(--hr3-title-color);
}
.hr3-ticker-top { flex-direction: column-reverse; }
.hr3-inner { position: relative; z-index: 1; padding: var(--hr3-pad, 96px 0 72px); }
.hr3-align-center .hr3-inner { text-align: center; }
.hr3-align-right .hr3-inner { text-align: right; }

.hr3-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 2.4vw, 30px);
  font-family: var(--fx-font-accent); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--hr3-accent);
}
.hr3-kicker::before { content: ""; width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); }

.hr3-title {
  font-family: var(--hr3-title-font); font-weight: var(--hr3-title-weight);
  /* Plafond calculé sur le mot le plus long : aucun mot n'est coupé, même en police large. */
  font-size: min(clamp(56px, 15vw, var(--hr3-title-size, 200px)), calc((100vw - 40px) / (var(--hr3-len, 8) * .72))); line-height: var(--hr3-title-lh, .86);
  letter-spacing: var(--hr3-title-tracking, -.02em); text-transform: var(--hr3-title-case, uppercase);
  color: var(--hr3-title-color); overflow-wrap: anywhere; text-wrap: balance;
}
.fx-body .hr3-title { line-height: var(--hr3-title-lh, .86); }
.hr3-w { display: inline; }
.hr3-style-outline .hr3-w, .hr3-style-mixed .hr3-w.is-alt {
  /* Remplissage couleur de fond + contour doublé peint dessous : masque les contours internes des polices variables. */
  color: var(--hr3-bg); -webkit-text-stroke: calc(var(--hr3-stroke, 2px) * 2) var(--hr3-title-color); paint-order: stroke fill;
}
/* Repli si le contour n'est pas pris en charge : le texte reste lisible. */
@supports not (-webkit-text-stroke: 1px #000) {
  .hr3-style-outline .hr3-w, .hr3-style-mixed .hr3-w.is-alt { color: var(--hr3-accent); }
}

.hr3-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 56px; margin-top: clamp(28px, 4vw, 52px);
}
.hr3-align-center .hr3-foot { flex-direction: column; align-items: center; }
.hr3-align-right .hr3-foot { flex-direction: row-reverse; }
.hr3-text { max-width: 44ch; font-family: var(--hr3-text-font); font-size: var(--hr3-text-size, 19px); line-height: 1.5; color: var(--hr3-text-color); }
.hr3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; flex: none; }
.hr3-side { display: flex; align-items: flex-end; gap: 28px 40px; flex: none; margin-left: auto; }
.hr3-align-center .hr3-side { margin-inline: auto; }
.hr3-align-right .hr3-side { margin-left: 0; margin-right: auto; flex-direction: row-reverse; }
.hr3-listen {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px;
  background: var(--hr3-ticker-bg); color: var(--hr3-ticker-text); border-radius: var(--hr3-btn-radius, 999px);
  font-family: var(--hr3-text-font); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.hr3-listen:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--hr3-accent); }
.hr3-listen .i-pause, .hr3-listen.is-playing .i-play { display: none; }
.hr3-listen.is-playing .i-pause { display: block; }
.hr3-cta {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--hr3-title-color);
  border-bottom: 2px solid var(--hr3-accent); transition: gap .2s;
}
.hr3-cta:hover { gap: 16px; }

/* Bandeau défilant */
.hr3-ticker {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--hr3-ticker-bg); color: var(--hr3-ticker-text);
  font-family: var(--hr3-ticker-font); font-size: clamp(18px, 2.2vw, 28px); line-height: 1; text-transform: uppercase;
}
.hr3-tilt .hr3-ticker { margin: 10px -2% 34px; transform: rotate(-1.6deg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hr3-ticker-text) 6%, transparent); }
.hr3-tilt.hr3-ticker-top .hr3-ticker { margin: 34px -2% 10px; }
.hr3-track { display: flex; width: max-content; animation: hr3-marquee var(--hr3-speed, 28s) linear infinite; }
.hr3-ticker:hover .hr3-track { animation-play-state: paused; }
.hr3-group { display: flex; align-items: center; flex: none; }
.hr3-tick { display: inline-flex; align-items: center; gap: 14px; padding: 18px 0; white-space: nowrap; }
.hr3-tick-label {
  padding: 6px 10px; border: 1.5px solid currentColor; border-radius: 3px;
  font-family: var(--fx-font-accent); font-size: .5em; font-weight: 700; letter-spacing: .16em;
}
.hr3-tick-meta { font-family: var(--fx-font-accent); font-size: .6em; opacity: .7; letter-spacing: .06em; }
.hr3-tick-sep { padding: 0 28px; font-size: .7em; color: var(--hr3-accent); }
@keyframes hr3-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Formes d'accent */
.hr3-shape { position: absolute; z-index: 0; pointer-events: none; }
.hr3-eq { display: flex; align-items: flex-end; gap: clamp(5px, .6vw, 9px); height: clamp(56px, 7vw, 104px); flex: none; }
.hr3-eq span {
  width: clamp(8px, 1vw, 14px); height: 100%; background: var(--hr3-accent); transform-origin: bottom;
  animation: hr3-eq 1.6s ease-in-out infinite alternate;
}
.hr3-eq span:nth-child(1) { animation-delay: -.2s; } .hr3-eq span:nth-child(2) { animation-delay: -1.1s; }
.hr3-eq span:nth-child(3) { animation-delay: -.6s; } .hr3-eq span:nth-child(4) { animation-delay: -1.4s; }
.hr3-eq span:nth-child(5) { animation-delay: -.3s; } .hr3-eq span:nth-child(6) { animation-delay: -.9s; }
.hr3-eq span:nth-child(7) { animation-delay: -1.3s; }
@keyframes hr3-eq { 0% { transform: scaleY(.18); } 50% { transform: scaleY(.75); } 100% { transform: scaleY(.4); } }

.hr3-orbit {
  top: clamp(-140px, -8vw, -40px); right: clamp(-160px, -6vw, -40px);
  width: clamp(240px, 36vw, 520px); aspect-ratio: 1;
}
.hr3-orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--hr3-title-color) 18%, transparent); }
.hr3-orbit-core {
  position: absolute; inset: 22%; border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--hr3-accent) 0 2px, transparent 2px 9px);
  opacity: .3;
}
.hr3-orbit-dot {
  position: absolute; inset: 0; animation: hr3-spin 14s linear infinite;
}
.hr3-orbit-dot::after {
  content: ""; position: absolute; top: 50%; left: -14px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--hr3-accent);
}
@keyframes hr3-spin { to { transform: rotate(360deg); } }
.hr3-align-right .hr3-orbit { right: auto; left: clamp(-160px, -6vw, -40px); }
.hr3-align-center .hr3-orbit { opacity: .4; }

@media (max-width: 980px) {
  .hr3-foot { flex-direction: column; align-items: flex-start; }
  .hr3-align-center .hr3-foot { align-items: center; }
  .hr3-align-right .hr3-foot { align-items: flex-end; flex-direction: column; }
  .hr3-side, .hr3-align-right .hr3-side, .hr3-align-center .hr3-side { margin-inline: 0; }
}
@media (max-width: 620px) {
  .hr3-inner { padding: 64px 0 44px; }
  .hr3-title { font-size: min(clamp(40px, 17vw, 96px), calc((100vw - 40px) / (var(--hr3-len, 8) * .72))); }
  .hr3-text { font-size: 16.5px; }
  .hr3-style-outline .hr3-w, .hr3-style-mixed .hr3-w.is-alt { -webkit-text-stroke-width: calc(var(--hr3-stroke, 2px) * 1.4); }
  .hr3-eq { height: 48px; }
  .hr3-side { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .hr3-tick { padding: 14px 0; }
  .hr3-tick-sep { padding: 0 18px; }
  .hr3-tilt .hr3-ticker { margin-bottom: 24px; }
  .hr3-actions { width: 100%; }
  .hr3-listen { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hr3-track, .hr3-eq span, .hr3-orbit-dot { animation: none; }
  .hr3-ticker { overflow-x: auto; }
}
