/* Hero accueil — vidéo de fond, preuves sociales, CTAs (chargé si `$dp_active === 'home'`). */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.75rem);
  justify-content: center;
  align-items: center;
  margin-top: 0.15rem;
  opacity: 0.92;
}

/* Liens secondaires (pas des boutons) : distincts des cartes MVP / C2C / IA. */
body.page-home .section--hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  padding: 0.2rem 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  text-align: start;
  justify-content: start;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
}

body.page-home .section--hero .hero-cta__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.78;
}

body.page-home .section--hero .hero-cta__svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-home .section--hero .hero-cta__label {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.06em;
}

/* YouTube : même famille d’esprit que le lien « vidéo » (mono, discret, filet au survol). */
body.page-home .section--hero .hero-cta--youtube {
  font-family: var(--font-matrix-mono);
  font-weight: 400;
  font-size: calc(0.78rem * var(--copy-scale));
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-text-secondary) 55%, #c62828 45%);
}

body.page-home .section--hero .hero-cta--youtube .hero-cta__label {
  border-bottom-color: transparent;
}

@media (hover: hover) {
  body.page-home .section--hero .hero-cta--youtube:hover {
    color: color-mix(in srgb, var(--hero-text) 35%, #e53935 65%);
  }

  body.page-home .section--hero .hero-cta--youtube:hover .hero-cta__label {
    border-bottom-color: color-mix(in srgb, #e53935 55%, transparent);
  }

  body.page-home .section--hero .hero-cta--project:hover {
    color: var(--hero-text);
  }

  body.page-home .section--hero .hero-cta--project:hover .hero-cta__label {
    border-bottom-color: color-mix(in srgb, var(--accent) 42%, transparent);
    border-bottom-style: dotted;
  }
}

/* Projet : typo éditoriale, soulignement pointillé au survol. */
body.page-home .section--hero .hero-cta--project {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: calc(0.84rem * var(--copy-scale));
  letter-spacing: 0.02em;
  color: var(--hero-text-secondary);
}

body.page-home .section--hero .hero-cta--project .hero-cta__label {
  border-bottom-style: dotted;
  border-bottom-color: transparent;
}

body.page-home .section--hero .hero-cta--project .hero-cta__svg {
  opacity: 0.72;
  color: color-mix(in srgb, var(--hero-text-secondary) 75%, var(--accent) 25%);
}

body.page-home .section--hero .hero-cta--youtube:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--hero-text) 40%, #e53935 60%);
  outline-offset: 3px;
  border-radius: 2px;
}

body.page-home .section--hero .hero-cta--youtube:focus-visible .hero-cta__label {
  border-bottom-color: color-mix(in srgb, #e53935 50%, transparent);
}

body.page-home .section--hero .hero-cta--project:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--hero-text) 50%, var(--accent) 50%);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--hero-text);
}

body.page-home .section--hero .hero-cta--project:focus-visible .hero-cta__label {
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
  border-bottom-style: dotted;
}

html[data-theme="light"] body.page-home .section--hero .hero-cta--youtube {
  color: color-mix(in srgb, var(--text) 40%, #b71c1c 60%);
}

html[data-theme="light"] body.page-home .section--hero .hero-cta--youtube:hover {
  color: color-mix(in srgb, var(--text) 25%, #c62828 75%);
}

html[data-theme="light"] body.page-home .section--hero .hero-cta--project {
  color: color-mix(in srgb, var(--text) 72%, var(--accent) 28%);
}

html[data-theme="light"] body.page-home .section--hero .hero-cta--project:hover {
  color: var(--text);
}

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 60% at 50% 20%, rgba(255, 106, 0, 0.17), transparent 62%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 92%, #000 8%) 0%,
      #25282f 48%,
      var(--bg) 100%
    );
}

.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border: 0;
  filter: var(--hero-filter);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-video.hero-video--ready .hero-video__media {
  opacity: 1;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-top), var(--hero-overlay-bottom));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content--wide .hero-title {
  max-width: none;
}

.hero-content--wide .section-lead.max-w-prose {
  max-width: min(50rem, 94vw);
}

