/* Collecte de voix — styles propres à la page /participer-voix/ (chargés uniquement sur cette page).
   Réutilise les variables --ds-* du thème ; aucune couleur nouvelle. */

.voice-page h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.12; margin: 0 0 0.5em; }
.voice-hero { padding-bottom: 24px; }
.voice-counter {
  display: inline-flex; align-items: baseline; gap: 10px; margin: 8px 0 20px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(79, 163, 232, 0.10); border: 1px solid rgba(138, 201, 245, 0.28);
  color: var(--ds-ink-dim); font-size: 0.9rem;
}
.voice-counter[hidden] { display: none; }
.voice-counter strong { color: var(--ds-securite-light); font-size: 1.35rem; }

.voice-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .voice-cards { grid-template-columns: repeat(3, 1fr); } }
.voice-card {
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border-radius: var(--radius-card); padding: 24px;
  border: 1px solid rgba(244, 240, 250, 0.06);
}
.voice-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.voice-card p { margin: 0; font-size: 0.92rem; color: var(--ds-ink-dim); }

.voice-steps { padding-left: 1.2em; display: grid; gap: 12px; color: var(--ds-ink-dim); }
.voice-steps strong { color: var(--ds-ink); }

.voice-app { margin-top: 8px; }
.voice-panel {
  background: linear-gradient(160deg, var(--ds-card-top), var(--ds-card-bottom));
  border-radius: var(--radius-card); padding: clamp(20px, 5vw, 32px);
  border: 1px solid rgba(244, 240, 250, 0.06);
}
.voice-panel[hidden], .voice-app [hidden] { display: none !important; }
.voice-panel h2 { margin-top: 0; font-size: 1.25rem; }
.voice-status { color: var(--ds-ink-dim); font-size: 0.92rem; }

.voice-grid2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .voice-grid2 { grid-template-columns: 1fr 1fr; } }
.voice-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.voice-consents { border: 1px solid rgba(244, 240, 250, 0.10); border-radius: 14px; padding: 14px 16px; margin: 0 0 16px; }
.voice-consents legend { padding: 0 8px; font-size: 0.85rem; color: var(--ds-ink-dim); }
.voice-consents .form-check { margin-bottom: 12px; align-items: flex-start; }
.voice-consents .form-check:last-child { margin-bottom: 0; }

.voice-dev-banner {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; font-size: 0.85rem; font-weight: 600;
  background: rgba(224, 149, 90, 0.14); border: 1px solid var(--ds-alerte); color: var(--ds-alerte);
}
.voice-inapp {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; font-size: 0.85rem;
  background: rgba(232, 196, 104, 0.10); border: 1px solid rgba(232, 196, 104, 0.35); color: var(--ds-aide);
}

/* Progression : sept pastilles cliquables (on peut enregistrer dans l'ordre souhaité) */
.voice-progress { display: flex; gap: 8px; justify-content: center; margin: 18px 0 10px; }
.voice-progress button {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(244, 240, 250, 0.22);
  background: rgba(244, 240, 250, 0.06); color: var(--ds-ink-dim); font: 700 0.9rem inherit; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.voice-progress button.done { background: var(--ds-ok); border-color: var(--ds-ok); color: #100C18; }
.voice-progress button.current { border-color: var(--ds-veille); transform: scale(1.12); }
.voice-progress button:focus-visible { outline: 3px solid var(--ds-securite-light); outline-offset: 3px; }
.voice-count { text-align: center; color: var(--ds-ink-faint); font-size: 0.82rem; margin: 0 0 14px; }
.voice-intro { text-align: center; font-weight: 600; margin: 0 0 10px; }
.voice-tips { text-align: center; margin: 0 0 6px; }

.voice-prompt { text-align: center; margin-bottom: 18px; }
.voice-hint { display: block; margin-top: 8px; color: var(--ds-ink); font-size: clamp(1.15rem, 5vw, 1.5rem); font-weight: 700; line-height: 1.35; }
.voice-finish { text-align: center; margin-top: 26px; }
.voice-finish .btn[disabled] { opacity: 0.4; cursor: not-allowed; }.voice-mic { text-align: center; }
.voice-mic p { color: var(--ds-ink-dim); font-size: 0.92rem; }

.voice-recorder { text-align: center; }
.voice-meter { height: 8px; border-radius: 99px; background: rgba(244, 240, 250, 0.10); overflow: hidden; max-width: 320px; margin: 0 auto 22px; }
.voice-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ds-veille), var(--ds-contacts)); transition: width 0.06s linear; }
.voice-recbtn {
  width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--ds-ink); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.voice-recbtn span { width: 56px; height: 56px; border-radius: 50%; background: var(--ds-signal); transition: border-radius 0.2s, width 0.2s, height 0.2s; }
.voice-recbtn.recording span { border-radius: 10px; width: 34px; height: 34px; }
.voice-recbtn:focus-visible { outline: 3px solid var(--ds-securite-light); outline-offset: 4px; }
.voice-recbtn[disabled] { opacity: 0.4; cursor: not-allowed; }

.voice-review { margin-top: 18px; }
.voice-review audio { width: 100%; max-width: 420px; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.voice-actions .btn { min-width: 160px; justify-content: center; }
.voice-app .form-error:empty { display: none; }
.voice-app .form-error { display: block; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .voice-progress button, .voice-recbtn span, .voice-meter span { transition: none; }
}
