.tr-hero-v2-alt__title > span::after { content: none; }

.tr-hero-v2-alt__copy .tr-hero-v2-alt__brand { margin: 0 auto 24px; }
@media (min-width: 981px) {
  .tr-hero-v2-alt__copy .tr-hero-v2-alt__brand { width: clamp(142px, 10vw, 160px); margin-bottom: 36px; translate: 0 clamp(-50px, -5vh, -32px); }
  .tr-home .tr-hero-v2-alt { min-height: auto; }
  .tr-hero-v2-alt__scene {
    --hero-headroom: clamp(20px, calc(17svh - 80px), 135px);
    min-height: auto;
    padding-block: calc(var(--hero-headroom) + clamp(32px, 5vh, 50px)) calc(clamp(50px, 7vh, 80px) + 10px);
  }
}

/* Below the desktop breakpoint the original mobile portrait scene takes over. */
.polo-mobile-duo { display: none; }
@media (max-width: 980px) {
  .tr-home .tr-hero-v2-alt { display: block; padding: 0; overflow: clip; color: var(--paper); }
  .tr-hero-v2-alt__inner { width: min(800px, calc(100% - 36px)); margin-inline: auto; padding: 32px 0 32px; }
  .tr-hero-v2-alt__copy .tr-hero-v2-alt__brand { margin-bottom: 36px; }
  .tr-hero-v2-alt__brand { display: block; width: 160px; }
  .tr-hero-v2-alt__brand img { display: block; width: 100%; height: auto; }
  .tr-hero-v2-alt__nav-cta, .tr-hero-v2-alt__flows, .tr-hero-v2-alt__person { display: none; }
  .tr-hero-v2-alt__signature { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 0; color: var(--honey); font-size: clamp(9px, 2.58vw, 12px); font-weight: 800; letter-spacing: .12em; line-height: 1.65; text-transform: uppercase; }
  .tr-hero-v2-alt__signature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 6px #e2bb631a; }
  .tr-hero-v2-alt__copy { max-width: 660px; margin: 0 auto; text-align: center; }
  .tr-hero-v2-alt__title { margin: 0; font: 760 clamp(46px, 7.1vw, 71px)/.94 "Avenir Next", Avenir, system-ui, sans-serif; letter-spacing: -.075em; }
  .tr-hero-v2-alt__title > span { display: block; padding-block: .06em .09em; }
  .tr-hero-v2-alt__title-emphasis { font: italic 1em/.98 var(--editorial); letter-spacing: -.055em; }
  .tr-hero-v2-alt__lead { margin: 40px auto 0; max-width: 49ch; font-size: 1.1rem; line-height: 1.72; color: #c7d2da; }
  .tr-hero-v2-alt__actions { display: flex; justify-content: center; margin-top: 40px; }
  .tr-hero-v2-alt__actions .calendar-open { margin: 0; }
  .polo-mobile-duo { display: block; --night: #04111f; --white: #fffdf8; --gold: #e2bb63; }
}
@media (max-width: 760px) {
  .tr-hero-v2-alt__inner { padding-top: 24px; }
  .tr-hero-v2-alt__brand { width: clamp(188px, 54vw, 228px); }
}
@media (max-width: 640px) {
  .tr-hero-v2-alt__inner { width: calc(100% - 32px); }
  .tr-hero-v2-alt__copy { max-width: 360px; }
  .tr-hero-v2-alt__title { font-size: clamp(36px, 11.9vw, 53.6px); }
  .tr-hero-v2-alt__lead { max-width: 348px; }
  .tr-hero-v2-alt__actions .calendar-open { width: 100%; justify-content: space-between; padding-left: 22px; }
}

.tr-hero-v2-alt__copy .tr-hero-v2-alt__title { margin-inline: auto; }
.tr-hero-v2-alt__title > span { color: #f8f4ec; -webkit-text-fill-color: currentColor; }
.tr-hero-v2-alt__title > .tr-hero-v2-alt__title-emphasis { color: #edcb7c; }

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  /* Keep the original opening speed for the full pass, then rest between sweeps. */
  @keyframes polo-title-sweep {
    0%, 1% { background-position: 125% 50%; }
    31.6%, 100% { background-position: -28% 50%; }
  }
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .tr-hero-v2-alt__title > span:not(.tr-hero-v2-alt__title-emphasis) {
      background-image: linear-gradient(105deg, #f8f4ec 0% 40%, #e2bb63 46%, #ff9fc6 49%, #c689ff 52%, #70c7ff 55%, #f8f4ec 61% 100%);
      background-size: 280% 100%;
      background-position: 125% 50%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: polo-title-sweep 19s linear infinite;
    }
  }
}

/* Independent translation keeps the existing portrait angles and hover effects. */
@media (prefers-reduced-motion: no-preference) {
  #accueil .tr-hero-v2-alt__portrait,
  #accueil .polo-mobile-duo .expert-node {
    --portrait-lift: -7px;
    animation: polo-portrait-float 6.8s ease-in-out -1s infinite;
  }
  #accueil .polo-mobile-duo .expert-node { --portrait-lift: -4px; }
  #accueil .tr-hero-v2-alt__person--remy .tr-hero-v2-alt__portrait,
  #accueil .polo-mobile-duo .node-remy {
    animation-duration: 8.2s;
    animation-delay: -4.5s;
  }
  @keyframes polo-portrait-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 var(--portrait-lift); }
  }
}