.hero-subtitle {
  max-width: min(42rem, 94vw);
  font-family: var(--font-sub);
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  color: var(--hero-text-secondary);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* Sous-titre hero : glyphes sortent / réémergent (JS home uniquement, transform + opacity). */
.hero-subtitle__root {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-subtitle__track {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  vertical-align: bottom;
  gap: 0;
}

.hero-subtitle__cell {
  display: inline-block;
  overflow: hidden;
  flex-shrink: 0;
  height: 1.62em;
  line-height: 1.62;
}

.hero-subtitle__cell--space .hero-subtitle__glyph {
  min-width: 0.25em;
}

.hero-subtitle__glyph {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.hero-subtitle__root.hero-subtitle--play .hero-subtitle__glyph {
  will-change: transform, opacity;
  animation: heroSubtitleGlyphInOut var(--sub-dur, 0.88s) cubic-bezier(0.33, 1, 0.68, 1) both;
  animation-delay: calc(var(--i) * 58ms);
}

.hero-subtitle__root.hero-subtitle--play .hero-subtitle__glyph--finale {
  --sub-dur: 1.08s;
  animation-name: heroSubtitleGlyphInOutFinale;
  animation-timing-function: cubic-bezier(0.34, 1.35, 0.64, 1);
}

@keyframes heroSubtitleGlyphInOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  38% {
    transform: translateY(-118%);
    opacity: 0;
  }
  39% {
    transform: translateY(118%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroSubtitleGlyphInOutFinale {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  38% {
    transform: translateY(-148%) scale(0.92);
    opacity: 0;
  }
  39% {
    transform: translateY(152%) scale(0.92);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle__root.hero-subtitle--play .hero-subtitle__glyph,
  .hero-subtitle__root.hero-subtitle--play .hero-subtitle__glyph--finale {
    animation: none !important;
  }
}

/* Preuves sociales hero — cartes MVP / IA / C2C : relief sans backdrop-filter, variantes d’accent, entrée en cascade (≥768px). */
body.page-home .section--hero .hero-social-proof {
  list-style: none;
  margin: 0 auto 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  max-width: min(52rem, 94vw);
  transition: opacity 0.4s var(--ease-choreography, cubic-bezier(0.33, 1, 0.68, 1));
}

body.page-home .section--hero .hero-social-proof--subtitle-play {
  opacity: 0.92;
}

body.page-home .section--hero .hero-social-proof__item {
  --stat-rail-angle: 118deg;
  --stat-glow: var(--accent);
  --stat-value-mix: var(--accent);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 6.75rem;
  padding: 0.62rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--hero-text) 16%, transparent);
  background-color: color-mix(in srgb, #1a1c22 76%, transparent);
  background-image: linear-gradient(
    165deg,
    color-mix(in srgb, var(--stat-glow) 14%, transparent) 0%,
    transparent 48%
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--stat-glow) 12%, transparent) inset,
    0 1px 0 color-mix(in srgb, var(--hero-text) 10%, transparent) inset,
    0 8px 22px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.48s var(--ease-choreography, cubic-bezier(0.33, 1, 0.68, 1));
}

body.page-home .section--hero .hero-social-proof__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(
    var(--stat-rail-angle),
    color-mix(in srgb, var(--stat-glow) 22%, transparent),
    transparent 58%
  );
  opacity: 0.45;
  pointer-events: none;
}

body.page-home .section--hero .hero-social-proof__item--mvp {
  --stat-rail-angle: 128deg;
  --stat-glow: var(--accent);
  --stat-value-mix: var(--accent);
}

body.page-home .section--hero .hero-social-proof__item--c2c {
  --stat-rail-angle: 52deg;
  --stat-glow: var(--accent-2);
  --stat-value-mix: var(--accent-2);
}

body.page-home .section--hero .hero-social-proof__item--ia {
  --stat-rail-angle: 198deg;
  --stat-glow: color-mix(in srgb, var(--accent) 52%, var(--accent-2) 48%);
  --stat-value-mix: color-mix(in srgb, var(--accent) 55%, var(--accent-2) 45%);
}

/* Pianotage (sync slogan) : enfoncement type touche, une carte après l’autre — pas de son. */
@keyframes heroStatKeyTap {
  0% {
    transform: translateY(0) scaleY(1);
  }
  40% {
    transform: translateY(5px) scaleY(0.93);
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}

body.page-home .section--hero .hero-social-proof__item.hero-social-proof__item--key-tap {
  transform-origin: 50% 100%;
  animation: heroStatKeyTap 0.28s cubic-bezier(0.34, 1.2, 0.45, 1) both;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--stat-glow) 18%, transparent) inset,
    0 1px 0 color-mix(in srgb, var(--hero-text) 8%, transparent) inset,
    0 4px 14px rgba(0, 0, 0, 0.35);
}

body.page-home .section--hero .hero-social-proof__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-matrix-display);
  font-size: clamp(1.2rem, 2.35vw, 1.72rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    185deg,
    color-mix(in srgb, var(--stat-value-mix) 100%, #fff 4%) 0%,
    var(--stat-value-mix) 52%,
    color-mix(in srgb, var(--stat-value-mix) 82%, #000 18%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

body.page-home .section--hero .hero-social-proof__label {
  position: relative;
  z-index: 1;
  margin-top: 0.38rem;
  font-size: clamp(0.72rem, 1.12vw, 0.84rem);
  color: var(--hero-text-secondary);
  line-height: 1.38;
  max-width: 12rem;
}

/* Libellé social-proof « IA » : deux lignes (MM avec \n) */
body.page-home .section--hero .hero-social-proof__item--ia .hero-social-proof__label {
  white-space: pre-line;
}

/* Libellé social-proof « C2C » : plusieurs hashtags (MM avec \n) */
body.page-home .section--hero .hero-social-proof__item--c2c .hero-social-proof__label {
  white-space: pre-line;
}

html[data-theme="light"] body.page-home .section--hero .hero-social-proof__item {
  background-color: color-mix(in srgb, var(--bg-card) 90%, var(--accent) 5%);
  background-image: linear-gradient(
    168deg,
    color-mix(in srgb, var(--stat-glow) 10%, transparent) 0%,
    transparent 50%
  );
  border-color: color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--stat-glow) 8%, transparent) inset,
    0 1px 0 color-mix(in srgb, #fff 55%, transparent) inset,
    0 6px 18px rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] body.page-home .section--hero .hero-social-proof__item.hero-social-proof__item--key-tap {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--stat-glow) 12%, transparent) inset,
    0 1px 0 color-mix(in srgb, #fff 50%, transparent) inset,
    0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes heroSocialStatIn {
  from {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  body.page-home .section--hero .hero-social-proof__item {
    animation: heroSocialStatIn 0.68s var(--ease-choreography, cubic-bezier(0.33, 1, 0.68, 1)) both;
  }

  body.page-home .section--hero .hero-social-proof__item:nth-child(1) {
    animation-delay: 0.08s;
  }

  body.page-home .section--hero .hero-social-proof__item:nth-child(2) {
    animation-delay: 0.22s;
  }

  body.page-home .section--hero .hero-social-proof__item:nth-child(3) {
    animation-delay: 0.36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .section--hero .hero-social-proof__item {
    animation: none !important;
  }

  body.page-home .section--hero .hero-social-proof__item.hero-social-proof__item--key-tap {
    animation: none !important;
  }

  body.page-home .section--hero .hero-social-proof--subtitle-play {
    opacity: 1;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-family: var(--font-sub);
  font-size: calc(0.9rem * var(--copy-scale));
  color: var(--hero-text-secondary);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.hero-video-link:hover {
  color: var(--hero-text);
  border-bottom-color: rgba(255, 106, 0, 0.55);
}

.hero-video-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-video-link svg {
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .hero-video-link {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.page-home .section--hero {
    min-height: clamp(11.5rem, 22vh, 16rem);
    padding-top: 0.3rem;
    padding-bottom: 1rem;
  }

  body.page-home .hero-video__media {
    filter: grayscale(0.1) brightness(0.91);
  }

  body.page-home .section--hero .hero-ctas .hero-cta {
    font-size: calc(0.74rem * var(--copy-scale));
  }
}

@media (max-width: 767px) {
  body.page-home .section--hero {
    min-height: clamp(13rem, 32vh, 19rem);
    padding-top: 0.45rem;
    padding-bottom: 1.1rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: clip;
  }

  body.page-home .section--hero .hero-content,
  body.page-home .section--hero .hero-title,
  body.page-home .section--hero .hero-slogan__track {
    min-width: 0;
    max-width: 100%;
  }

  body.page-home .section--hero .hero-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.page-home .section--hero .hero-video__media {
    display: block;
    filter: grayscale(0.12) brightness(0.89);
  }

  body.page-home .hero-video::after {
    opacity: 0.82;
  }

  body.page-home .section--hero .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  body.page-home .section--hero .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  body.page-home .section--hero .hero-cta {
    justify-content: center;
    text-align: center;
  }

  body.page-home .section--hero .hero-ctas .hero-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body.page-home .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-home .section--hero .hero-cta {
    width: 100%;
    justify-content: center;
  }
}

body.page-home .section--hero .hero-content {
  position: relative;
  z-index: 5;
}

body.page-home .section--hero .hero-content > *:not(.hero-content__lang-flag) {
  position: relative;
  z-index: 2;
}

/* Montée de drapeau : hissage jusqu’au haut du liseré vertical (.hero-content::before, top 12 %). */
@keyframes heroLangFlagHoistLtr {
  from {
    transform: translate(-6%, clamp(1.35rem, 7vmin, 3.5rem));
  }

  to {
    transform: translate(-6%, 0);
  }
}

@keyframes heroLangFlagHoistRtl {
  from {
    transform: translate(6%, clamp(1.35rem, 7vmin, 3.5rem));
  }

  to {
    transform: translate(6%, 0);
  }
}

/* Drapeau interface (12 langues) : grand, très fade, fusionné au liseré gauche (::before). */
body.page-home .section--hero .hero-content__lang-flag {
  position: absolute;
  z-index: 0;
  inset-inline-start: 0;
  /* Aligné sur le haut du « mât » (même repère vertical que le liseré 3px ≥900px). */
  top: 12%;
  width: min(36vmin, 10.5rem);
  height: min(22vmin, 6.5rem);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  filter: saturate(0.88);
  animation: heroLangFlagHoistLtr 6.5s ease-out 0.45s both;
}

html[dir="rtl"] body.page-home .section--hero .hero-content__lang-flag {
  justify-content: flex-end;
  animation-name: heroLangFlagHoistRtl;
}

body.page-home .section--hero .hero-content__lang-flag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

html[dir="rtl"] body.page-home .section--hero .hero-content__lang-flag-img {
  object-position: right center;
}

body.page-home .section--hero .hero-content__lang-flag-emoji {
  display: block;
  font-size: min(20vmin, 6.75rem);
  line-height: 1;
  user-select: none;
}

html[data-theme="light"] body.page-home .section--hero .hero-content__lang-flag {
  opacity: 0.11;
  mix-blend-mode: multiply;
  filter: saturate(0.92) contrast(0.95);
}

@media (max-width: 899px) {
  body.page-home .section--hero .hero-content__lang-flag {
    opacity: 0.1;
    width: min(30vmin, 7.5rem);
    height: min(18vmin, 5rem);
  }

  body.page-home .section--hero .hero-content__lang-flag-emoji {
    font-size: min(16vmin, 4.5rem);
  }

  html[data-theme="light"] body.page-home .section--hero .hero-content__lang-flag {
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .section--hero .hero-content__lang-flag {
    animation: none !important;
    transform: translate(-6%, 0);
  }

  html[dir="rtl"] body.page-home .section--hero .hero-content__lang-flag {
    transform: translate(6%, 0);
  }
}

body.page-home .section--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: normal;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%);
  background-size: 3px 3px;
}

body.page-home .hero-video {
  background:
    radial-gradient(65% 50% at 88% 25%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%),
    radial-gradient(70% 55% at 12% 18%, rgba(255, 160, 90, 0.08), transparent 58%),
    radial-gradient(75% 60% at 50% 20%, rgba(255, 106, 0, 0.17), transparent 62%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 92%, #000 8%) 0%,
      #25282f 48%,
      var(--bg) 100%
    );
}

html[data-theme="light"] body.page-home .hero-video {
  background:
    radial-gradient(62% 48% at 92% 22%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 52%),
    radial-gradient(70% 55% at 12% 18%, rgba(255, 150, 80, 0.06), transparent 58%),
    radial-gradient(75% 60% at 50% 22%, rgba(255, 120, 40, 0.12), transparent 62%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 94%, #fff 6%) 0%,
      #d8cfc4 52%,
      var(--bg) 100%
    );
}

@media (min-width: 900px) {
  body.page-home .section--hero .hero-content::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 12%;
    bottom: 18%;
    width: 3px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
      185deg,
      color-mix(in srgb, var(--accent) 55%, transparent) 0%,
      var(--accent) 38%,
      var(--accent-2) 72%,
      color-mix(in srgb, var(--accent-2) 40%, transparent) 100%
    );
    box-shadow: 0 0 22px var(--accent-2-dim);
    opacity: 0.55;
    mix-blend-mode: normal;
  }
}

body.page-home .section--hero .hero-title {
  font-size: clamp(2.35rem, 4.2vw + 1.2rem, 5.35rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 22px rgba(0, 0, 0, 0.32),
    0 0 40px color-mix(in srgb, var(--accent-2-dim) 45%, transparent);
}

body.page-home .section--hero .hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  /* Plancher un peu plus bas pour les langues longues sur une seule ligne, sans scroll. */
  font-size: clamp(0.78rem, 1.25vw + 0.68rem, 1.2rem);
  letter-spacing: 0.065em;
  line-height: 1.62;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
}

body.page-home .section--hero .hero-subtitle__cell:not(:last-child) {
  margin-inline-end: 0.065em;
}

body.page-home .section--hero .diagonal-lines__line {
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent-2) 18%, rgba(255, 255, 255, 0.07)),
    color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.12)),
    color-mix(in srgb, var(--accent-2) 15%, rgba(255, 255, 255, 0.07)),
    transparent
  );
}

