/* ==========================
   RESET GLOBAL
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   BODY GLOBAL
========================== */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  background: #f5f7fa;
  color: #333;
}

/* ==========================
   HEADER SIMPLE & UNIFORME
========================== */
header {
  background: linear-gradient(90deg, #028174, #04af9e);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
}

/* Style du logo / nom du site : que ce soit un lien ou un div */
.brand,
header a.brand {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Si on utilise h1 à l'intérieur, on le stylise aussi */
.brand h1,
.brand .site-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: white;
}

/* ==========================
   NAVIGATION DESKTOP
========================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  background: white;
  color: #028174;
}

/* ==========================
   MENU BURGER MOBILE
========================== */
#menu-toggle {
  display: none;
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}

.burger-btn span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

/* ==========================
   HERO PAGE ACCUEIL
========================== */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #064663, #028174);
  color: white;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero .hadith-quote {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero .hadith-source {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero .btn {
  display: inline-block;
  background: white;
  color: #028174;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 2px solid transparent;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #028174;
  color: white;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hero .btn i {
  margin-right: 8px;
}

/* ==========================
   SECTIONS GÉNÉRALES
========================== */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #028174;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #028174, #04af9e);
  border-radius: 3px;
}

/* ==========================
   CARDS (accueil, guide)
========================== */
.cards-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 30px 20px;
  max-width: 280px;
  text-align: center;
  transition: 0.3s;
  flex: 1 1 250px;
  border: 1px solid rgba(2,129,116,0.05);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(2,129,116,0.1);
}

.card i {
  font-size: 2.5rem;
  color: #028174;
  margin-bottom: 20px;
  background: rgba(2,129,116,0.08);
  padding: 16px;
  border-radius: 18px;
}

.card h3 {
  color: #028174;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card .btn-card {
  display: inline-block;
  color: #028174;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  padding-bottom: 3px;
}

.card .btn-card:hover {
  border-bottom-color: #028174;
}

/* ==========================
   PAGE CORAN WOLOF - AUDIOS (STYLE ORIGINAL)
========================== */
.audio-grid {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.audio-item {
  position: relative;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  display: flex;
  align-items: flex-end;
  transition: 0.3s;
}

.audio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.audio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.2));
  z-index: 1;
}

.audio-content {
  position: relative;
  padding: 20px;
  color: white;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.audio-content h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-family: 'Traditional Arabic', 'Amiri', serif;
}

.audio-content p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.audio-content audio {
  width: 100%;
  margin-bottom: 15px;
}

.explication-btn {
  display: inline-block;
  margin-top: 5px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  color: white;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: 0.3s;
}

.explication-btn:hover {
  background: #028174;
  color: white;
  border-color: white;
}

/* ==========================
   FOOTER SIMPLE & UNIFORME
========================== */
footer {
  background: linear-gradient(90deg, #028174, #04af9e);
  color: white;
  text-align: center;
  padding: 40px 20px 30px;
  margin-top: 60px;
}

.footer-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  transition: 0.3s;
}

.social-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.social-links img {
  width: 26px;
  height: 26px;
}

