/* Header de la home (FR + EN) : voir assets/js/home-hero/hero.js. Tout est scopé sous .hh. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=DM+Mono:wght@400;500&display=swap");

.hh { --hh-bg: #030619; --hh-violet: #A855F7; --hh-lav: #ddc9f7; --hh-yellow: #F5D040; position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: var(--hh-bg); color: #fff; font-family: Inter, system-ui, sans-serif; }
.hh *, .hh *::before, .hh *::after { box-sizing: border-box; }
.hh a { color: inherit; text-decoration: none; }
.hh .hh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hh-stage { position: relative; height: 100%; overflow: hidden; }
.hh-depth { position: absolute; inset: 0; will-change: transform; }
.hh canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hh-world { z-index: 1; }
.hh-real { z-index: 2; }
.hh-front { z-index: 3; }
.hh-scrim { position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, rgba(3,6,25,.86) 0%, rgba(3,6,25,.62) 30%, rgba(3,6,25,0) 52%); }
.hh-copy { position: absolute; z-index: 10; left: max(24px, calc((100vw - 1200px) / 2)); top: calc(50% - 44px); transform: translateY(-50%); width: min(620px, 52vw); will-change: transform, opacity; }
.hh-kick { font-family: "DM Mono", ui-monospace, monospace; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.12em; font-size: 11px; color: rgba(221, 201, 247, 0.72); margin: 0 0 26px; }
.hh h1 { margin: 0; font-weight: 400; color: #fff; text-shadow: 0 16px 38px rgba(0, 0, 0, 0.45); }
.hh h1 .hh-l1 { display: block; font-family: "Instrument Serif", serif; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; color: var(--hh-lav); letter-spacing: -0.01em; }
.hh h1 .hh-g { display: block; font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(54px, 7.4vw, 112px); line-height: 0.98; letter-spacing: -0.035em; margin: 6px 0 10px; }
.hh h1 .hh-t { display: block; font-family: "Instrument Serif", serif; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; color: rgba(255, 255, 255, 0.82); min-height: 1.2em; }
.hh-log { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.hh-log li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.86); opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.hh-log li.on { opacity: 1; transform: none; }
.hh-log .hh-box { flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(221, 201, 247, 0.7); border-radius: 2px; display: grid; place-items: center; }
.hh-log .hh-box svg { width: 12px; height: 12px; stroke: var(--hh-yellow); stroke-width: 2.4; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.45s ease 0.15s; }
.hh-log li.on .hh-box svg { stroke-dashoffset: 0; }
.hh-act { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hh-pill { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 8px 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; isolation: isolate; overflow: hidden; background: #fff; color: #030619 !important; transition: transform 0.15s ease; }
.hh-pill:active { transform: scale(0.97); }
.hh-pill .hh-arr { position: relative; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; color: #fff; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.hh-pill .hh-arr::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--hh-violet); z-index: -1; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.hh-pill:hover .hh-arr::before { transform: scale(9); }
.hh-pill .hh-arr svg { width: 16px; height: 16px; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.hh-pill:hover .hh-arr svg { transform: rotate(-45deg); }
.hh-pill .hh-lbl { position: relative; z-index: 1; transition: color 0.3s ease; }
.hh-pill:hover .hh-lbl { color: #fff; }
.hh-ghost { font-weight: 600; font-size: 15px; color: #fff; border-bottom: 1.5px dashed rgba(255, 255, 255, 0.45); padding-bottom: 3px; }
.hh-ghost:hover { border-bottom-style: solid; }
.hh-free { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 0; font-family: "Instrument Serif", serif; font-size: 22px; color: rgba(255, 255, 255, 0.7); }
.hh-odo { display: inline-flex; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 34px; color: var(--hh-yellow); line-height: 1; height: 1em; overflow: hidden; }
.hh-odo .hh-wheel { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.hh-odo .hh-wheel span { height: 1em; line-height: 1; }
/* Bandeau partenaires dans le header : logos fixes, sur une ou deux lignes. */
.hh-partners { position: absolute; z-index: 12; left: 0; right: 0; bottom: 0; padding: 30px max(24px, calc((100vw - 1200px) / 2)) 22px; display: flex; align-items: center; gap: 28px;
  background: linear-gradient(0deg, rgba(3,6,25,.92) 0%, rgba(3,6,25,.72) 55%, rgba(3,6,25,0) 100%); }
.hh-partners-lbl { flex: none; margin: 0; font-family: "DM Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.35; color: rgba(221, 201, 247, 0.62); width: 112px; }
.hh-track { flex: 1; min-width: 0; }
.hh-belt ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 18px 22px; }
.hh-belt li { grid-column: span 2; min-width: 0; max-width: 100%; display: flex; justify-content: center; }
.hh-belt li:nth-child(8) { grid-column: 2 / span 2; }
.hh-belt img { display: block; height: calc(var(--h, 20px) * 0.9); width: auto; max-width: 100%; object-fit: contain; opacity: 0.62; transition: opacity 0.25s ease; }
@media (hover: hover) { .hh-belt img:hover { opacity: 1; } }
.hh-grain { position: absolute; inset: 0; pointer-events: none; z-index: 40; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Titre tournant (patron "Text states swap" de transitions.dev) */
.hh .rt { display: inline-block; position: relative; white-space: nowrap; vertical-align: bottom; transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.hh .rt-cur, .hh .rt-old { display: inline-block; white-space: nowrap; }
.hh .rt-old { position: absolute; left: 0; top: 0; }
.hh .rt-ch { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.28em); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.hh .rt-in .rt-ch, .hh .rt-old .rt-ch { opacity: 1; filter: blur(0); transform: none; }
.hh .rt-old.rt-out .rt-ch { opacity: 0; filter: blur(10px); transform: translateY(-0.28em); }

@media (max-width: 860px) {
  .hh-kick { white-space: normal; }
  .hh-copy { top: auto; bottom: 128px; transform: none; width: calc(100% - 48px); }
  .hh-partners { padding: 22px 20px 16px; }
  .hh-partners-lbl { display: none; }
  .hh-belt ul { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px 14px; }
  .hh-belt li:nth-child(8) { grid-column: span 2; }
  .hh-belt li:nth-child(1), .hh-belt li:nth-child(10) { grid-column: 2 / span 2; }
  .hh-belt img { height: calc(var(--hm, 16px) * 0.8); }
  .hh-scrim { background: linear-gradient(0deg, rgba(3,6,25,.92) 0%, rgba(3,6,25,.7) 45%, rgba(3,6,25,0) 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .hh-log li, .hh-log .hh-box svg, .hh-odo .hh-wheel, .hh .rt-ch { transition: none; }
}
