/* Variante de comparaison : uniquement lorsque le hero dispose de ses trois colonnes. */
.tr-hero-v2-alt { display: none; }

@media (min-width: 981px) {
  .tr-home .tr-hero-v2-alt {
    position: relative; display: block; isolation: isolate; overflow: clip;
    min-height: 100svh; padding: 0; scroll-margin-top: 0;
    color: #fffaf1; font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  }
  .tr-hero-v2-alt::before {
    content: ""; position: absolute; z-index: -1; inset: 10% 12% 0;
    background: radial-gradient(ellipse at 35% 40%, #edcb7c08, transparent 48%),
      radial-gradient(ellipse at 68% 46%, #b6a0d50a, transparent 54%);
    pointer-events: none;
  }
  .tr-hero-v2-alt__inner { width: min(1540px, calc(100% - 80px)); margin-inline: auto; }
  .tr-hero-v2-alt__nav {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
    min-height: 112px; gap: 24px; padding: 28px 0 22px;
    background: transparent; border: 0;
  }
  .tr-hero-v2-alt__brand { display: block; grid-column: 1; grid-row: 1; justify-self: start; width: 112px; }
  .tr-hero-v2-alt__brand img { display: block; width: 100%; height: auto; }
  .tr-hero-v2-alt__nav-cta {
    grid-column: 3; grid-row: 1; justify-self: end;
    display: inline-flex; align-items: center; justify-content: center; gap: 22px;
    min-height: 48px; padding: 12px 20px; border: 1px solid #fffaf136; border-radius: 999px;
    color: #fffaf1; background: transparent; font-size: 13px; font-weight: 700; text-decoration: none;
    transition: border-color .2s, background-color .2s;
  }
  .tr-hero-v2-alt__nav-cta span { font-size: 18px; font-weight: 500; color: #edcb7c; }
  .tr-hero-v2-alt__nav-cta:hover { color: #fffaf1; border-color: #edcb7c99; background: #fffaf107; }
  .tr-hero-v2-alt__scene {
    position: relative; display: grid;
    grid-template-columns: minmax(145px, .72fr) minmax(0, 2.3fr) minmax(145px, .72fr);
    align-items: center; gap: clamp(20px, 2.6vw, 48px);
    min-height: calc(100svh - 112px); padding: 64px 0 112px;
  }
  .tr-hero-v2-alt__flows { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .tr-hero-v2-alt__flows path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
  .tr-hero-v2-alt__stubs { stroke-width: 1; opacity: .5; stroke-dasharray: .03 .94 .03 1; }
  .tr-hero-v2-alt__connection {
    stroke-width: 1.3; opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.5s linear, opacity .35s;
  }
  .tr-hero-v2-alt__signal { opacity: 0; stroke-width: 2.5; stroke-dasharray: .035 .965; stroke-dashoffset: 1; }
  .tr-hero-v2-alt__scene[data-relay="thomas"] .tr-hero-v2-alt__connection[data-link-direction="thomas"],
  .tr-hero-v2-alt__scene[data-relay="remy"] .tr-hero-v2-alt__connection[data-link-direction="remy"] { stroke-dashoffset: 0; opacity: .85; }
  .tr-hero-v2-alt__copy { position: relative; z-index: 2; min-width: 0; text-align: center; }
  .tr-hero-v2-alt__title {
    margin: 0; color: #fffaf1; background: none; -webkit-text-fill-color: currentColor;
    font-family: inherit; font-size: clamp(56px, 5.9vw, 104px); font-weight: 760;
    letter-spacing: -.075em; line-height: .92;
  }
  .tr-hero-v2-alt__title > span { display: block; white-space: nowrap; color: #fffaf1; background: none; -webkit-text-fill-color: currentColor; }
  .tr-hero-v2-alt__title > .tr-hero-v2-alt__title-emphasis {
    margin-block: .18em; color: #edcb7c;
    font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
    font-size: .84em; font-style: italic; font-weight: 500; letter-spacing: -.05em; line-height: 1.04;
  }
  .tr-hero-v2-alt__lead {
    max-width: 650px; margin: 34px auto 0; color: #cedae2;
    font-size: clamp(17px, 1.32vw, 20px); font-weight: 600; line-height: 1.65; text-wrap: pretty;
  }
  .tr-hero-v2-alt__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 34px; }
  .tr-hero-v2-alt__actions .tr-pill { gap: 24px; box-shadow: 0 12px 28px #0002; }
  .tr-hero-v2-alt__signature {
    grid-column: 2; grid-row: 1; justify-self: center;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 0; color: #e2bb63; font-size: clamp(10px, .8vw, 11.52px); font-weight: 800;
    letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; white-space: nowrap;
  }
  .tr-hero-v2-alt__signature-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #e2bb63; box-shadow: 0 0 0 6px #e2bb631a, 0 0 18px #e2bb6373; }
  .tr-hero-v2-alt__person { position: relative; z-index: 1; min-width: 0; width: 100%; max-width: 264px; margin-inline: auto; }
  .tr-hero-v2-alt__person--thomas { transform: translateY(80px) rotate(-5deg); }
  .tr-hero-v2-alt__person--remy { transform: translateY(-5px) rotate(5deg); }
  .tr-hero-v2-alt__portrait {
    position: relative; display: block; width: 100%; padding: 0; border: 0;
    border-radius: 49% 49% 25px 25px; background: transparent; color: #fffaf1;
    font-family: inherit; text-align: left; cursor: pointer;
    transition: transform .3s cubic-bezier(.2,.75,.2,1), filter .3s;
  }
  .tr-hero-v2-alt__portrait::before {
    content: ""; position: absolute; z-index: -2; inset: -14px;
    border-radius: inherit; background: conic-gradient(from 30deg, #66c6ffb3, #c689ffa8, #ff91c08f, #f2cb6fb3, #66c6ffb3);
    opacity: .1; filter: blur(22px); pointer-events: none;
    transition: opacity .3s, transform .3s;
  }
  .tr-hero-v2-alt__portrait::after { content: ""; position: absolute; z-index: -1; inset: -10px; border: 1px solid #c9dae333; border-radius: inherit; pointer-events: none; transition: inset .3s, border-color .3s; }
  .tr-hero-v2-alt__portrait:is(:hover, :focus-visible) { transform: translateY(-7px) scale(1.025); filter: saturate(1.08); }
  .tr-hero-v2-alt__portrait:is(:hover, :focus-visible)::before { opacity: .72; transform: scale(1.04); }
  .tr-hero-v2-alt__portrait:is(:hover, :focus-visible)::after { inset: -16px; border-color: #f7f3ea66; }
  .tr-hero-v2-alt__scene[data-relay="thomas"] .tr-hero-v2-alt__person--remy .tr-hero-v2-alt__portrait::before,
  .tr-hero-v2-alt__scene[data-relay="remy"] .tr-hero-v2-alt__person--thomas .tr-hero-v2-alt__portrait::before { opacity: .42; transition-delay: 1.27s; }
  .tr-hero-v2-alt__photo {
    display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
    border: 1px solid #f7f3ea4d; border-radius: 49% 49% 25px 25px; background: #173344;
    box-shadow: 0 22px 50px #0003;
  }
  .tr-hero-v2-alt__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .tr-hero-v2-alt__person-label {
    position: absolute; right: -5px; bottom: -16px; left: -5px;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    min-height: 68px; padding: 12px 44px 12px 16px;
    border: 1px solid #fffaf12e; border-radius: 16px; background: #04111fe8;
    color: #fffaf1; box-shadow: 0 12px 30px #0003; backdrop-filter: blur(14px);
  }
  .tr-hero-v2-alt__person-label strong { color: #fffaf1; font-size: 19px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
  .tr-hero-v2-alt__person-label > span { color: #b4c6d2; font-size: 11px; font-weight: 500; line-height: 1.4; }
  .tr-hero-v2-alt__person-label i {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    display: grid; place-items: center; width: 24px; height: 24px;
    border: 1px solid #f7f3ea38; border-radius: 50%; color: #edcb7c;
    font-size: 18px; font-weight: 400; font-style: normal;
  }
  .tr-hero-v2-alt :is(a, button):focus-visible { outline: 3px solid #8bcdf0; outline-offset: 7px; }
}

@media (min-width: 981px) and (max-width: 1150px) {
  .tr-hero-v2-alt__inner { width: calc(100% - 64px); }
  .tr-hero-v2-alt__scene { column-gap: 24px; padding-block: 56px 96px; }
  .tr-hero-v2-alt__person-label { padding-left: 12px; padding-right: 36px; }
  .tr-hero-v2-alt__person-label strong { font-size: 17px; }
  .tr-hero-v2-alt__person-label > span { font-size: 10px; }
  .tr-hero-v2-alt__person-label i { right: 9px; width: 20px; height: 20px; }
  .tr-hero-v2-alt__actions .tr-pill { padding-left: 20px; gap: 14px; font-size: 14px; }
}

@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .tr-hero-v2-alt__scene[data-relay="thomas"] .tr-hero-v2-alt__signal[data-link-direction="thomas"],
  .tr-hero-v2-alt__scene[data-relay="remy"] .tr-hero-v2-alt__signal[data-link-direction="remy"] {
    filter: drop-shadow(0 0 4px #c9c7df66); animation: tr-hero-v2-exchange 1.5s linear both;
  }
  .tr-hero-v2-alt__signature-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes tr-hero-v2-exchange { 0% { opacity: 0; stroke-dashoffset: 1; } 15%, 75% { opacity: .9; } 100% { opacity: 0; stroke-dashoffset: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .tr-hero-v2-alt__portrait, .tr-hero-v2-alt__portrait::before, .tr-hero-v2-alt__portrait::after,
  .tr-hero-v2-alt__connection, .tr-hero-v2-alt__nav-cta { transition: none; }
  .tr-hero-v2-alt__portrait:is(:hover, :focus-visible), .tr-hero-v2-alt__portrait:is(:hover, :focus-visible)::before { transform: none; }
}

#accueil .tr-hero-v2-alt__brand.relay-reset img,
#accueil .tr-hero-v2-alt__brand.relay-reset::after { animation: none; }