body.page-home .hero-video::after {
  background:
    radial-gradient(ellipse 90% 75% at 50% 42%, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, var(--hero-overlay-top), var(--hero-overlay-bottom));
}

html[data-theme="light"] body.page-home .hero-video::after {
  background:
    radial-gradient(ellipse 88% 72% at 50% 45%, transparent 0%, transparent 48%, rgba(45, 38, 28, 0.18) 100%),
    linear-gradient(180deg, var(--hero-overlay-top), var(--hero-overlay-bottom));
}

body.page-home .hero-video-link {
  font-family: var(--font-matrix-mono);
  font-weight: 400;
  font-size: calc(0.82rem * var(--copy-scale));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.28s var(--ease-choreography),
    border-color 0.28s var(--ease-choreography),
    box-shadow 0.28s var(--ease-choreography);
}

body.page-home .hero-video-link:hover {
  color: color-mix(in srgb, var(--hero-text) 72%, var(--accent-2) 28%);
  border-bottom-color: color-mix(in srgb, var(--accent) 45%, var(--accent-2) 55%);
  box-shadow: 0 4px 18px var(--accent-2-dim);
}

html[data-theme="light"] body.page-home .section--hero .btn--ghost {
  background: var(--home-cta-idle-bg-ghost);
  color: var(--home-cta-idle-text);
  border-color: var(--home-cta-idle-border);
}

html[data-theme="light"] body.page-home .section--hero .btn--ghost:hover,
html[data-theme="light"] body.page-home .section--hero .btn--ghost:focus-visible {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
  border-color: var(--btn-bg-hover);
}

html[data-theme="light"] body.page-home .section--hero .btn--primary {
  background: var(--home-cta-idle-bg);
  color: var(--home-cta-idle-text);
  border-color: var(--home-cta-idle-border);
}

html[data-theme="light"] body.page-home .section--hero .btn--primary:hover,
html[data-theme="light"] body.page-home .section--hero .btn--primary:focus-visible {
  color: var(--btn-text);
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .section--hero::after {
    opacity: 0.04;
    mix-blend-mode: normal;
  }

  body.page-home .section--hero .hero-content::before {
    box-shadow: none;
  }

  body.page-home .hero-video-link:hover {
    box-shadow: none;
  }

  body.page-home .section--hero .hero-social-proof__item {
    transition: none !important;
  }
}
