/* Vmax — centre d'aide (aide.html) et ses mini-animations. */
.h-main { padding: 40px 0 80px; min-height: 70vh; }
.h-hero { text-align: center; max-width: 720px; margin: 20px auto 40px; }
.h-hero h1 { margin: 10px 0 22px; }
.h-search { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 20px; border-radius: 999px; }
.h-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 16px Inter, sans-serif; padding: 12px 0; outline: none; }
.h-popular { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); align-items: center; }
.h-popular a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); color: var(--text-dim); }
.h-popular a:hover { color: var(--text); border-color: var(--edge-strong); }
.h-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.h-cat { padding: 22px; display: grid; gap: 6px; align-content: start; transition: transform .35s var(--ease), border-color .3s; }
.h-cat:hover { transform: translateY(-5px); border-color: var(--edge-strong); }
.h-cat .ic, .h-cathead .ic { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 14px; background: linear-gradient(135deg, rgba(162,107,255,.45), rgba(255,122,217,.28)); border: 1px solid var(--edge-strong); margin-bottom: 6px; }
.h-cat b { font-size: 17px; }
.h-cat small { color: var(--text-dim); font-size: 14px; }
.h-cat em { font-style: normal; color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 6px; }
@media (max-width: 960px) { .h-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .h-cats { grid-template-columns: 1fr; } }

.h-results { max-width: 760px; margin: 0 auto 36px; display: grid; gap: 10px; }
.h-results h2 { font-size: 18px; margin: 0 0 4px; }
.h-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.h-row > span { font-size: 22px; }
.h-row div { flex: 1; min-width: 0; }
.h-row b { display: block; }
.h-row small { color: var(--muted); font-size: 13.5px; }
.h-row em { font-style: normal; color: var(--accent); }
.h-row:hover { border-color: var(--edge-strong); }

.h-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.h-crumbs a { color: var(--text-dim); } .h-crumbs a:hover { color: var(--text); }
.h-cathead { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.h-cathead h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.h-cathead p { margin: 4px 0 0; }
.h-list { display: grid; gap: 10px; max-width: 820px; }

.h-article { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.h-toc { position: sticky; top: 100px; padding: 16px; display: grid; gap: 2px; }
.h-toc p { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.h-toc a { padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--text-dim); }
.h-toc a.on, .h-toc a:hover { background: rgba(162,107,255,.18); color: var(--text); }
.h-article h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; }
.h-meta { margin: 0 0 22px; }
.h-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.h-steps li { padding: 22px; }
.h-step-head { display: flex; gap: 12px; align-items: center; }
.h-step-head h2 { font-size: 20px; margin: 0; }
.h-step-head .num { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--pink)); box-shadow: 0 6px 18px rgba(124,77,255,.45); }
.h-steps p { color: var(--text-dim); margin: 12px 0 0; }
.h-steps p b { color: var(--text); }
.h-end { margin-top: 18px; padding: 22px; display: grid; gap: 14px; justify-items: start; }
.h-end p { margin: 0; color: var(--text-dim); }
@media (max-width: 860px) { .h-article { grid-template-columns: 1fr; } .h-toc { position: static; } }

/* ---------- Mini-animations ---------- */
.h-demo { position: relative; margin-top: 16px; padding: 22px; border-radius: 18px; background: rgba(8, 3, 24, .45); border: 1px solid var(--edge); overflow: hidden; min-height: 120px; display: grid; place-items: center; }
.h-demo-tag { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h-demo p { margin: 0; color: var(--text); }
@keyframes pop { 0%, 8% { opacity: 0; transform: translateY(8px) scale(.96); } 16%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.d-plans { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.d-plans span { padding: 10px 16px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(255,255,255,.05); font-weight: 600; animation: plan 6s infinite; animation-delay: calc(var(--i) * 2s); }
.d-plans em { flex-basis: 100%; text-align: center; font-style: normal; color: var(--ok); font-weight: 700; font-size: 14px; }
@keyframes plan { 0%, 30% { background: linear-gradient(135deg, rgba(162,107,255,.7), rgba(124,77,255,.6)); border-color: rgba(255,255,255,.4); transform: translateY(-4px); } 34%, 100% { background: rgba(255,255,255,.05); transform: none; } }

.d-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.d-link .d-n { display: grid; justify-items: center; font-size: 26px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); }
.d-link .d-n small { font-size: 11px; color: var(--muted); }
.d-link i { width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--pink)); transform-origin: left; animation: grow 4s infinite; }
.d-link i:nth-of-type(2) { animation-delay: .6s; }
.d-link b { flex-basis: 100%; text-align: center; color: var(--ok); animation: pop 4s infinite; animation-delay: 1.4s; }
@keyframes grow { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }

