/* Lecteur du tutoriel animé. La scène est dessinée en 960 × 600 puis mise à l'échelle. */
.tv { display: grid; grid-template-columns: minmax(0, 3fr) minmax(13rem, 1fr); gap: 1rem; margin: 1rem 0; }
.tv-main { min-width: 0; background: #0d1b2a; border-radius: 1rem; overflow: hidden; }
.tv-main:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.tv-main:fullscreen .tv-frame { width: min(100vw, calc((100vh - 3.5rem) * 1.6)); margin: 0 auto; }
.tv-frame { position: relative; aspect-ratio: 960 / 600; overflow: hidden; background: #dfe8f3; }
.tv-stage { position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; cursor: pointer; }
.tv-browser { position: absolute; inset: 18px 22px 22px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(13, 27, 42, .25); font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #12312a; }
.tv-browser-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #eef1f5; border-bottom: 1px solid #d8dee6; }
.tv-dots i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; background: #ff5f57; }
.tv-dots i:nth-child(2) { background: #febc2e; } .tv-dots i:nth-child(3) { background: #28c840; }
.tv-url { flex: 1; padding: 4px 14px; border-radius: 999px; background: #fff; color: #44546a; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-url::before { content: "🔒 "; }
.tv-viewport { position: relative; flex: 1; overflow: hidden; background: #f4f7f6; }
.tv-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tv-screen[hidden] { display: none; }
.tv-scroll { flex: 1; overflow: hidden; padding: 16px 0 40px; }
.tv-hidden { display: none !important; }

/* Pointeur */
.tv-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 28px; height: 28px; margin: -2px 0 0 -4px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.tv-ripple { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -14px 0 0 -12px; border-radius: 50%; border: 3px solid rgba(29, 95, 168, .8); opacity: 0; transform: scale(.3); }
.tv-cursor.is-click .tv-ripple { animation: tv-ripple .35s ease-out; }
@keyframes tv-ripple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }

/* Sous-titres, titres de chapitre, superpositions */
.tv-caption { position: absolute; left: 50%; bottom: 2.5%; z-index: 6; max-width: 80%; margin: 0; padding: .45em .9em; transform: translateX(-50%); border-radius: .5em; background: rgba(10, 20, 32, .86); color: #fff; font-size: clamp(.78rem, 1.6vw, 1.05rem); line-height: 1.35; text-align: center; pointer-events: none; }
.tv-chapter-flash { position: absolute; left: 50%; top: 42%; z-index: 6; padding: 14px 30px; transform: translate(-50%, -50%); border-radius: 14px; background: rgba(29, 95, 168, .94); color: #fff; font: 700 28px/1.2 system-ui, sans-serif; opacity: 0; pointer-events: none; }
.tv-chapter-flash.is-on { animation: tv-flash 1.6s ease-out; }
@keyframes tv-flash { 0% { opacity: 0; transform: translate(-50%, -40%); } 15%, 70% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; } }
.tv-big-play { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; border: 0; background: rgba(13, 27, 42, .45); color: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.tv-big-play span { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: #d62828; font-size: 1.8rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.tv-big-play small { font-weight: 400; font-size: .95rem; }
.tv-big-play[hidden], .tv-end[hidden] { display: none; }
.tv-end { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(13, 27, 42, .7); color: #fff; font-size: 1.3rem; }
.tv-end a.btn.btn--ghost { color: #fff; border-color: #fff; background: transparent; }

/* Commandes */
.tv-controls { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; color: #fff; }
.tv-controls button, .tv-controls select { min-width: 2.2rem; height: 2.2rem; padding: 0 .45rem; border: 0; border-radius: .45rem; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.tv-controls select option { color: #000; }
.tv-controls button:hover, .tv-controls button:focus-visible, .tv-controls select:focus-visible { background: rgba(255, 255, 255, .15); outline: 2px solid #8ec5ff; }
.tv-controls [aria-pressed=false] { opacity: .55; }
.tv-progress { position: relative; flex: 1; min-width: 4rem; }
.tv-progress input { width: 100%; accent-color: #d62828; cursor: pointer; }
.tv-ticks i { position: absolute; top: 50%; width: 2px; height: 10px; margin-top: -5px; background: rgba(255, 255, 255, .5); pointer-events: none; }
.tv-time { font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.tv-chapters { margin: 0; padding: .4rem; list-style: none; max-height: 34rem; overflow: auto; border: 1px solid #c9dcf2; border-radius: 1rem; background: #fff; counter-reset: ch; }
.tv-chapters button { display: flex; gap: .5rem; width: 100%; padding: .45rem .6rem; border: 0; border-radius: .6rem; background: none; color: #0f2d4f; text-align: left; font: inherit; cursor: pointer; }
.tv-chapters button:hover, .tv-chapters button:focus-visible { background: #e8f1fb; }
.tv-chapters button.is-current { background: #1d5fa8; color: #fff; font-weight: 700; }
.tv-ch-time { min-width: 2.4rem; font-variant-numeric: tabular-nums; opacity: .7; }

/* --- Reproductions des écrans (préfixe tvs-) --- */
.tvs-site-head, .tvs-app-head { display: flex; align-items: center; gap: 18px; padding: 12px 22px; background: #fff; border-bottom: 1px solid #e1e8e5; }
.tvs-site-head nav, .tvs-app-head nav { display: flex; gap: 16px; flex: 1; color: #44546a; font-size: 14px; }
.tvs-app-head { background: #12372b; color: #fff; border: 0; }
.tvs-app-head nav { color: #cfe6db; }
.tvs-logo { font-weight: 800; font-size: 17px; }
.tvs-site-head .tvs-logo { color: #1f7a54; }
.tvs-btn { display: inline-block; padding: 9px 18px; border-radius: 9px; background: #1f7a54; color: #fff; font-weight: 700; text-align: center; transition: transform .1s; }
.tvs-btn--small { padding: 6px 12px; font-size: 13px; }
.tvs-btn--block { display: block; margin-top: 12px; }
.tvs-btn--ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.tvs-app-head .tvs-btn--ghost { color: #fff; }
.tvs-link { color: #1f7a54; font-weight: 600; text-decoration: underline; }
.tvs-hero { margin: 26px 40px 18px; padding: 34px; border-radius: 18px; background: linear-gradient(135deg, #e6f5ee, #fff6dc); text-align: center; }
.tvs-hero h3 { margin: 0 0 8px; font-size: 26px; color: #12372b; }
.tvs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 40px; }
.tvs-tiles span { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid #dbe7e1; font-weight: 700; text-align: center; }
.tvs-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; padding: 22px 40px; }
.tvs-bird { display: flex; flex-direction: column; align-items: center; font-size: 110px; line-height: 1; }
.tvs-bird small { font-size: 18px; font-weight: 700; color: #1f7a54; }
.tvs-panel { padding: 22px 26px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(18, 55, 43, .08); }
.tvs-panel--wide { margin: 0 auto 14px; width: 760px; box-sizing: border-box; }
.tvs-panel h3 { margin: 2px 0 8px; font-size: 22px; color: #12372b; }
.tvs-panel label { display: block; margin: 8px 0; font-size: 13px; font-weight: 700; color: #2d4a40; }
.tvs-eyebrow { margin: 0; color: #1f7a54; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tvs-hint { margin: 4px 0; color: #5a6f66; font-size: 13px; }
.tvs-req { color: #c0392b; }
.tvs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tvs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tvs-row--center { justify-content: center; }
.tvs-center { text-align: center; }
.tv-input { display: block; box-sizing: border-box; margin-top: 4px; min-height: 38px; padding: 8px 11px; border: 1.5px solid #c4d3cc; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 400; color: #12312a; white-space: pre; overflow: hidden; }
.tvs-row { margin-top: 4px; } .tvs-row .tv-input { flex: 1; margin-top: 0; }
.tv-input:empty::before { content: attr(data-placeholder); color: #98a8a1; }
.tv-input.is-focus { border-color: #1d5fa8; box-shadow: 0 0 0 3px rgba(29, 95, 168, .2); }
.tv-input.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #1d5fa8; animation: tv-caret .8s steps(1) infinite; }
.tv-input.is-typing:empty::before { content: ""; }
.tv-input--readonly { background: #f2f5f4; }
.tv-input--select::after { content: " ▾"; float: right; color: #5a6f66; }
@keyframes tv-caret { 50% { opacity: 0; } }
.tvs-status { font-weight: 400; color: #5a6f66; }
.tvs-status.is-ok { color: #1f7a54; font-weight: 700; }
.tvs-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; margin: 6px 0 10px; padding: 10px 14px; border-radius: 10px; background: #f5f8f7; list-style: none; font-size: 13px; color: #5a6f66; }
.tvs-rules li i { display: inline-block; width: 16px; font-style: normal; font-weight: 800; }
.tvs-rules li.is-ok { color: #1f7a54; font-weight: 700; }
.tvs-robot { display: flex; align-items: center; gap: 12px; width: 300px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #d0d7de; border-radius: 6px; background: #fafafa; font-size: 14px; }
.tvs-robot small { margin-left: auto; color: #7a8a99; font-size: 10px; }
.tvs-check { width: 22px; height: 22px; border: 2px solid #8a98a6; border-radius: 4px; background: #fff; }
.tvs-robot.is-done .tvs-check { border-color: #1f7a54; background: #1f7a54; position: relative; }
.tvs-robot.is-done .tvs-check::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-weight: 900; text-align: center; line-height: 18px; }
.tvs-dim { opacity: .35; filter: blur(1px); }
.tvs-modal { position: absolute; left: 50%; top: 52%; width: 520px; padding: 24px 28px; transform: translate(-50%, -50%); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(13, 27, 42, .35); text-align: center; }
.tvs-modal h3 { margin: 0 0 6px; color: #12372b; font-size: 22px; }
.tvs-modal-icon { margin: 0; font-size: 44px; color: #1f7a54; }
.tvs-big { margin: 0; font-size: 52px; }
.tvs-mail-head { display: flex; align-items: center; gap: 24px; padding: 12px 20px; background: #2b4c7e; color: #fff; font-weight: 700; }
.tvs-mail-search { flex: 1; padding: 6px 14px; border-radius: 8px; background: rgba(255, 255, 255, .2); font-weight: 400; font-size: 13px; }
.tvs-mail { display: grid; grid-template-columns: 190px 1fr; flex: 1; }
.tvs-mail aside { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #eef2f8; font-size: 14px; }
.tvs-pill { display: inline-block; min-width: 18px; padding: 0 7px; border-radius: 999px; background: #d62828; color: #fff; font-size: 12px; text-align: center; }
.tvs-pill--grey { background: #e3e8ee; color: #44546a; }
.tvs-mail-row { display: grid; grid-template-columns: 130px 1fr 80px; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #e3e8ee; background: #fff; font-size: 14px; }
.tvs-mail-row.is-unread { background: #f3f8ff; }
.tvs-mail-row small { color: #6b7b8f; text-align: right; }
.tvs-mail-body { padding: 16px 26px; overflow: hidden; }
.tvs-mail-subject { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.tvs-mail-card { max-width: 520px; padding: 18px 26px; border-radius: 14px; background: #fff; border: 1px solid #dbe5e0; font-size: 14px; }
.tvs-mail-brand { margin: -18px -26px 14px; padding: 14px 26px; border-radius: 14px 14px 0 0; background: #0f5e44; color: #fff; font-weight: 800; font-size: 18px; }
.tvs-mail-brand small { font-weight: 400; font-size: 13px; }
.tvs-green { color: #0f5e44; }
.tvs-flash { margin: 14px 40px 0; padding: 10px 16px; border-radius: 10px; background: #dff3e9; color: #12372b; font-weight: 700; }
.tvs-toast { position: absolute; z-index: 4; top: 58px; right: 24px; margin: 0; padding: 10px 18px; border-radius: 12px; background: #1f7a54; color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.tvs-avatar { font-size: 22px; }
.tvs-dash { padding: 20px 0; }
.tvs-bar { height: 10px; margin: 10px 0; border-radius: 999px; background: #e3ebe7; overflow: hidden; }
.tvs-bar i { display: block; height: 100%; background: #1f7a54; }
.tvs-todo { margin: 0; padding-left: 4px; list-style: none; line-height: 1.9; }
.tvs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 760px; margin: 0 auto; }
.tvs-cards span { display: flex; justify-content: space-between; padding: 14px 18px; border-radius: 14px; background: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(18, 55, 43, .06); }
.tvs-end { margin: auto; padding: 30px 40px; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(13, 27, 42, .15); text-align: center; opacity: 0; transform: scale(.9); transition: opacity .5s, transform .5s; }
.tvs-end.is-on { opacity: 1; transform: none; }
.tvs-end h3 { margin: 6px 0 10px; font-size: 26px; color: #12372b; }
.tvs-end ol { display: inline-block; margin: 0 0 16px; padding: 0; list-style: none; text-align: left; line-height: 1.9; font-weight: 600; }
.tvs-confetti { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.tvs-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; opacity: 0; }
.tvs-confetti.is-on i { animation: tv-confetti 2.6s ease-in forwards; }
@keyframes tv-confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(560px) rotate(540deg); } }
.tvs-confetti i:nth-child(4n) { background: #f5b400; } .tvs-confetti i:nth-child(4n+1) { background: #1d5fa8; }
.tvs-confetti i:nth-child(4n+2) { background: #d62828; } .tvs-confetti i:nth-child(4n+3) { background: #1f7a54; }
.tvs-confetti i:nth-child(1) { left: 4%; animation-delay: .0s; } .tvs-confetti i:nth-child(2) { left: 8%; animation-delay: .3s; }
.tvs-confetti i:nth-child(3) { left: 12%; animation-delay: .1s; } .tvs-confetti i:nth-child(4) { left: 16%; animation-delay: .5s; }
.tvs-confetti i:nth-child(5) { left: 20%; animation-delay: .2s; } .tvs-confetti i:nth-child(6) { left: 24%; animation-delay: .6s; }
.tvs-confetti i:nth-child(7) { left: 28%; animation-delay: .15s; } .tvs-confetti i:nth-child(8) { left: 32%; animation-delay: .45s; }
.tvs-confetti i:nth-child(9) { left: 36%; animation-delay: .05s; } .tvs-confetti i:nth-child(10) { left: 40%; animation-delay: .35s; }
.tvs-confetti i:nth-child(11) { left: 44%; animation-delay: .25s; } .tvs-confetti i:nth-child(12) { left: 48%; animation-delay: .55s; }
.tvs-confetti i:nth-child(13) { left: 52%; animation-delay: .1s; } .tvs-confetti i:nth-child(14) { left: 56%; animation-delay: .4s; }
.tvs-confetti i:nth-child(15) { left: 60%; animation-delay: .2s; } .tvs-confetti i:nth-child(16) { left: 64%; animation-delay: .65s; }
.tvs-confetti i:nth-child(17) { left: 68%; animation-delay: .3s; } .tvs-confetti i:nth-child(18) { left: 72%; animation-delay: .0s; }
.tvs-confetti i:nth-child(19) { left: 76%; animation-delay: .5s; } .tvs-confetti i:nth-child(20) { left: 80%; animation-delay: .15s; }
.tvs-confetti i:nth-child(21) { left: 84%; animation-delay: .35s; } .tvs-confetti i:nth-child(22) { left: 88%; animation-delay: .6s; }
.tvs-confetti i:nth-child(23) { left: 92%; animation-delay: .25s; } .tvs-confetti i:nth-child(24) { left: 96%; animation-delay: .45s; }

/* Pages de l'application (tutoriels Configurer et Importer) */
.tvs-app-head--full { gap: 10px; padding: 10px 14px; }
.tvs-app-head--full .tvs-logo { font-size: 15px; white-space: nowrap; }
.tvs-app-head--full nav { gap: 9px; font-size: 12px; white-space: nowrap; }
.tvs-app-head--full .tvs-avatar { font-size: 18px; }
.tvs-app-head--full .tvs-btn--small { padding: 3px 8px; font-size: 11.5px; white-space: nowrap; }
.tvs-page { padding: 12px 22px 60px; font-size: 13px; }
.tvs-hero2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; padding: 8px 18px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(18, 55, 43, .06); }
.tvs-hero2 h3 { margin: 0; font-size: 19px; color: #12372b; }
.tvs-hero2 .tvs-hint { margin: 0; }
.tvs-hero2--dash { margin-top: 10px; }
.tvs-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e9f0ec; color: #2d4a40; font-size: 12px; font-weight: 700; }
.tvs-chip--green { background: #2f7f3f; color: #fff; }
.tvs-btn--line { background: #fff; color: #1f7a54; border: 1.5px solid #1f7a54; }
.tvs-btn--grey { background: #44546a; }
.tvs-btn--pill { padding: 9px 26px; border-radius: 999px; background: #2b7a78; font-size: 15px; }
.tvs-pnav { display: flex; gap: 6px; margin: 0 0 8px; }
.tvs-pnav span { padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid #dbe7e1; font-size: 12px; font-weight: 600; color: #44546a; }
.tvs-pnav span.is-on { border-color: #1f7a54; background: #e6f5ee; color: #12372b; }
.tvs-card { margin-bottom: 8px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(18, 55, 43, .06); }
.tvs-form label { display: block; margin: 4px 0; font-size: 12px; font-weight: 700; color: #2d4a40; }
.tvs-form .tv-input { min-height: 32px; padding: 6px 9px; font-size: 13px; }
.tvs-form-head { margin: 0 0 6px; } .tvs-form-head .tvs-hint { font-size: 12px; }
.tvs-sub { margin: 6px 0 2px; font-weight: 800; color: #12372b; }
.tvs-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.tvs-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
.tvs-form .tvs-grid2 { gap: 0 14px; }
.tvs-span2 { grid-column: span 2; }
.tvs-rel { position: relative; }
.tvs-faded { opacity: .55; }
.tvs-avatars { display: flex; gap: 8px; margin: 2px 0 4px; }
.tvs-avatar-choice { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #dbe7e1; background: #f7faf9; font-size: 22px; }
.tvs-avatar-choice.is-on { border-color: #1f7a54; box-shadow: 0 0 0 3px rgba(31, 122, 84, .25); }
.tvs-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; display: flex; flex-direction: column; border: 1px solid #c4d3cc; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.tvs-suggest-item { padding: 7px 10px; border-bottom: 1px solid #eef2f0; font-weight: 400; }
.tvs-suggest-item i { color: #44546a; } .tvs-suggest-item small { float: right; color: #7a8a99; }
.tvs-quick-head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 14px; }
.tvs-quick-head span { font-size: 34px; line-height: 1; }
.tvs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tvs-table th { padding: 5px 8px; background: #f0f5f2; text-align: left; color: #2d4a40; }
.tvs-table td { padding: 4px 8px; border-bottom: 1px solid #eef2f0; }
.tvs-table--small { font-size: 12px; }
.tvs-help { margin: 0 0 6px; padding: 8px 12px; border: 1px solid #d8dfe8; border-radius: 10px; background: #f7fbff; font-size: 12px; color: #44546a; }
.tvs-help b { display: block; color: #12372b; }
.tvs-swatches { display: flex; align-items: center; gap: 7px; margin: 2px 0 6px; }
.tvs-swatch { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid #b8c6bf; background: var(--sw); }
.tvs-swatch.is-on { outline: 3px solid #1d5fa8; outline-offset: 2px; }
.tvs-swatch-current { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-weight: 700; }
.tvs-swatch-current i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #b8c6bf; background: #fff; }
.tvs-swatch-current i.is-jaune { background: #ffe066; }
.tvs-flash--top { margin: 8px 22px 0; }
.tvs-page .tvs-flash { margin: 0 0 8px; padding: 8px 14px; }
.tvs-quick { padding: 8px 14px; }
.tvs-quick .tvs-quick-head { font-size: 12.5px; }
.tvs-quick .tvs-quick-head span { font-size: 26px; }
.tvs-quick .tvs-table td { padding: 2px 8px; font-size: 12px; }
.tvs-quick .tvs-table th { padding: 3px 8px; font-size: 12px; }
.tvs-quick .tvs-center { margin: 6px 0 0; }
.tvs-quick .tvs-btn--pill { padding: 6px 22px; font-size: 14px; }
.tvs-souche { padding: 1px 8px; border-radius: 6px; background: #ffe066; }
.tvs-toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 12px; font-weight: 700; }
.tvs-toolbar .tv-input { flex: 1; margin: 0; min-height: 28px; padding: 4px 8px; color: #98a8a1; font-size: 12px; }
.tvs-csv { display: flex; align-items: center; gap: 18px; }
.tvs-file { display: inline-flex; align-items: center; gap: 8px; color: #44546a; }
.tvs-file-btn { padding: 4px 10px; border: 1px solid #8a98a6; border-radius: 5px; background: #f1f3f5; color: #12312a; }
.tvs-download { position: absolute; z-index: 4; top: 54px; right: 18px; display: flex; flex-direction: column; margin: 0; padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font-size: 13px; }
.tvs-download small { color: #5a6f66; }
/* Assistant de démarrage */
.tvs-onb { padding: 12px 18px; }
.tvs-onb-head { margin: 0 0 8px; }
.tvs-steps { display: grid; grid-template-columns: 22px repeat(4, 1fr) 22px; gap: 8px; align-items: center; }
.tvs-steps .tvs-step:nth-of-type(5) { grid-column: 2; }
.tvs-flag { font-size: 18px; text-align: center; } .tvs-flag:last-child { grid-column: 6; grid-row: 2; }
.tvs-step { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid #dbe7e1; background: #fbfdfc; font-size: 11px; position: relative; }
.tvs-step b { color: #12372b; letter-spacing: .02em; }
.tvs-step-n { position: absolute; top: 4px; left: 7px; color: #7a8a99; font-weight: 800; }
.tvs-step-i { font-size: 22px; line-height: 1.1; }
.tvs-step-go { margin-top: 2px; padding: 2px 12px; border-radius: 999px; background: #1f7a54; color: #fff; font-weight: 700; }
.tvs-step-go.is-off { background: #c9d3ce; }
.tvs-step-ok { margin-top: 2px; color: #1f7a54; font-size: 16px; font-weight: 900; }
.tvs-step.is-done { border-color: #1f7a54; background: #e6f5ee; }
.tvs-onb .tvs-bar { margin: 8px 0 2px; }
/* Méthodes d'import (page Oiseaux) */
.tvs-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.tvs-method { padding: 8px 12px; border: 1px solid #d8dfe8; border-radius: 12px; background: #f7fbff; }
.tvs-method--csv { background: #fffaf3; }
.tvs-method .tvs-hint { margin: 2px 0 0; font-size: 12px; } .tvs-method ol { padding-left: 18px; }
/* Tableur */
.tvs-sheet { display: flex; flex-direction: column; height: 100%; background: #fff; font-size: 11px; }
.tvs-sheet-menu { display: flex; gap: 16px; padding: 7px 12px; background: #1d6f42; color: #fff; font-size: 13px; }
.tvs-sheet-formula { display: flex; gap: 12px; padding: 5px 10px; border-bottom: 1px solid #d0d7de; color: #44546a; font-size: 12px; }
.tvs-sheet-formula span:first-child { width: 50px; border-right: 1px solid #d0d7de; }
.tvs-grid { flex: 1; overflow: hidden; }
.tvs-gr { display: flex; }
.tvs-rh, .tvs-gr--letters .tvs-c { flex: none; background: #f1f3f5; color: #5a6f66; text-align: center; font-weight: 600; }
.tvs-rh { width: 28px; padding: 4px 0; border: 1px solid #e1e5e9; border-top: 0; }
.tvs-c { flex: none; width: 60px; padding: 4px 4px; border-right: 1px solid #e1e5e9; border-bottom: 1px solid #e1e5e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
.tvs-c--A { width: 104px; } .tvs-c--B { width: 72px; } .tvs-c--N { width: 52px; }
.tvs-gr--head .tvs-c { font-weight: 700; background: #fbfcfd; }
.tvs-gr.is-sel .tvs-c, .tvs-gr.is-sel .tvs-rh { background: #d7e7fb; }
.tvs-c.is-typing { box-shadow: inset 0 0 0 2px #1d6f42; }
.tvs-c.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #12312a; animation: tv-caret .8s steps(1) infinite; }
.tvs-sheet-status { display: flex; justify-content: space-between; padding: 5px 12px; border-top: 1px solid #d0d7de; background: #f1f3f5; color: #44546a; font-size: 12px; }
.tvs-sheet-status span:last-child { color: #1f7a54; font-weight: 700; }
.tvs-kbd { position: absolute; z-index: 4; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 10px 22px; border-radius: 12px; background: rgba(13, 27, 42, .88); color: #fff; font: 700 24px/1 ui-monospace, monospace; }
.tvs-dim-soft { height: 100%; opacity: .45; }
.tvs-dialog { width: 470px; padding: 18px 22px; text-align: left; font-size: 14px; }
.tvs-dialog-title { margin: -18px -22px 10px; padding: 9px 22px; border-radius: 18px 18px 0 0; background: #eef1f5; font-weight: 800; }
.tvs-tip { position: absolute; left: 50%; top: 330px; z-index: 3; transform: translateX(-50%); margin: 0; padding: 9px 16px; border-radius: 10px; background: #fff6dc; border: 1px solid #f0d58a; font-size: 13px; white-space: nowrap; }
/* Tableau de bord sans assistant */
.tvs-histo { display: flex; gap: 14px; align-items: flex-end; height: 200px; padding-top: 6px; }
.tvs-histo-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; font-size: 11px; text-align: center; }
.tvs-histo-track { flex: 1; display: flex; align-items: flex-end; width: 34px; border-radius: 6px; background: #eef2f0; }
.tvs-histo-track i { display: block; width: 100%; border-radius: 6px; background: #1f7a54; }

/* Mise en évidence et clic */
.is-spot { position: relative; z-index: 2; border-radius: 10px; box-shadow: 0 0 0 4px #ffd166, 0 0 0 10px rgba(255, 209, 102, .35); animation: tv-spot 1.2s ease-in-out infinite; }
@keyframes tv-spot { 50% { box-shadow: 0 0 0 4px #ffd166, 0 0 0 16px rgba(255, 209, 102, .12); } }
.is-pressed { transform: scale(.95); filter: brightness(.92); }
/* Les éléments flottants gardent leur position pendant la mise en évidence. */
.tvs-modal.is-spot, .tvs-tip.is-spot, .tvs-suggest.is-spot, .tvs-download.is-spot, .tvs-toast.is-spot { position: absolute; }
.tvs-modal.is-pressed, .tvs-tip.is-pressed { transform: translate(-50%, -50%); }

@media (max-width: 900px) {
  .tv { grid-template-columns: 1fr; }
  .tv-chapters { max-height: 14rem; }
  .tv-speed, [data-tv-cc] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-spot, .tv-input.is-typing::after, .tvs-confetti.is-on i, .tv-chapter-flash.is-on { animation: none; }
  .tvs-end { transition: none; }
}
