/* ── Guide de prière — barre de progression ── */
.guide-progress { margin-bottom: 1.25rem; }

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Barre de progression automatique ── */
.auto-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.auto-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 100%;
}

/* ── Vidéo de prière ── */
.prayer-video-container {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.prayer-video-iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ── Contenu de l'étape ── */
.guide-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.step-position       { text-align: center; font-size: 2.5rem; }
.step-title          { font-size: 1.25rem; font-weight: 600; text-align: center; color: var(--primary-light); }
.step-subtitle       { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: -0.5rem; }

.step-arabic {
  font-family: var(--arabic);
  font-size: 1.8rem;
  text-align: center;
  color: var(--gold);
  line-height: 2.1;
  direction: rtl;
}
.step-transliteration {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.6;
}
.step-translation {
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
  background: var(--bg-card2);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.6;
}
.step-instruction {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg);
  padding: 0.65rem;
  border-radius: 8px;
  line-height: 1.5;
}

/* ── Badge récitation ── */
.recitation-badge {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  align-self: center;
  margin: 0 auto;
  letter-spacing: 0.03em;
}

/* ── Boutons de navigation ── */
.guide-nav { display: flex; gap: 0.9rem; }
.btn-nav {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--ui);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}
.btn-nav:hover               { border-color: var(--primary-light); color: var(--primary-light); }
.btn-nav-primary             { background: var(--primary); border-color: var(--primary); color: white; }
.btn-nav-primary:hover       { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-nav:disabled            { opacity: 0.3; cursor: not-allowed; }

.btn-auto-pause {
  background: var(--bg-card2);
  border-color: var(--gold);
  color: var(--gold);
  flex: 0.7;
}
.btn-auto-pause:hover { background: var(--bg); border-color: var(--gold); color: var(--gold); }

/* ── Écran de fin de prière ── */
.complete-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  gap: 1.1rem;
}
.complete-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.5rem;
}
.complete-content h2    { font-size: 1.8rem; font-weight: 700; }
.complete-content p     { color: var(--text-muted); }
.complete-arabic        { font-family: var(--arabic); font-size: 2.2rem; color: var(--gold); }

/* ── Responsive paysage ── */
@media (max-height: 500px) and (orientation: landscape) {
  .guide-content    { min-height: 200px; padding: 1rem; }
  .complete-content { min-height: 40vh; }
  .step-arabic      { font-size: 1.4rem; }
}
