/* Page d'aide : reprend les jetons et composants de /site.css ; animations sobres, visibles au
   repos, coupées si l'ordinateur demande de réduire les animations. */
.help-hero { padding-block: 64px 48px; border-bottom: 1px solid var(--line); background: radial-gradient(55% 80% at 85% 20%, rgb(224 49 49 / 0.14), transparent 70%), var(--bg); }
.help-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.92rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

kbd { font: 600 0.82em var(--mono); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.mono { font-family: var(--mono); }
.note { margin-top: 20px; color: var(--ink-3); font-size: 0.92rem; max-width: 62ch; }
.checks kbd { font-size: 0.78em; }

/* Démonstration animée du mode concentré : le micro se range en haut, le texte s'écrit. */
.split-help { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split-help .checks { margin-top: 24px; }
.demo-panel { width: min(320px, 100%); justify-self: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.dp-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.85rem; }
.dp-stage { position: relative; height: 150px; border-bottom: 1px solid var(--line); animation: stage 7s ease-in-out infinite; }
.dp-orb { position: absolute; left: 50%; top: 22px; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a9a, #f03e3e 40%, #a51111 80%); box-shadow: 0 0 30px 4px var(--rec-glow); animation: dpOrb 7s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.dp-wave { position: absolute; left: 72px; right: 14px; top: 22px; height: 26px; display: flex; align-items: center; gap: 4px; opacity: 0; animation: dpShow 7s ease-in-out infinite; }
.dp-wave i { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #63e6ff, #f783c8); animation: bar 0.9s ease-in-out infinite alternate; }
.dp-wave i:nth-child(2n) { animation-delay: 0.2s; } .dp-wave i:nth-child(3n) { animation-delay: 0.45s; } .dp-wave i:nth-child(5n) { animation-delay: 0.7s; }
.dp-btn { position: absolute; top: 64px; font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 5px 12px; opacity: 0; animation: dpShow 7s ease-in-out infinite; }
.dp-pause { left: 14px; border: 1px solid var(--line); }
.dp-stop { right: 14px; background: var(--rec); color: #fff; }
.dp-text { padding: 14px; display: grid; gap: 8px; min-height: 120px; }
.dp-text span { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink-2), rgb(167 180 194 / 0.4)); transform-origin: left; animation: type 7s ease-in-out infinite; }
.dp-text span:nth-child(2) { animation-delay: 0.35s; } .dp-text span:nth-child(3) { animation-delay: 0.7s; }
.dp-text .short { width: 60%; animation-delay: 1.05s; }
.dp-orb { display: grid; place-items: center; }
.dp-orb svg { width: 52%; height: 52%; }
@keyframes dpOrb {
  0%, 12% { left: 50%; top: 22px; width: 76px; height: 76px; margin-left: -38px; }
  22%, 78% { left: 14px; top: 14px; width: 44px; height: 44px; margin-left: 0; }
  88%, 100% { left: 50%; top: 22px; width: 76px; height: 76px; margin-left: -38px; }
}
@keyframes dpShow { 0%, 18% { opacity: 0; } 26%, 76% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes stage { 0%, 15% { height: 150px; } 24%, 78% { height: 100px; } 88%, 100% { height: 150px; } }
@keyframes type { 0%, 25% { transform: scaleX(0.04); } 55%, 100% { transform: scaleX(1); } }
@keyframes bar { from { transform: scaleY(1); } to { transform: scaleY(4.5); } }

/* Clavier animé : les touches de Dictéli s'allument tour à tour. */
.keyboard { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.key { min-width: 46px; text-align: center; font: 600 0.9rem var(--mono); color: var(--ink-3); background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 4px; border-radius: 8px; padding: 9px 8px; }
.key.hot { color: var(--ink); border-color: rgb(224 49 49 / 0.55); }
.key.k1 { color: var(--accent); border-color: rgb(99 199 214 / 0.55); }
.gap { width: 10px; }
.key.k1, .key.k2, .key.k3, .key.k4, .key.k8 { animation: press 6s ease-in-out infinite; }
.key.k2 { animation-delay: 0s; } .key.k3 { animation-delay: 1.2s; } .key.k4 { animation-delay: 2.4s; } .key.k8 { animation-delay: 3.6s; } .key.k1 { animation-delay: 4.8s; }
@keyframes press {
  0%, 14%, 100% { transform: translateY(0); box-shadow: none; }
  4% { transform: translateY(3px); border-bottom-width: 1px; box-shadow: 0 0 22px 2px var(--rec-glow); background: rgb(224 49 49 / 0.25); }
}
table.keys { width: 100%; border-collapse: collapse; }
table.keys th { text-align: left; font: 400 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.keys td { padding: 12px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.cards .card { display: grid; gap: 8px; align-content: start; }
.cards .card p { color: var(--ink-2); }
.cards a { color: var(--accent); }

/* Questions fréquentes */
.faq details { border-top: 1px solid var(--line); padding-block: 14px; max-width: 760px; }
.faq details:first-of-type { margin-top: 28px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 10px; }

@media (max-width: 900px) {
  .split-help { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-stage, .dp-orb, .dp-wave, .dp-btn, .dp-text span, .dp-wave i, .key { animation: none !important; }
  .dp-wave, .dp-btn { opacity: 1; }
  .dp-orb { left: 14px; top: 14px; width: 44px; height: 44px; margin-left: 0; }
  .dp-stage { height: 100px; }
}
