/* GGG Pro Agency : intro "dans la tribune" (page d'accueil seulement).
   Le stade plein ecran (Parc des Princes vu de la tribune), la camera avance doucement comme une video,
   "Votre carriere, notre passion", puis en defilant le logo GGG entre dans le stade. Pilote par intro.js. Pour l'enlever : retirer intro.css + intro.js de index.html. */
.tn { --tn-top: 80px; position: relative; height: 280vh; padding-top: var(--tn-top); background: #fff; isolation: isolate; }
.tn-stage { position: sticky; top: var(--tn-top); height: calc(100vh - var(--tn-top)); height: calc(100svh - var(--tn-top)); overflow: hidden; contain: layout paint; background: #050a16; }
@media (max-width: 639px) { .tn { --tn-top: 64px; height: 250vh; } }
.tn-stage > * { position: absolute; pointer-events: none; }

/* le stade : .tn-photo suit le defilement, .tn-cam fait le mouvement de camera a l'ouverture */
.tn-photo { inset: 0; transform-origin: 50% 62%; will-change: transform; }
.tn-cam { position: absolute; inset: 0; background: #0b1224 url(/img/blog/photo-stade-paris.webp) 50% 60% / cover no-repeat; transform-origin: 50% 62%; transform: scale(1.06); }
.tn.is-on .tn-cam { animation: tn-cam 9s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes tn-cam {
  0%   { transform: translate3d(0, 3%, 0) scale(1.22); filter: brightness(.55); }
  25%  { filter: brightness(1); }
  100% { transform: translate3d(0, 0, 0) scale(1.06); filter: brightness(1); }
}
.tn-shade { inset: 0; background: linear-gradient(to top, rgba(5, 10, 22, .85) 0%, rgba(5, 10, 22, .3) 45%, rgba(5, 10, 22, .55) 100%); will-change: opacity; }

/* la phrase (au debut) puis le logo GGG (en defilant) : deux calques au centre, pilotes par intro.js */
.tn-words, .tn-brand {
  inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 6vw 4vh; will-change: transform, opacity;
}
.tn-brand { opacity: 0; }
.tn-logo {
  display: block; width: clamp(240px, 36vw, 560px); height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px rgba(250, 204, 21, .28));
}
.tn-title {
  margin: 0; text-align: center;
  color: #fff; font-weight: 800; letter-spacing: -.035em; line-height: .95; font-size: clamp(2.4rem, 7.6vw, 7.2rem);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
html.rf-latin .tn-title { font-family: "Archivo", system-ui, sans-serif; font-stretch: 112%; }
html:not(.rf-latin) .tn-title { font-size: clamp(1.9rem, 6vw, 5.2rem); line-height: 1.15; letter-spacing: 0; }
[dir="rtl"] .tn-title { font-size: clamp(2.6rem, 9vw, 7rem); }
.tn-title span { display: block; overflow: hidden; padding-bottom: .08em; }
.tn-title b { display: block; font-weight: inherit; transform: translateY(110%); }
.tn-title span + span b { color: #facc15; }
.tn.is-on .tn-title b { animation: tn-up 1.1s cubic-bezier(.2, .8, .2, 1) .5s both; }
.tn.is-on .tn-title span + span b { animation-delay: 1.1s; }
@keyframes tn-up { from { transform: translateY(110%); } to { transform: none; } }

/* aide "faites defiler" + credit photo (obligatoire, licence CC BY-SA) */
.tn-hint {
  left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(226, 232, 240, .9); font: 600 .9rem/1.2 system-ui, sans-serif; letter-spacing: .02em; z-index: 3;
}
.tn-hint i { display: block; width: 2px; height: 34px; background: linear-gradient(#facc15, transparent); animation: tn-drop 1.6s ease-in-out infinite; }
@keyframes tn-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.tn-credit {
  pointer-events: auto !important; z-index: 4; left: 14px; bottom: calc(10px + env(safe-area-inset-bottom));
  font: 500 11px/1.3 system-ui, sans-serif; color: rgba(226, 232, 240, .6) !important; text-decoration: none;
}
[dir="rtl"] .tn-credit { left: auto; right: 14px; direction: ltr; }
.tn-credit:hover { color: #fff !important; text-decoration: underline; }
@media (max-width: 640px) { .tn-hint { bottom: calc(60px + env(safe-area-inset-bottom)); } }

/* mouvement reduit : une seule image fixe (stade + phrase) */
.tn.tn-static { height: 100vh; height: 100svh; }
.tn.tn-static .tn-stage { position: relative; top: 0; }
.tn.tn-static .tn-hint { display: none; }
.tn.tn-static .tn-cam, .tn.tn-static .tn-title b { animation: none !important; transform: none; }
.tn.tn-static .tn-words { transform: translateY(14vh); }
.tn.tn-static .tn-brand { opacity: 1; transform: translateY(-20vh) scale(.6); }
