/* ============================================
   surah.css – Version épurée, élégante et structurée
   Design simple, cartes claires, interactions douces
============================================ */

/* ----- POLICES & VARIABLES ----- */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #028174;
  --primary-light: #04af9e;
  --primary-dark: #064663;
  --bg-light: #fafbfc;
  --text-dark: #1e2e2e;
  --text-soft: #5a6b6b;
  --white: #ffffff;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 32px rgba(2, 129, 116, 0.08);
  --radius: 24px;
}

/* ----- BASE PAGE ----- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

/* ----- EN-TÊTE DE LA SOURATE ----- */
.surah-header {
  text-align: center;
  margin-bottom: 50px;
}

.surah-badge {
  display: inline-block;
  background: rgba(2, 129, 116, 0.08);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(2, 129, 116, 0.2);
  margin-bottom: 16px;
}

.surah-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-family: 'Amiri', serif;
  line-height: 1.2;
}

.surah-subhead {
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ----- CARTE AUDIO ----- */
.audio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(2, 129, 116, 0.08);
  transition: 0.3s;
}

.audio-card:hover {
  box-shadow: var(--shadow-hover);
}

.audio-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.audio-title i {
  font-size: 2rem;
  color: var(--primary);
  background: rgba(2, 129, 116, 0.06);
  padding: 14px;
  border-radius: 18px;
}

.audio-title h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
}

.audio-player audio {
  width: 100%;
  border-radius: 40px;
  background: var(--bg-light);
}

/* ----- CARTES THÉMATIQUES ----- */
.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--primary);
  transition: 0.25s;
}

.theme-card:hover {
  box-shadow: var(--shadow-hover);
}

.theme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.theme-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-title i {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(2, 129, 116, 0.06);
  padding: 12px;
  border-radius: 16px;
}

.theme-title h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn i {
  transition: transform 0.3s;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

.theme-content {
  margin-top: 24px;
  line-height: 1.7;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.theme-content p {
  margin-bottom: 16px;
}

.theme-content ul {
  list-style: none;
  padding: 0;
}

.theme-content li {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.theme-content li i {
  color: var(--primary);
  font-size: 1.2rem;
  min-width: 24px;
  margin-top: 3px;
}

.theme-content li strong {
  color: var(--primary-dark);
}

/* ----- TAGS (BIENFAITS) ----- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 8px;
}

.tag {
  background: rgba(2, 129, 116, 0.06);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(2, 129, 116, 0.2);
  transition: 0.2s;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

/* ----- VERSET PHARE ----- */
.verse-highlight {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 40px 0 32px;
  text-align: center;
  box-shadow: 0 20px 32px rgba(2, 129, 116, 0.2);
}

.verse-arabic {
  font-size: 2.2rem;
  font-family: 'Amiri', serif;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.verse-french {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.verse-ref {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* ----- BOUTON RETOUR ----- */
.back-container {
  text-align: center;
  margin-top: 60px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: 0.3s;
  font-size: 1rem;
}

.back-btn:hover {
  background: var(--primary);
  color: white;
  gap: 16px;
  border-color: var(--primary);
}

.back-btn i {
  font-size: 1.1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .page {
    padding: 40px 20px;
  }
  .surah-header h1 {
    font-size: 2.2rem;
  }
  .surah-subhead {
    font-size: 1rem;
  }
  .audio-card {
    padding: 24px;
  }
  .audio-title h2 {
    font-size: 1.4rem;
  }
  .theme-card {
    padding: 24px;
  }
  .theme-title h3 {
    font-size: 1.3rem;
  }
  .verse-arabic {
    font-size: 1.8rem;
  }
  .verse-french {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .surah-header h1 {
    font-size: 1.8rem;
  }
  .audio-title {
    flex-direction: column;
    text-align: center;
  }
  .theme-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .toggle-btn {
    align-self: flex-end;
  }
}