/* Calculateur du taux horaire minimum rentable : cockpit */
.th { --th-ink: #eef2ff; --th-dim: rgba(226, 232, 255, .62); --th-line: rgba(255, 255, 255, .08); --th-loss: #ff6b6b; --th-mid: #ffb547; --th-goal: #3d8bff;
  display: block; position: relative; }
.th__cockpit { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: 32px; overflow: hidden; color: var(--th-ink);
  background: radial-gradient(120% 90% at 18% 0%, #1a2a7a 0%, #0c1438 42%, #050817 100%);
  box-shadow: 0 50px 120px -30px rgba(15, 25, 76, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
.th__cockpit::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(80% 70% at 30% 30%, #000 30%, transparent 85%); }
.th__cockpit::after { content: ""; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(120, 170, 255, .16) 50%, transparent 58%); transform: translateX(-60%); }
.th.is-live .th__cockpit::after { animation: th-sweep 1.8s cubic-bezier(.2, .7, .2, 1) .1s 1 both; }
@keyframes th-sweep { 0% { opacity: 0; transform: translateX(-60%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%); } }

/* Jauge */
.th__gauge-wrap { position: relative; display: grid; justify-items: center; align-content: start; gap: 18px; padding: 34px 28px 28px; border-right: 1px solid var(--th-line); }
.th__eyebrow { justify-self: stretch; display: flex; justify-content: space-between; align-items: center; font: 600 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--th-dim); }
.th__live { display: inline-flex; align-items: center; gap: 8px; }
.th__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 4px rgba(57, 217, 138, .18), 0 0 12px #39d98a; }
.th__dial { position: relative; width: min(430px, 100%); aspect-ratio: 1; }
.th__gauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.th__track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 16; stroke-linecap: round; }
.th__z { fill: none; stroke-width: 16; stroke-linecap: round; transition: opacity .3s; }
.th__z1 { stroke: var(--th-loss); opacity: .85; }
.th__z2 { stroke: var(--th-mid); opacity: .9; }
.th__z3 { stroke: url(#th-grad); filter: url(#th-glow); }
.th__ticks line { stroke: rgba(255, 255, 255, .16); stroke-width: 1.4; }
.th__ticks line.is-major { stroke: rgba(255, 255, 255, .34); stroke-width: 2; }
.th__notch { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .9; }
.th__scale { fill: var(--th-dim); font: 600 11px/1 var(--font-mono); }
.th__mark circle { fill: #fff; filter: url(#th-glow); }
.th__mark-ring { fill: none !important; stroke: #fff; stroke-width: 1.5; opacity: .45; animation: th-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes th-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.th__mark-l { fill: #fff; font: 700 12px/1 var(--font-sans); paint-order: stroke; stroke: rgba(5, 8, 23, .9); stroke-width: 4px; }
.th__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding-top: 4%; }
.th__lbl { font: 600 .7rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--th-dim); }
.th__big { display: flex; align-items: baseline; justify-content: center; gap: 6px; line-height: .95; }
.th__big b { font-size: clamp(3.2rem, 8.4vw, 5.2rem); font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 20%, #a9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th__big small { font-size: .95rem; font-weight: 600; color: var(--th-dim); }
.th__sub { font-size: .95rem; color: var(--th-dim); }
.th__sub b { color: #fff; font-variant-numeric: tabular-nums; }
.th__verdict { margin: 0; justify-self: stretch; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: .95rem; line-height: 1.45;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--th-line); }
.th__verdict::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--th-goal); box-shadow: 0 0 14px currentColor; color: var(--th-goal); }
.th[data-zone="loss"] .th__verdict::before { background: var(--th-loss); color: var(--th-loss); }
.th[data-zone="mid"] .th__verdict::before { background: var(--th-mid); color: var(--th-mid); }
.th__stats { justify-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.th__stats div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--th-line); min-width: 0; }
.th__stats dt { font: 600 .66rem/1.25 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--th-dim); }
.th__stats dd { margin: 6px 0 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Réglages */
.th__controls { padding: 28px 28px 22px; display: grid; align-content: start; gap: 6px; min-width: 0; }
.th__tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--th-line); margin-bottom: 8px; }
.th__tabpill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px rgba(0, 0, 0, .25);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.th__tab { position: relative; z-index: 1; min-height: 40px; border: 0; background: none; color: var(--th-dim); font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1; cursor: pointer; border-radius: 999px; }
.th__tab[aria-selected="true"] { color: #fff; }
.th__tab:focus-visible, .th-f__num:focus-visible, .th__reset:focus-visible { outline: 3px solid rgba(110, 160, 255, .6); outline-offset: 2px; }
.th__panel[hidden] { display: none; }
.th__panel.is-in { animation: th-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes th-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.th-f { padding: 13px 0 12px; border-bottom: 1px solid var(--th-line); }
.th-f__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.th-f__top label { font-weight: 600; font-size: .93rem; color: #e3e9ff; }
.th-f__val { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.th-f__val:focus-within { border-color: #6ea0ff; box-shadow: 0 0 0 3px rgba(61, 139, 255, .25); }
.th-f__num { width: 76px; border: 0; background: none; color: #fff; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1; padding: 9px 0; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.th-f__num::-webkit-outer-spin-button, .th-f__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.th-f__val span { color: var(--th-dim); font-size: .85rem; font-weight: 600; }
.th-f__range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 8px 0 0; background: none; cursor: pointer; }
.th-f__range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #17a7ff, #1f6cff var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
.th-f__range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #17a7ff, #1f6cff var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); }
.th-f__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(61, 139, 255, .28), 0 4px 14px rgba(0, 0, 0, .45); transition: box-shadow .2s; }
.th-f__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(61, 139, 255, .28), 0 4px 14px rgba(0, 0, 0, .45); }
.th-f__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(110, 160, 255, .55), 0 4px 14px rgba(0, 0, 0, .45); }
.th-f__range:focus-visible { outline: none; }
.th-f__hint { margin: 2px 0 0; font-size: .8rem; color: var(--th-dim); line-height: 1.4; }
.th__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: .8rem; color: var(--th-dim); }
.th__reset { border: 0; background: none; color: #a9c2ff; font-family: inherit; font-weight: 600; font-size: .85rem; line-height: 1; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }

/* Analyses */
.th__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.th-card { padding: 22px; border-radius: 24px; background: #fff; border: 1px solid rgba(15, 25, 76, .09); box-shadow: 0 18px 50px -24px rgba(31, 108, 255, .28); min-width: 0; }
.th-card__k { margin: 0 0 6px; font: 600 .7rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #1a5ae6; }
.th-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: #0f194c; letter-spacing: -.01em; }
.th-card p { margin: 0; color: #55555c; font-size: .92rem; line-height: 1.5; }
.th-card__big { display: block; margin: 10px 0 6px; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #17a7ff, #1f6cff 55%, #2b4fe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-break { grid-column: 1 / -1; }
.th-break__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.th-break__head h3 { font-size: 1.25rem; }
.th-break__total { font-weight: 700; color: #0f194c; font-variant-numeric: tabular-nums; }
.th-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: #eef1f8; }
.th-bar i { display: block; height: 100%; transition: flex-basis .6s cubic-bezier(.2, .8, .2, 1); flex: 0 0 0; min-width: 0; }
.th-bar i + i { box-shadow: -2px 0 0 #fff; }
.th-c1 { background: #1f6cff; } .th-c2 { background: #17a7ff; } .th-c3 { background: #2b4fe0; } .th-c4 { background: #39c58a; }
.th-legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.th-legend li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; font-size: .88rem; color: #55555c; min-width: 0; }
.th-legend li::before { content: ""; grid-row: span 2; width: 10px; height: 10px; margin-top: 5px; border-radius: 3px; background: var(--c); }
.th-legend b { color: #0f194c; font-variant-numeric: tabular-nums; }
.th-break__note { margin-top: 12px !important; font-size: .85rem !important; }

/* Partage + CTA */
.th-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 26px 28px; border-radius: 28px; background: linear-gradient(180deg, #fff, #f5f8ff); border: 1px solid rgba(31, 108, 255, .16); }
.th-share h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.02em; color: #0f194c; }
.th-share p { margin: 0; color: #55555c; }
.th-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.th-sb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(15, 25, 76, .14); background: #fff; color: #0f194c; font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1; text-decoration: none; cursor: pointer; }
.th-sb:hover { border-color: #1f6cff; color: #1a5ae6; }
.th-sb:focus-visible { outline: 3px solid rgba(31, 108, 255, .45); outline-offset: 2px; }
.th-sb svg { width: 18px; height: 18px; }
.th-sb--main { background: linear-gradient(135deg, #17a7ff, #1f6cff 55%, #2b4fe0); color: #fff; border: 0; box-shadow: 0 10px 26px -10px rgba(31, 108, 255, .7); }
.th-sb--main:hover { color: #fff; filter: brightness(1.08); }
.th-sb--wa svg { color: #25d366; }
.th-share__ok { margin: -6px 0 0; min-height: 0; font-size: .88rem; font-weight: 600; color: #0a6b34; }
.th-cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 32px; align-items: center; padding: 38px 36px; border-radius: 32px; color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, #2b4fe0 0%, #1f6cff 35%, #0c1438 85%); box-shadow: 0 40px 100px -40px rgba(31, 108, 255, .8); }
.th-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; z-index: -1; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 80px rgba(255, 255, 255, .03); }
.th-cta__k { margin: 0 0 8px; font: 600 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.th-cta h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.03em; line-height: 1.08; color: #fff; }
.th-cta p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 560px; }
.th-cta__btns { display: grid; gap: 10px; justify-items: stretch; }
.th-cta__go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: #fff; color: #0f194c; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5); transition: transform .25s; }
.th-cta__go:hover { transform: translateY(-2px); color: #1a5ae6; }
.th-cta__go:focus-visible, .th-cta__sec:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.th-cta__sec { text-align: center; color: rgba(255, 255, 255, .85); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.th-cta__fine { grid-column: 1 / -1; margin: 0; font-size: .8rem !important; color: rgba(255, 255, 255, .62) !important; }

/* Pastille de résultat (mobile) */
.th-pill { position: fixed; z-index: 80; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); display: flex; gap: 14px; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: rgba(8, 12, 34, .88); color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); visibility: hidden; opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility 0s .35s; pointer-events: none; }
.th-pill.is-on { transform: translate(-50%, 0); visibility: visible; opacity: 1; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.th-pill b { font-variant-numeric: tabular-nums; }
.th-pill span { color: rgba(226, 232, 255, .65); font-weight: 500; }

/* Fiche imprimable */
.th-print { display: none; }
@media print {
  body * { visibility: hidden !important; }
  .th-print, .th-print * { visibility: visible !important; }
  .th-print { display: block !important; position: absolute; left: 0; top: 0; width: 100%; color: #000; font: 11pt/1.45 -apple-system, "Segoe UI", Arial, sans-serif; }
  .th-print h1 { font-size: 20pt; margin: 0 0 4pt; } .th-print h2 { font-size: 12pt; margin: 14pt 0 4pt; }
  .th-print table { width: 100%; border-collapse: collapse; } .th-print td, .th-print th { border-bottom: 1px solid #ccc; padding: 4pt 6pt; text-align: left; }
  .th-print .big { font-size: 26pt; font-weight: 700; } .th-print .small { font-size: 9pt; color: #444; }
  .th-pill, .ck, .mm-btn { display: none !important; }
}

@media (max-width: 980px) {
  .th__cockpit { grid-template-columns: minmax(0, 1fr); }
  .th__gauge-wrap { border-right: 0; border-bottom: 1px solid var(--th-line); }
  .th__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-share, .th-cta { grid-template-columns: minmax(0, 1fr); }
  .th-share__btns { justify-content: flex-start; }
  .th-share__ok { text-align: left; }
}
@media (max-width: 560px) {
  .th__cockpit { border-radius: 26px; }
  .th__gauge-wrap { padding: 24px 16px 20px; }
  .th__controls { padding: 20px 16px 16px; }
  .th__stats dd { font-size: .95rem; }
  .th__grid { grid-template-columns: minmax(0, 1fr); }
  .th-cta { padding: 28px 22px; }
  .th-share { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .th.is-live .th__cockpit::after, .th__mark-ring, .th__panel.is-in { animation: none; }
  .th__tabpill, .th-bar i, .th-pill, .th-cta__go { transition: none; }
}
.th-cta__hint { margin: 0; text-align: center; font-size: .85rem !important; color: rgba(255, 255, 255, .78) !important; }
.th-cta__hint:empty { display: none; }

/* ===== v2 : scène immersive ===== */
.p-th { background: #f7f8fc; }
.th-stage { position: relative; isolation: isolate; overflow: hidden; color: #eef2ff; background: #040716; }
.th-stage__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.th-aurora { position: absolute; inset: -20% -10% auto; height: 90%;
  background: radial-gradient(40% 50% at 20% 40%, rgba(23, 167, 255, .35), transparent 70%), radial-gradient(45% 55% at 80% 30%, rgba(43, 79, 224, .45), transparent 70%), radial-gradient(35% 40% at 55% 70%, rgba(122, 162, 255, .18), transparent 70%);
  filter: blur(30px); animation: th-aurora 18s ease-in-out infinite alternate; }
@keyframes th-aurora { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.th-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; transform-origin: 50% 100%; transform: perspective(500px) rotateX(68deg);
  background-image: linear-gradient(rgba(110, 160, 255, .22) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(110, 160, 255, .22) 1.5px, transparent 1.5px);
  background-size: 60px 60px; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); animation: th-floor 3.5s linear infinite; }
@keyframes th-floor { from { background-position: 0 0, 0 0; } to { background-position: 0 60px, 0 0; } }
.th-stage__in { position: relative; max-width: 1180px; margin: 0 auto; padding: 34px 16px 110px; }
.th-crumbs ol { color: rgba(226, 232, 255, .6); }
.th-crumbs a { color: rgba(226, 232, 255, .8); }
.th-crumbs li[aria-current] { color: rgba(226, 232, 255, .6); }
.th-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; padding: 0; }
.th-kicker span { padding: 7px 12px; border-radius: 999px; font: 600 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #cfe0ff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.th-kicker span:first-child { color: #fff; background: linear-gradient(135deg, rgba(23, 167, 255, .35), rgba(43, 79, 224, .45)); border-color: rgba(122, 162, 255, .5); }
.th-title { margin: 0; max-width: 19ch; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; color: #fff; }
.th-title span { display: block; background: linear-gradient(100deg, #7fd0ff 0%, #4f8bff 45%, #b4c6ff 70%, #4f8bff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: th-shine 6s ease-in-out infinite; }
@keyframes th-shine { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.th-lead { max-width: 640px; margin: 20px 0 34px; font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.55; color: rgba(226, 232, 255, .78); }
.th-stage .th__cockpit { background: radial-gradient(120% 90% at 18% 0%, rgba(30, 48, 140, .75) 0%, rgba(12, 20, 56, .85) 42%, rgba(5, 8, 23, .92) 100%); border: 1px solid rgba(140, 175, 255, .18);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 60px 140px -40px rgba(31, 108, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.th__cockpit > * { position: relative; z-index: 1; }
.th__cockpit .th-spot { display: none; }
@media (hover: hover) { .th__cockpit:hover { background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(122, 162, 255, .14), transparent 60%), radial-gradient(120% 90% at 18% 0%, rgba(30, 48, 140, .75) 0%, rgba(12, 20, 56, .85) 42%, rgba(5, 8, 23, .92) 100%); } }
.th__live { transition: color .3s; }
.th__live:not(.is-ready)::before { background: #ffb547; box-shadow: 0 0 0 4px rgba(255, 181, 71, .18), 0 0 12px #ffb547; }
.th__chip { padding: 5px 9px; border-radius: 999px; background: rgba(57, 197, 138, .16); color: #7ef0bb; border: 1px solid rgba(57, 197, 138, .4); letter-spacing: .06em; }
.th__orbit { transform-origin: 160px 160px; animation: th-orbit 40s linear infinite; }
.th__orbit circle { fill: none; stroke: rgba(140, 175, 255, .16); stroke-width: 1; stroke-dasharray: 2 7; }
.th__orbit .th__orbit-b { stroke: rgba(140, 175, 255, .1); stroke-dasharray: 40 18 4 18; }
@keyframes th-orbit { to { transform: rotate(360deg); } }
.th__dial.is-flash::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none; animation: th-flash .9s ease-out 1; box-shadow: 0 0 0 0 rgba(122, 162, 255, .6); }
.th[data-zone="loss"] .th__dial.is-flash::after { animation-name: th-flash-r; }
@keyframes th-flash { from { box-shadow: 0 0 0 0 rgba(122, 162, 255, .55), inset 0 0 60px rgba(122, 162, 255, .35); } to { box-shadow: 0 0 0 40px rgba(122, 162, 255, 0), inset 0 0 0 rgba(122, 162, 255, 0); } }
@keyframes th-flash-r { from { box-shadow: 0 0 0 0 rgba(255, 107, 107, .55), inset 0 0 60px rgba(255, 107, 107, .35); } to { box-shadow: 0 0 0 40px rgba(255, 107, 107, 0), inset 0 0 0 rgba(255, 107, 107, 0); } }
.th__tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.th__tab b { font: 600 .68rem/1 var(--font-mono); color: rgba(226, 232, 255, .45); }
.th__tab[aria-selected="true"] b { color: #7fd0ff; }

/* Niveau */
.th-rank { justify-self: stretch; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(rgba(10, 16, 44, .9), rgba(10, 16, 44, .9)) padding-box, conic-gradient(from var(--a, 0deg), #17a7ff, #7aa2ff, #39c58a, #17a7ff) border-box; border: 1.5px solid transparent; }
.th-rank__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; background: rgba(255, 255, 255, .08); }
.th-rank small { display: block; font: 600 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--th-dim); margin-bottom: 4px; }
.th-rank b { font-size: 1.15rem; letter-spacing: -.01em; }
.th-rank__lv { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.th-rank__lv li { width: 18px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); transition: background .4s, box-shadow .4s; }
.th-rank[data-lv="1"] .th-rank__lv li:nth-child(-n+1) { background: var(--th-loss); box-shadow: 0 0 10px var(--th-loss); }
.th-rank[data-lv="2"] .th-rank__lv li:nth-child(-n+2) { background: var(--th-mid); box-shadow: 0 0 10px var(--th-mid); }
.th-rank[data-lv="3"] .th-rank__lv li:nth-child(-n+3) { background: #3d8bff; box-shadow: 0 0 10px #3d8bff; }
.th-rank[data-lv="4"] .th-rank__lv li { background: #39c58a; box-shadow: 0 0 10px #39c58a; }
.th-rank[data-lv="1"] { background: linear-gradient(rgba(10, 16, 44, .9), rgba(10, 16, 44, .9)) padding-box, linear-gradient(90deg, #ff6b6b, #ff9a6b) border-box; }
.th-rank[data-lv="2"] { background: linear-gradient(rgba(10, 16, 44, .9), rgba(10, 16, 44, .9)) padding-box, linear-gradient(90deg, #ffb547, #ffd27a) border-box; }

/* Corps clair */
.th__body { position: relative; max-width: 1180px; margin: -64px auto 0; padding: 0 16px 8px; display: grid; gap: 22px; }
.th-boosts-head { grid-column: 1 / -1; padding: 18px 4px 0; }
.th-boosts-head h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.025em; color: #0f194c; }
.th-boosts-head p:last-child { margin: 0; color: #55555c; }
.th-boost { display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.th-boost .th-card__big { margin-top: auto; padding-top: 12px; }
.th-boost__s { font-size: .86rem !important; }
.th-boost__btn { margin-top: 14px; min-height: 42px; border-radius: 999px; border: 1px solid rgba(31, 108, 255, .35); background: #fff; color: #1a5ae6; font-family: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s; }
.th-boost__btn:hover { background: #f0f5ff; }
.th-boost__btn:focus-visible, .th-boost__link:focus-visible { outline: 3px solid rgba(31, 108, 255, .45); outline-offset: 2px; }
.th-boost.is-on { border-color: transparent; transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(31, 108, 255, .6), 0 0 0 2px #1f6cff; }
.th-boost.is-on .th-boost__btn { background: linear-gradient(135deg, #17a7ff, #1f6cff 55%, #2b4fe0); color: #fff; border: 0; }
.th-bonus { display: flex; flex-direction: column; background: linear-gradient(160deg, #0c1438, #1a2a7a); border: 0; color: #fff; }
.th-bonus h3, .th-bonus .th-card__k { color: #fff; }
.th-bonus p { color: rgba(226, 232, 255, .78); }
.th-bonus .th-card__big { background: linear-gradient(120deg, #7fd0ff, #b4c6ff); -webkit-background-clip: text; background-clip: text; }
.th-boost__link { margin-top: auto; padding-top: 12px; color: #7fd0ff; font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.th-share__main { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.th-share__main .th-sb { justify-content: center; min-height: 52px; font-size: 1rem; }
.th-sb--pdf { background: #0f194c; color: #fff; border: 0; }
.th-sb--pdf:hover { color: #fff; background: #1a2a7a; }
.th-sb[disabled] { opacity: .7; cursor: progress; }
.th-share__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.th-share__btns > span { font-size: .88rem; color: #6e6e73; margin-right: 4px; }

/* Feuille de partage */
html.th-lock { overflow: hidden; }
.th-sheet { position: fixed; inset: 0; z-index: 210; display: grid; align-items: end; justify-items: center; padding: 12px; background: rgba(4, 7, 22, .55); opacity: 0; transition: opacity .25s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.th-sheet[hidden] { display: none; }
.th-sheet.is-in { opacity: 1; }
.th-sheet__card { width: min(520px, 100%); padding: 20px; border-radius: 26px; background: #fff; color: #1d1d1f; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); transform: translateY(24px); transition: transform .35s cubic-bezier(.2, .8, .2, 1); margin-bottom: env(safe-area-inset-bottom); }
.th-sheet.is-in .th-sheet__card { transform: none; }
@media (min-width: 700px) { .th-sheet { align-items: center; } }
.th-sheet__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.th-sheet__top b { font-size: 1.15rem; color: #0f194c; }
.th-sheet__x { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(15, 25, 76, .16); background: #fff; font-family: inherit; font-weight: 600; cursor: pointer; }
.th-sheet__msg { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #e8f0ff; color: #0f194c; font-size: .92rem; line-height: 1.45; }
.th-sheet__ch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.th-sheet__ch .th-sb { justify-content: center; padding: 0 8px; }
.th-sheet__l { display: block; margin: 16px 0 6px; font-size: .85rem; font-weight: 600; color: #6e6e73; }
.th-sheet__url { display: flex; gap: 8px; }
.th-sheet__url input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(15, 25, 76, .16); font: inherit; font-size: .88rem; color: #0f194c; background: #f7f8fc; }
.th-sheet__url button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: #0f194c; color: #fff; font-family: inherit; font-weight: 600; cursor: pointer; }
.th-sheet__note { margin: 12px 0 0; font-size: .8rem; color: #6e6e73; }
.th-sheet__x:focus-visible, .th-sheet__url button:focus-visible, .th-sheet__url input:focus-visible { outline: 3px solid rgba(31, 108, 255, .45); outline-offset: 2px; }

/* Notification */
.th-toast { position: fixed; z-index: 205; left: 50%; top: 84px; transform: translate(-50%, -20px); width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 16px; background: #0f194c; color: #fff; font-size: .9rem; line-height: 1.4;
  box-shadow: 0 20px 50px rgba(15, 25, 76, .4); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s, visibility 0s .3s; }
.th-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .3s; }
.th-toast__a { margin-left: 6px; padding: 0; border: 0; background: none; color: #7fd0ff; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.th-pill i { font-style: normal; }
.th-pill.is-bump { animation: th-bump .5s ease-out 1; }
@keyframes th-bump { 40% { transform: translate(-50%, 0) scale(1.08); box-shadow: 0 0 0 6px rgba(61, 139, 255, .35), 0 16px 40px rgba(0, 0, 0, .35); } }

@media (max-width: 980px) {
  .th-share { grid-template-columns: minmax(0, 1fr); }
  .th-share__main { min-width: 0; }
}
@media (max-width: 560px) {
  .th-stage__in { padding: 22px 12px 96px; }
  .th-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .th__body { padding: 0 10px 8px; }
  .th-rank { grid-template-columns: auto 1fr; }
  .th-rank__lv { grid-column: 1 / -1; }
  .th-rank__lv li { flex: 1; }
  .th__tab b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .th-aurora, .th-floor, .th-title span, .th__orbit, .th__dial.is-flash::after, .th-pill.is-bump { animation: none; }
  .th-sheet, .th-sheet__card, .th-toast, .th-boost { transition: none; }
}
@media print { .th-stage__fx, .th-sheet, .th-toast { display: none !important; } }
