/*
 * guest-result.css
 *
 * Écran de résultat de l'outil sans compte (FR, EN, DE). CSS écrit à la main,
 * sans classes Tailwind : rien à recompiler dans styles.css. Le lien est
 * cache-busté au build (scripts/inject-env.mjs, ?v=<hash>).
 *
 * Préfixe gr- pour ne rien heurter dans les styles propres à chaque page.
 */

#stage-result { scroll-margin-top: 84px; }

/* ── En-tête du résultat ─────────────────────────────────────────── */
.gr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gr-head-main { min-width: 0; }
.gr-head-title { display: flex; align-items: center; gap: 9px; font-size: 18px; line-height: 26px; font-weight: 700; color: #E6EEF9; }
.gr-head-dot { width: 9px; height: 9px; border-radius: 999px; background: #34D399; flex-shrink: 0; }
.gr-head-meta { font-size: 13px; line-height: 20px; color: #A3B0C7; overflow-wrap: anywhere; }
.gr-new {
  min-height: 44px; padding: 0 16px; flex-shrink: 0;
  border: 1px solid #374151; border-radius: 10px; background: transparent;
  color: #E6EEF9; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.gr-new:hover { background: #1C2433; }
@media (min-width: 768px) { .gr-head-title { font-size: 22px; line-height: 30px; } .gr-head-meta { font-size: 14px; } }

/* ── Disposition : transcription puis compte rendu (ordinateur),
      bloc compact AVANT la transcription (mobile) ───────────────── */
.gr-layout { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 767px) { .gr-layout .gr-cr { order: -1; } }
@media (min-width: 768px) { .gr-layout { gap: 18px; } }

/* ── Carte transcription ─────────────────────────────────────────── */
.gr-transcript { border-radius: 16px; background: #141B26; border: 1px solid #2A3444; overflow: hidden; }
.gr-transcript-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid #1F2937; }
.gr-transcript-title { font-size: 14px; font-weight: 600; color: #E6EEF9; }
.gr-tools { display: flex; gap: 6px; }
.gr-tool {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #374151; border-radius: 10px; background: transparent;
  color: #E6EEF9; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gr-tool:hover { background: #1C2433; border-color: #4B5563; }
.gr-tool svg { flex-shrink: 0; }
/* Mobile : icône seule, le libellé reste lu par les lecteurs d'écran. */
@media (max-width: 479px) {
  .gr-tool { padding: 0; width: 44px; }
  .gr-tool-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
.gr-rule { margin: 0; padding: 8px 14px; font-size: 12.5px; line-height: 18px; color: #A3B0C7; background: #111827; border-bottom: 1px solid #1F2937; }
.gr-transcript .transcript-body { border: 0; border-radius: 0; background: transparent; max-height: 420px; padding: 14px; }
@media (min-width: 768px) {
  .gr-transcript-head { padding: 10px 14px 10px 20px; }
  .gr-rule { padding: 9px 20px; font-size: 13px; }
  .gr-transcript .transcript-body { padding: 18px 20px; }
}
.gr-foot { margin: 0; padding: 10px 14px 12px; font-size: 12.5px; line-height: 18px; color: #8E9BB2; border-top: 1px solid #1F2937; }
@media (min-width: 768px) { .gr-foot { padding: 10px 20px 14px; font-size: 13px; } }

/* ── Bloc compte rendu ───────────────────────────────────────────── */
.gr-cr { border-radius: 16px; background: #141B26; border: 1px solid #4B2E6E; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) {
  .gr-cr { padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; border-radius: 18px; }
}
.gr-cr-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 768px) { .gr-cr-info { gap: 14px; } }
.gr-cr-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #C9A3EE; }
.gr-cr-status svg { flex-shrink: 0; }
@media (min-width: 768px) { .gr-cr-status { font-size: 13px; } }

.gr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gr-chips:empty { display: none; }
.gr-chip { min-height: 30px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px; background: #1F2937; color: #E6EEF9; font-size: 13px; }
.gr-chip b { margin-right: 4px; font-weight: 700; }
@media (min-width: 768px) { .gr-chip { min-height: 34px; padding: 0 12px; font-size: 14px; } }

/* Aperçu flouté : formes décoratives seulement, jamais de texte. */
.gr-cr-preview { display: none; flex-direction: column; gap: 8px; }
.gr-cr-preview span { display: block; height: 12px; border-radius: 6px; background: #1F2937; }
.gr-cr-preview span:nth-child(1) { width: 92%; }
.gr-cr-preview span:nth-child(2) { width: 78%; }
.gr-cr-preview span:nth-child(3) { width: 85%; }
.gr-cr-caption { display: none; margin: 0; font-size: 13px; line-height: 19px; color: #A3B0C7; }
@media (min-width: 768px) { .gr-cr-preview { display: flex; } .gr-cr-caption { display: block; } }

/* État « en préparation » : progression discrète. */
.gr-cr[data-state="processing"] .gr-cr-preview span {
  background: linear-gradient(90deg, #1F2937 0%, #2B3546 50%, #1F2937 100%);
  background-size: 200% 100%;
  animation: grShimmer 1.6s ease-in-out infinite;
}
.gr-spinner { width: 13px; height: 13px; border-radius: 999px; border: 2px solid #4B2E6E; border-top-color: #C9A3EE; animation: grSpin 0.9s linear infinite; flex-shrink: 0; }
@keyframes grShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes grSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gr-cr[data-state="processing"] .gr-cr-preview span, .gr-spinner { animation: none; }
}

.gr-cr-signup { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .gr-cr-signup { gap: 12px; padding: 20px; border-radius: 14px; background: #111827; border: 1px solid #1F2937; } }
.gr-cr-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; color: #FFFFFF; }
.gr-cr-sub { display: none; margin: 0; font-size: 14px; line-height: 21px; color: #A3B0C7; }
@media (min-width: 768px) { .gr-cr-title { font-size: 20px; line-height: 28px; } .gr-cr-sub { display: block; } }
.gr-auth {
  min-height: 48px; width: 100%; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.gr-auth[disabled] { opacity: 0.7; cursor: progress; }
.gr-auth-google { background: #FFFFFF; color: #111827; }
.gr-auth-google:hover { background: #E5E7EB; }
.gr-auth-email { background: #8B46C1; color: #FFFFFF; }
.gr-auth-email:hover { background: #7B1FA2; }
.gr-cr-note { margin: 0; font-size: 12px; line-height: 18px; color: #8E9BB2; text-align: center; }

/* Focus clavier visible sur tous les contrôles de l'écran de résultat. */
.gr-new:focus-visible, .gr-tool:focus-visible, .gr-auth:focus-visible, .gr-transcript .transcript-body:focus-visible {
  outline: 2px solid #C9A3EE; outline-offset: 2px;
}

/* Ligne d'information avant l'envoi. */
.gr-privacy { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: #A3B0C7; text-align: center; }