.d-pastille { display: flex; align-items: center; gap: 18px; }
.d-pastille .d-orb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 0 30px rgba(162,107,255,.6); animation: press 4s infinite; }
.d-pastille .d-menu { min-width: 210px; white-space: nowrap; padding: 12px 14px; border-radius: 16px; background: rgba(60,44,120,.55); border: 1px solid var(--edge-strong); display: grid; gap: 6px; font-size: 13px; animation: pop 4s infinite; animation-delay: .5s; }
.d-pastille .d-sw { display: flex; gap: 10px; align-items: center; }
.d-pastille .d-sw i, .d-phone .d-row i, .d-stop p i { width: 30px; height: 18px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), var(--pink)); position: relative; display: inline-block; }
.d-pastille .d-sw i::after, .d-phone .d-row i::after, .d-stop p i::after { content: ''; position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
@keyframes press { 0%, 8%, 20%, 100% { transform: none; } 12% { transform: scale(.9); } }

.d-phone .screen { width: 210px; padding: 16px 14px; border-radius: 28px; border: 2px solid rgba(255,255,255,.18); background: rgba(20,12,48,.8); display: grid; gap: 8px; font-size: 13px; }
.d-phone .h { font-weight: 800; font-size: 15px; }
.d-phone .d-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.d-phone .d-row:nth-of-type(3) i { animation: flip 5s infinite; }
.d-phone .d-row:nth-of-type(3) i::after { animation: knob 5s infinite; }
.d-phone .pending { font-size: 11px; color: #ffd58a; animation: pop 5s infinite; animation-delay: 1.2s; }
@keyframes flip { 0%, 20% { background: linear-gradient(135deg, var(--accent), var(--pink)); } 24%, 100% { background: rgba(255,255,255,.18); } }
@keyframes knob { 0%, 20% { left: 14px; } 24%, 100% { left: 2px; } }

.d-like { display: grid; gap: 12px; width: min(320px, 100%); }
.d-like .card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); position: relative; }
.d-like .ph { font-size: 26px; }
.d-like small { display: block; color: var(--muted); }
.d-like b { margin-left: auto; color: #ff7ad9; font-size: 20px; animation: heart 4s infinite; }
.d-like .bubble { justify-self: end; max-width: 90%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 13.5px; background: linear-gradient(135deg, rgba(162,107,255,.85), rgba(124,77,255,.85)); animation: pop 4s infinite; animation-delay: 1s; }
@keyframes heart { 0%, 10% { transform: scale(0); } 18% { transform: scale(1.4); } 26%, 100% { transform: scale(1); } }

.d-cap, .d-quota { width: min(360px, 100%); display: grid; gap: 8px; font-size: 14px; }
.d-cap .bar, .d-quota .bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.d-cap .bar i, .d-quota .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--pink)); animation: fill 5s infinite; }
.d-cap .lbl { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.d-cap em, .d-quota em { font-style: normal; color: #ffd58a; animation: pop 5s infinite; animation-delay: 2.6s; }
@keyframes fill { 0% { width: 0; } 55%, 100% { width: 100%; } }
.d-quota .d-n::after { content: '50'; animation: count 5s infinite; }
@keyframes count { 0% { content: '0'; } 11% { content: '10'; } 22% { content: '20'; } 33% { content: '30'; } 44% { content: '40'; } 55%, 100% { content: '50'; } }

.d-rep { display: grid; gap: 8px; width: min(300px, 100%); }
.d-rep p { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 14px; }
.d-rep p.up { animation: rise 5s infinite; }
.d-rep p:not(.up) { animation: down 5s infinite; }
@keyframes rise { 0%, 20% { transform: none; box-shadow: none; } 45%, 85% { transform: translateY(-138px); background: rgba(162,107,255,.45); box-shadow: 0 0 24px rgba(162,107,255,.6); } 100% { transform: none; } }
@keyframes down { 0%, 20% { transform: none; } 45%, 85% { transform: translateY(46px); } 100% { transform: none; } }

.d-chat { display: grid; gap: 8px; width: min(360px, 100%); }
.d-chat p { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; animation: chatpop 9s infinite; animation-delay: calc(var(--i) * 1.3s); opacity: 0; }
.d-chat .b { justify-self: start; background: rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.d-chat .v { justify-self: end; background: linear-gradient(135deg, rgba(162,107,255,.85), rgba(124,77,255,.85)); border-bottom-right-radius: 4px; }
.d-chat .s { justify-self: center; max-width: 100%; background: rgba(126,226,184,.12); color: var(--ok); font-size: 12.5px; }
@keyframes chatpop { 0% { opacity: 0; transform: translateY(8px); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

.d-tiers { display: grid; gap: 12px; width: min(420px, 100%); font-size: 13.5px; }
.d-tiers div { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; }
.d-tiers i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--pink)); width: var(--w); animation: tier 5s infinite; animation-delay: calc(var(--i) * .4s); transform-origin: left; }
.d-tiers b { color: var(--ok); }
@keyframes tier { 0% { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }

.d-steps { display: flex; gap: 14px; align-items: end; }
.d-steps span { display: grid; justify-items: center; gap: 4px; padding: 14px 16px; border-radius: 16px; font-weight: 800; font-size: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); animation: stepon 6s infinite; animation-delay: calc(var(--i) * 1.2s); }
.d-steps small { font-size: 11px; color: var(--muted); font-weight: 500; }
@keyframes stepon { 0%, 5% { opacity: .35; transform: none; } 12%, 70% { opacity: 1; transform: translateY(-6px); border-color: rgba(162,107,255,.8); } 85%, 100% { opacity: .35; transform: none; } }

.d-day { display: grid; gap: 10px; width: min(340px, 100%); border-left: 2px solid rgba(162,107,255,.6); padding-left: 16px; }
.d-day p { font-size: 14px; animation: chatpop 8s infinite; animation-delay: calc(var(--i) * 1.1s); opacity: 0; }
.d-day time { color: var(--muted); font-weight: 700; margin-right: 10px; font-size: 12.5px; }

.d-stop { display: grid; gap: 8px; width: min(280px, 100%); }
.d-stop p { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 14px; }
.d-stop p i { animation: flip 5s infinite; animation-delay: calc(1.6s + var(--i) * .15s); }
.d-stop p i::after { animation: knob 5s infinite; animation-delay: calc(1.6s + var(--i) * .15s); }
.d-stop button { margin-top: 4px; padding: 10px; border-radius: 999px; border: 1px solid rgba(255,138,154,.5); background: rgba(255,138,154,.15); color: #ffc2cb; font: 600 14px Inter, sans-serif; animation: press 5s infinite; animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .h-demo * { animation: none !important; opacity: 1 !important; }
}

/* Captures du tableau de bord (scripts/help-shots) */
.h-shot { margin: 16px 0 4px; }
.h-shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 40px rgba(5, 0, 25, 0.45); transition: transform 0.2s ease, border-color 0.2s ease; }
.h-shot a:hover { transform: translateY(-2px); border-color: rgba(255, 79, 163, 0.6); }
.h-shot img { display: block; width: 100%; height: auto; }
.h-shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