.copyright {
  margin-top: 20px;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ==========================
   RESPONSIVE MOBILE
========================== */
@media (max-width: 768px) {
  .burger-btn {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .brand,
  header a.brand {
    order: 1;
  }

  header {
    flex-wrap: wrap;
    align-items: center;
  }

  nav {
    order: 3;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    display: none;
    background: linear-gradient(90deg, #028174, #04af9e);
    margin-top: 15px;
    padding: 10px 0;
    max-height: 80vh;
    overflow-y: auto;
    width: 100%;
    border-radius: 12px;
  }

  #menu-toggle:checked ~ nav ul {
    display: flex;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav a {
    display: block;
    padding: 14px;
    text-align: center;
  }

  .hero h2 {
    font-size: 2.2rem;
  }
  .hero .hadith-quote {
    font-size: 1.1rem;
    padding: 14px 20px;
  }

  .section {
    padding: 40px 15px;
  }
  .section-title {
    font-size: 1.8rem;
  }

  .audio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .audio-item {
    height: 280px;
  }

  footer {
    padding: 30px 15px 20px;
  }
  .footer-content p {
    font-size: 1rem;
  }
  .social-links a {
    width: 44px;
    height: 44px;
  }
  .social-links img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero .btn {
    padding: 10px 24px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .audio-content h3 {
    font-size: 1.2rem;
  }
}
/* ==========================
   PAGE HADITH – Design premium cohérent
   À ajouter dans style.css
========================== */

/* Conteneur principal de la page */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1e2e2e;
}

/* En‑tête de la page (surah-header) */
.surah-header {
  text-align: center;
  margin-bottom: 50px;
}

.surah-badge {
  display: inline-block;
  background: rgba(2, 129, 116, 0.08);
  color: #028174;
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(2, 129, 116, 0.2);
  margin-bottom: 20px;
}

.surah-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #064663;
  margin-bottom: 15px;
  font-family: 'Amiri', serif;
  line-height: 1.2;
}

.surah-subhead {
  font-size: 1.2rem;
  color: #5a6b6b;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* Grille des hadiths */
.hadith-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Carte hadith */
.hadith-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(2,129,116,0.08);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hadith-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(2,129,116,0.12);
  border-color: rgba(2,129,116,0.2);
}

/* Badge thématique à l'intérieur de la carte */
.hadith-card .surah-badge {
  margin-bottom: 15px;
  background: rgba(2,129,116,0.06);
  color: #028174;
  padding: 6px 16px;
  font-size: 0.8rem;
  align-self: flex-start;
}

/* Texte arabe */
.hadith-arabic {
  font-size: 1.6rem;
  text-align: right;
  margin: 15px 0 20px;
  color: #028174;
  line-height: 1.8;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-weight: 700;
  direction: rtl;
}

/* Traduction */
.hadith-translation {
  font-size: 1.05rem;
  margin: 10px 0 20px;
  color: #1e2e2e;
  line-height: 1.7;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(2,129,116,0.15);
  flex: 1;
}

/* Source du hadith */
.hadith-source {
  color: #5a6b6b;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
}

.hadith-source i {
  color: #028174;
  font-size: 0.9rem;
}

/* Bouton retour (back-btn) */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #028174;
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #028174;
  transition: 0.3s;
  font-size: 1rem;
  margin-top: 40px;
}

.back-btn:hover {
  background: #028174;
  color: white;
  gap: 16px;
  border-color: #028174;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(2,129,116,0.2);
}

.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;
  }
  .hadith-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hadith-card {
    padding: 25px;
  }
  .hadith-arabic {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .surah-header h1 {
    font-size: 1.8rem;
  }
  .hadith-arabic {
    font-size: 1.2rem;
  }
  .hadith-translation {
    font-size: 0.95rem;
  }
  .back-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
/* ==========================
   PAGE GUIDE – Cartes thématiques
   (à placer à la fin du fichier style.css)
========================== */

/* Bouton "Explorer" à l'intérieur des cartes : reprend le style .back-btn */
.hadith-card .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 40px;
  border: 2px solid var(--primary);
  font-weight: 600;
  transition: 0.25s;
  text-decoration: none;
  font-size: 0.95rem;
}

.hadith-card .back-btn:hover {
  background: var(--primary);
  color: white;
  gap: 12px;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Titre des cartes (h3) */
.hadith-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 10px 0 12px;
  line-height: 1.2;
}

/* Texte descriptif dans les cartes */
.hadith-card p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
/* ==========================
   BOUTON EXPLICATION – Version fond clair (cartes blanches)
   Utilisé dans les pages Hadith, Dua, Guide
========================== */
.hadith-card .explication-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #028174;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid #028174;
  transition: 0.3s;
  margin-top: 10px;
  align-self: flex-start;
}

.hadith-card .explication-btn:hover {
  background: #028174;
  color: white;
  border-color: #028174;
  transform: translateY(-3px);
  gap: 12px;
  box-shadow: 0 8px 16px rgba(2,129,116,0.2);
}

.hadith-card .explication-btn i {
  font-size: 0.9rem;
}
/* ==========================
   ANNONCE APPLICATION (bientôt disponible)
========================== */
.app-announcement {
  background: linear-gradient(145deg, #064663, #028174);
  color: white;
  border-radius: 40px;
  padding: 30px 40px;
  margin: 60px auto 40px;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 20px 30px rgba(2,129,116,0.25);
  border: 1px solid rgba(255,255,255,0.15);
}

.app-announcement i {
  font-size: 2.8rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 60px;
}

.app-announcement strong {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.app-announcement p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0;
}

/* Responsive */
@media (max-width: 700px) {
  .app-announcement {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .app-announcement i {
    font-size: 2.2rem;
    padding: 16px;
  }

  .app-announcement strong {
    font-size: 1.2rem;
  }

  .app-announcement p {
    font-size: 1rem;
  }
}
/* ==========================
   SYSTÈME DE PROGRESSION
========================== */
.progress-container {
  max-width: 800px;
  margin: 20px auto 40px;
  text-align: center;
  background: white;
  padding: 20px 25px;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid rgba(2,129,116,0.1);
}

.progress-info {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #064663;
  font-weight: 600;
}

.progress-bar {
  height: 12px;
  background: #e0e7e7;
  border-radius: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #028174, #04af9e);
  width: 0%;
  transition: width 0.3s ease;
}

/* Bouton marquer dans les cartes audio */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.mark-btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  width: fit-content;
  margin-top: 5px;
}

.mark-btn:hover {
  background: #028174;
  color: white;
  border-color: white;
}

.audio-item.completed {
  border: 3px solid #ffd966;
  box-shadow: 0 0 0 2px rgba(255, 217, 102, 0.5);
}

/* Ajustement responsive */
@media (max-width: 700px) {
  .progress-container {
    padding: 15px 20px;
  }
  .progress-info {
    font-size: 1rem;
  }
  .card-actions {
    flex-direction: column;
  }
  .mark-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}