.tr-hero-v2-alt__copy .hero-positioning {
  font-size:clamp(42px,4.5vw,76px);
  line-height:1.02;
}
.hero-positioning > span {white-space:normal;text-wrap:balance}
.hero-positioning > .tr-hero-v2-alt__title-emphasis {font-size:.78em;line-height:1.12}
@media (max-width:640px) {
  .tr-hero-v2-alt__copy .hero-positioning {font-size:clamp(27px,8.5vw,42px)}
}

/* Entrance runs on stable layout boxes; the title's color sweep belongs to its first span. */
@media (prefers-reduced-motion: no-preference) {
  #accueil .tr-hero-v2-alt__title,
  #accueil .tr-hero-v2-alt__title-emphasis,
  #accueil .tr-hero-v2-alt__lead,
  #accueil .tr-hero-v2-alt__actions > a {
    animation: polo-hero-enter .76s cubic-bezier(.2,.73,.25,1) calc(var(--polo-depart,0s) + var(--enter-delay,0s)) backwards;
  }
  #accueil .tr-hero-v2-alt__title { --enter-delay: .08s; }
  #accueil .tr-hero-v2-alt__title-emphasis { --enter-delay: .17s; --enter-rise: 9px; }
  #accueil .tr-hero-v2-alt__lead { --enter-delay: .26s; }
  #accueil .tr-hero-v2-alt__actions > a { --enter-delay: .36s; --enter-rise: 10px; }
  #accueil .tr-hero-v2-alt__actions > a:focus-visible { animation: none; }

  #accueil .tr-hero-v2-alt__person--thomas,
  #accueil .node-thomas { --portrait-x: -34px; --portrait-angle: -4deg; --portrait-delay: .1s; }
  #accueil .tr-hero-v2-alt__person--remy,
  #accueil .node-remy { --portrait-x: 34px; --portrait-angle: 4deg; --portrait-delay: .2s; }

  #accueil .tr-hero-v2-alt__person .tr-hero-v2-alt__portrait {
    animation: polo-hero-portrait 1s cubic-bezier(.18,.72,.25,1) calc(var(--polo-depart,0s) + var(--portrait-delay)) backwards,
      polo-portrait-float var(--float-period,6.8s) ease-in-out var(--float-offset,-1s) infinite;
  }
  #accueil .tr-hero-v2-alt__person--remy { --float-period: 8.2s; --float-offset: -4.5s; }
  #accueil .polo-mobile-duo .expert-photo img {
    --portrait-x: 0px;
    animation: polo-hero-portrait .85s cubic-bezier(.18,.72,.25,1) calc(var(--polo-depart,0s) + var(--portrait-delay)) backwards;
  }

  @keyframes polo-hero-enter {
    from { opacity: .18; translate: 0 var(--enter-rise,16px); }
  }
  @keyframes polo-hero-portrait {
    from { opacity: .15; transform: translate(var(--portrait-x),18px) rotate(var(--portrait-angle)) scale(.94); }
  }
}

