/* ANIMATION D'ARRIVÉE « LA CHAMBRE D'ESSAI » (3,2 s) — pilotée par assets/js/intro.js
   0-300 ms   le cadran apparaît (graduations)
   300-1700   la jauge balaie de −70 °C à +180 °C, le halo passe du froid (bleu glace) au chaud (ambre)
   1700-2050  la mesure s'efface, la jauge devient l'arc du logo weisstechnik qui se dessine
   2000-2400  légende « Simuler le réel. Avant le réel. »
   2500-3200  la scène avance et s'efface, le hero entre (html.wt-intro-revealed) */

#wt-intro { display: none; }
html.wt-intro-on #wt-intro { display: block; position: fixed; inset: 0; z-index: 1000; background: #001B47; color: #fff; overflow: hidden; cursor: pointer; animation: wti-sortie .7s 2.5s cubic-bezier(.6, 0, .4, 1) forwards; }
html.wt-intro-lock, html.wt-intro-lock body { overflow: hidden; }

.wt-intro__grille { position: absolute; inset: -2px; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 65%); animation: wti-grille 3.2s linear both; }
.wt-intro__halo { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; animation: wti-fondu .4s ease both; }
.wt-intro__halo::before, .wt-intro__halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.wt-intro__halo::before { background: radial-gradient(circle, rgba(143, 211, 255, .34) 0%, rgba(143, 211, 255, .08) 22%, transparent 45%); animation: wti-froid 1.4s .3s ease-in-out forwards; }
.wt-intro__halo::after { background: radial-gradient(circle, rgba(255, 170, 90, .36) 0%, rgba(255, 140, 60, .08) 22%, transparent 45%); opacity: 0; animation: wti-chaud 1.4s .3s ease-in-out forwards; }

.wt-intro__scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; animation: wti-avance .7s 2.5s cubic-bezier(.6, 0, .4, 1) forwards; }
.wt-intro__cadran { position: relative; width: min(62vmin, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.wt-intro__jauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: wti-jauge-out .45s 1.7s ease forwards; }
.wt-intro__piste, .wt-intro__balayage { fill: none; transform: rotate(126deg); transform-origin: 100px 100px; }
.wt-intro__piste { stroke: rgba(255, 255, 255, .12); stroke-width: 3; stroke-dasharray: 442.3 552.9; }
.wt-intro__balayage { stroke: #8FD3FF; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 552.9; animation: wti-balayage 1.4s .3s cubic-bezier(.65, 0, .35, 1) forwards, wti-couleur 1.4s .3s ease-in-out forwards; filter: drop-shadow(0 0 6px rgba(143, 211, 255, .7)); }
.wt-intro__graduations line { stroke: rgba(255, 255, 255, .35); stroke-width: 1; opacity: 0; animation: wti-fondu .3s ease forwards; }
.wt-intro__graduations line.is-major { stroke: rgba(255, 255, 255, .7); stroke-width: 1.6; }

.wt-intro__mesure { position: relative; text-align: center; font-family: "Titillium Web", system-ui, sans-serif; animation: wti-fondu .3s .15s ease both, wti-mesure-out .4s 1.7s ease forwards; }
.wt-intro__valeur { font-size: clamp(56px, 13vmin, 96px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; color: #8FD3FF; animation: wti-couleur-texte 1.4s .3s ease-in-out forwards; }
.wt-intro__unite { font-size: clamp(22px, 4.5vmin, 32px); font-weight: 300; margin-left: 4px; vertical-align: top; opacity: .85; }
.wt-intro__etat { display: block; margin-top: 10px; font-size: clamp(9px, 2.5vmin, 12px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.wt-intro__etat::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #C4CF2A; vertical-align: 1px; animation: wti-clignote .7s steps(2) infinite; }

.wt-intro__logo { position: absolute; inset: 0; display: grid; place-items: center; }
.wt-logo--intro { font-size: clamp(44px, 11vmin, 84px); color: #fff; opacity: 0; animation: wti-logo .6s 1.85s cubic-bezier(.2, .7, .2, 1) forwards; }
.wt-logo--intro .wt-logo__arc path { stroke-width: 3.6; stroke-dasharray: 100; stroke-dashoffset: 100; animation: wti-trace .7s 1.75s cubic-bezier(.5, 0, .2, 1) forwards; }
.wt-logo--intro .wt-logo__arc path + path { animation-delay: 1.9s; }
.wt-logo--intro .wt-logo__technik { opacity: 0; animation: wti-fondu .5s 2.05s ease forwards; }

.wt-intro__legende { position: relative; font-family: "Titillium Web", system-ui, sans-serif; font-size: clamp(15px, 2.4vmin, 19px); font-weight: 300; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); opacity: 0; animation: wti-legende .5s 2.05s ease forwards; }
.wt-intro__legende b { font-weight: 700; color: #C4CF2A; }

@keyframes wti-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes wti-chaud { to { opacity: 1; } }
@keyframes wti-froid { to { opacity: 0; } }
@keyframes wti-grille { from { transform: scale(1.15); opacity: 0; } 15% { opacity: 1; } to { transform: scale(1); } }
@keyframes wti-balayage { to { stroke-dasharray: 442.3 552.9; } }
@keyframes wti-couleur { 0% { stroke: #8FD3FF; } 45% { stroke: #ffffff; } 100% { stroke: #FFA95A; } }
@keyframes wti-couleur-texte { 0% { color: #8FD3FF; } 45% { color: #ffffff; } 100% { color: #FFB36B; } }
@keyframes wti-jauge-out { to { opacity: 0; transform: scale(1.12) rotate(18deg); } }
@keyframes wti-mesure-out { to { opacity: 0; transform: scale(.85); filter: blur(6px); } }
@keyframes wti-logo { from { opacity: 0; transform: scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wti-trace { to { stroke-dashoffset: 0; } }
@keyframes wti-legende { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wti-clignote { 50% { opacity: .2; } }
@keyframes wti-avance { to { transform: scale(1.35); opacity: 0; } }
@keyframes wti-sortie { to { opacity: 0; visibility: hidden; } }

/* Le hero attend la fin de l'intro pour faire son entrée */
html.wt-intro-on:not(.wt-intro-revealed) .hero__texte > *,
html.wt-intro-on:not(.wt-intro-revealed) .carte { animation-play-state: paused; }