.polo-ouverture { display: none; pointer-events: none; }
.polo-ouverture[hidden] { display: none !important; }

/* Reveal the original mark outwards from the coloured loop, then uncover DIGITAL. */
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .polo-ouverture {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 52%, #102f40, #081b29 47%, #04111f);
    animation: polo-ouverture-fin .42s ease-in-out 1.45s both;
  }
  .polo-ouverture.premiere-visite ~ main { --polo-depart: 1.45s; }
  /* Keyboard navigation takes precedence as soon as a page control receives focus. */
  body:focus-within > .polo-ouverture { visibility: hidden !important; opacity: 0 !important; }
  .polo-ouverture__logo { width: clamp(165px, 24vw, 300px); position: relative; }
  .polo-ouverture__logo img { display: block; width: 100%; height: auto; }
  @keyframes polo-ouverture-fin {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
  }
  #accueil .tr-hero-v2-alt__brand { position: relative; }
  .polo-ouverture__logo img,
  #accueil .tr-hero-v2-alt__brand img {
    animation: polo-logo-unfold 1.25s cubic-bezier(.22,.68,.28,1) both;
  }
  .polo-ouverture__logo::after,
  #accueil .tr-hero-v2-alt__brand::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(108deg, transparent 43%, #f2c47780 47%, #fff8ea 50%, #c4c6ffb3 53%, transparent 57%) 100% 50% / 250% 100% no-repeat;
    -webkit-mask: url("../images/brand/tr-digital-logo-couleur.png") center / contain no-repeat;
    mask: url("../images/brand/tr-digital-logo-couleur.png") center / contain no-repeat;
    animation: polo-logo-reflection .85s ease-in-out .58s;
  }
  @keyframes polo-logo-unfold {
    0% { clip-path: inset(32% 51% 32% 34% round 12%); opacity: .55; }
    22% { clip-path: inset(0 35% 28% 30% round 5%); opacity: 1; }
    62% { clip-path: inset(0 0 28% 0); }
    100% { clip-path: inset(0); opacity: 1; }
  }
  @keyframes polo-logo-reflection {
    0% { background-position-x: 100%; opacity: 0; }
    35%, 65% { opacity: .7; }
    100% { background-position-x: 0%; opacity: 0; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  #accueil .tr-pill__arrow {
    overflow: hidden;
    animation: polo-cta-ring .95s ease-out calc(var(--polo-depart, 0s) + .8s);
  }

  #accueil .hero-cta-arrow {
    text-shadow: -44px 0 currentColor;
    animation: polo-cta-arrive .65s cubic-bezier(.16, 1, .3, 1) calc(var(--polo-depart, 0s) + .65s) backwards;
    transition: transform .48s cubic-bezier(.33, 0, .2, 1);
  }

  #accueil .tr-pill:focus-visible .hero-cta-arrow { transform: translateX(44px); }

  @media (hover: hover) and (pointer: fine) {
    #accueil .tr-pill:hover .hero-cta-arrow { transform: translateX(44px); }
  }

  @keyframes polo-cta-arrive {
    from { translate: -24px 0; opacity: 0; }
    to { translate: 0; opacity: 1; }
  }

  @keyframes polo-cta-ring {
    from { box-shadow: 0 0 0 0 #efbd6399; }
    to { box-shadow: 0 0 0 8px #efbd6300; }
  }
}
