/* ============================================================
   PROPHÈTES.CSS — Aligné au design Ma'rifat Allah
   Couleurs: #2D5F4F (primary) | #C9A661 (accent/or) | #4A8B73
   Polices: Amiri (arabe/titres) + Outfit (corps)
   ============================================================ */

/* ── 1. Masquer l'ancien header Découverte ── */
#page-decouverte .discovery-header,
#page-decouverte .tabs-container,
#page-decouverte .tab-content-discovery {
  display: none !important;
}

/* ── 2. Bouton Retour Premium ── */
.btn-back-universal {
  position: fixed !important;
  top: 90px;
  left: 20px;
  z-index: 200;
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem 0.65rem 1.1rem;
  background: white;
  border: 2px solid rgba(45,95,79,0.2);
  border-radius: 50px;
  color: #2D5F4F;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(45,95,79,0.14);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  white-space: nowrap;
}
.btn-back-universal::before {
  content: '←';
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.3s;
}
.btn-back-universal:hover {
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  color: white;
  border-color: #2D5F4F;
  transform: translateX(-4px);
  box-shadow: 0 8px 28px rgba(45,95,79,0.3);
}
.btn-back-universal:hover::before { transform: translateX(-4px); }
[data-theme="dark"] .btn-back-universal {
  background: #1a2a22;
  border-color: rgba(201,166,97,0.35);
  color: #C9A661;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
[data-theme="dark"] .btn-back-universal:hover {
  background: linear-gradient(135deg, #C9A661, #E8D5A3);
  color: #1a1a2e;
}

/* ══════════════════════════════════════════════════
   MODULE PROPHÈTES — WRAPPER
   ══════════════════════════════════════════════════ */
#module-prophetes {
  font-family: 'Outfit', sans-serif;
  padding-bottom: 60px;
}

/* ── En-tête ── */
.proph-header {
  text-align: center;
  padding: 52px 24px 36px;
  position: relative;
  overflow: hidden;
}
.proph-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.proph-orb1 {
  width: 320px; height: 320px;
  top: -80px; left: 50%; transform: translateX(-55%);
  background: radial-gradient(circle, rgba(45,95,79,0.07) 0%, transparent 70%);
}
.proph-orb2 {
  width: 200px; height: 200px;
  top: 10px; right: 8%;
  background: radial-gradient(circle, rgba(201,166,97,0.1) 0%, transparent 70%);
  animation: proph-orb-float 6s ease-in-out infinite;
}
@keyframes proph-orb-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.proph-header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(45,95,79,0.07);
  border: 1.5px solid rgba(45,95,79,0.18);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2D5F4F;
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proph-title-ar {
  font-family: 'Amiri', serif;
  font-size: clamp(20px, 3.5vw, 34px);
  color: #4A8B73;
  direction: rtl;
  margin-bottom: 4px;
}

.proph-title-fr {
  font-family: 'Amiri', serif;
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.15;
  color: #1F2937;
}
.proph-title-fr .accent {
  background: linear-gradient(135deg, #2D5F4F 0%, #4A8B73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .proph-title-fr { color: #e2e8f0; }

.proph-subtitle {
  color: #6B7280;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.proph-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  background: linear-gradient(135deg, rgba(201,166,97,0.12), rgba(201,166,97,0.05));
  border: 1.5px solid rgba(201,166,97,0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400E;
}
[data-theme="dark"] .proph-count-badge { color: #C9A661; border-color: rgba(201,166,97,0.3); }

/* ── Contrôles ── */
.proph-controls {
  display: flex;
  gap: 10px;
  margin: 0 auto 16px;
  max-width: 680px;
  padding: 0 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.proph-search-wrap {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}
.proph-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: #9CA3AF;
  pointer-events: none;
}
.proph-search {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: white;
  border: 2px solid rgba(45,95,79,0.15);
  border-radius: 14px;
  color: #1F2937;
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(45,95,79,0.07);
}
.proph-search::placeholder { color: #9CA3AF; }
.proph-search:focus {
  border-color: #2D5F4F;
  box-shadow: 0 0 0 3px rgba(45,95,79,0.1), 0 2px 10px rgba(45,95,79,0.07);
}
[data-theme="dark"] .proph-search {
  background: #1a2a22;
  color: #e2e8f0;
  border-color: rgba(201,166,97,0.2);
}
[data-theme="dark"] .proph-search:focus {
  border-color: #C9A661;
  box-shadow: 0 0 0 3px rgba(201,166,97,0.12);
}

.proph-view-btns { display: flex; gap: 6px; }
.proph-btn-view {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(45,95,79,0.15);
  background: white;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(45,95,79,0.06);
}
.proph-btn-view.actif, .proph-btn-view:hover {
  background: #2D5F4F; border-color: #2D5F4F; color: white;
}
[data-theme="dark"] .proph-btn-view { background: #1a2a22; border-color: rgba(201,166,97,0.2); color: #8a8a7a; }
[data-theme="dark"] .proph-btn-view.actif { background: #C9A661; border-color: #C9A661; color: #1a1a2e; }

.proph-results-count {
  text-align: center; color: #9CA3AF;
  font-size: 0.82rem; margin-bottom: 24px;
}

/* ═══════════════════════════
   GRILLE
   ═══════════════════════════ */
.proph-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.proph-carte {
  background: white;
  border-radius: 22px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45,95,79,0.07);
  border: 2px solid rgba(45,95,79,0.08);
}
.proph-carte::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--pc,#2D5F4F), #4A8B73);
  opacity: 0; transition: opacity 0.3s;
}
.proph-carte:hover { transform: translateY(-7px); box-shadow: 0 14px 36px rgba(45,95,79,0.14); }
.proph-carte:hover::after { opacity: 1; }
[data-theme="dark"] .proph-carte { background: #1a2a22; border-color: rgba(201,166,97,0.1); }

.proph-carte-bg-emoji {
  position: absolute; top: -18px; right: -18px;
  font-size: 78px; opacity: 0.05;
  transition: all 0.4s; pointer-events: none;
}
.proph-carte:hover .proph-carte-bg-emoji { opacity: 0.1; transform: scale(1.15) rotate(6deg); }

.proph-carte-num {
  position: absolute; top: 14px; left: 14px;
  width: 24px; height: 24px;
  background: rgba(45,95,79,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #4A8B73;
}
[data-theme="dark"] .proph-carte-num { background: rgba(201,166,97,0.1); color: #C9A661; }

.proph-carte-emoji { font-size: 34px; margin-bottom: 12px; display: block; margin-top: 8px; }

.proph-carte-ar {
  font-family: 'Amiri', serif;
  font-size: 22px;
  direction: rtl;
  text-align: right;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.proph-carte-nom {
  font-size: 17px; font-weight: 800;
  color: #1F2937; margin-bottom: 5px;
  font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .proph-carte-nom { color: #e2e8f0; }

.proph-carte-titre {
  font-size: 11.5px; color: #6B7280;
  line-height: 1.4; margin-bottom: 12px;
}

.proph-carte-epoque { font-size: 11px; color: #9CA3AF; }

.proph-carte-cta {
  display: inline-flex;
  align-items: center; gap: 5px;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11.5px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}

/* ═══════════════════════════
   LISTE
   ═══════════════════════════ */
.proph-liste {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 880px; margin: 0 auto; padding: 0 20px;
}

.proph-ligne {
  display: flex; align-items: center; gap: 16px;
  background: white;
  border: 2px solid rgba(45,95,79,0.09);
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(45,95,79,0.05);
  position: relative; overflow: hidden;
}
.proph-ligne::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--pc, #2D5F4F);
  border-radius: 4px 0 0 4px;
  opacity: 0; transition: opacity 0.2s;
}
.proph-ligne:hover { transform: translateX(5px); box-shadow: 0 6px 20px rgba(45,95,79,0.1); }
.proph-ligne:hover::before { opacity: 1; }
[data-theme="dark"] .proph-ligne { background: #1a2a22; border-color: rgba(201,166,97,0.1); }

.proph-ligne-emoji { font-size: 28px; min-width: 42px; }
.proph-ligne-info { flex: 1; }
.proph-ligne-nom-ar { display: flex; align-items: baseline; gap: 10px; }
.proph-ligne-nom {
  font-size: 16px; font-weight: 700; color: #1F2937;
  font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .proph-ligne-nom { color: #e2e8f0; }
.proph-ligne-ar { font-family: 'Amiri', serif; font-size: 15px; }
.proph-ligne-titre { font-size: 12px; color: #6B7280; margin-top: 2px; }
.proph-ligne-epoque { font-size: 11.5px; color: #9CA3AF; min-width: 130px; text-align: right; }
.proph-ligne-arrow { font-size: 18px; color: #9CA3AF; transition: transform 0.2s; }
.proph-ligne:hover .proph-ligne-arrow { transform: translateX(5px); color: #2D5F4F; }

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.proph-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  backdrop-filter: blur(6px);
  animation: proph-fade 0.2s ease;
}
@keyframes proph-fade { from { opacity: 0; } to { opacity: 1; } }

.proph-modal {
  background: white;
  border-radius: 28px;
  width: 100%; max-width: 800px;
  position: relative; overflow: hidden;
  animation: proph-up 0.32s cubic-bezier(0.34,1.4,0.64,1);
  margin-bottom: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
}
@keyframes proph-up {
  from { transform: translateY(50px) scale(0.93); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
[data-theme="dark"] .proph-modal { background: #0e1c14; }

/* Barre couleur top */
.proph-modal-topbar {
  height: 5px;
  background: linear-gradient(90deg, var(--pc, #2D5F4F) 0%, #4A8B73 50%, #C9A661 100%);
}

/* Header */
.proph-modal-head {
  padding: 28px 32px 20px;
  position: relative;
}

.proph-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.05);
  border: none; border-radius: 50%;
  color: #6B7280; cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 5;
}
.proph-modal-close:hover { background: #ef4444; color: white; transform: scale(1.1) rotate(90deg); }

.proph-modal-identity {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
}

.proph-modal-emoji-box {
  position: relative; flex-shrink: 0;
}
.proph-modal-emoji-big { font-size: 56px; display: block; }
.proph-modal-emoji-ring {
  position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid var(--pc, #2D5F4F);
  opacity: 0.25;
  animation: proph-ring-pulse 2.5s ease-in-out infinite;
}
@keyframes proph-ring-pulse {
  0%,100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.proph-modal-text { flex: 1; }
.proph-modal-ar-big {
  font-family: 'Amiri', serif;
  font-size: 36px; direction: rtl;
  font-weight: 700; margin-bottom: 4px;
}
.proph-modal-nom-big {
  font-family: 'Amiri', serif;
  font-size: 26px; font-weight: 700;
  color: #1F2937; margin: 0 0 5px;
}
[data-theme="dark"] .proph-modal-nom-big { color: #e2e8f0; }
.proph-modal-titre-sm { color: #6B7280; font-size: 13.5px; margin-bottom: 10px; }
.proph-modal-surnom-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11.5px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: rgba(45,95,79,0.08);
  border: 1.5px solid rgba(45,95,79,0.2);
  color: #2D5F4F;
}
[data-theme="dark"] .proph-modal-surnom-chip {
  background: rgba(201,166,97,0.1);
  border-color: rgba(201,166,97,0.3);
  color: #C9A661;
}

/* Infos rapides */
.proph-modal-infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.proph-info-card {
  background: rgba(45,95,79,0.04);
  border-radius: 12px; padding: 11px 14px;
  border: 1.5px solid rgba(45,95,79,0.07);
}
[data-theme="dark"] .proph-info-card { background: rgba(201,166,97,0.05); border-color: rgba(201,166,97,0.1); }
.proph-info-card-label {
  font-size: 9.5px; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px; font-weight: 700;
}
.proph-info-card-val {
  font-size: 12px; color: #374151;
  line-height: 1.4; font-weight: 600;
}
[data-theme="dark"] .proph-info-card-val { color: #c8b88a; }

/* Tabs */
.proph-tabs-row {
  display: flex;
  border-bottom: 2px solid rgba(45,95,79,0.08);
  padding: 0 32px;
  overflow-x: auto; gap: 0;
  scrollbar-width: none;
}
.proph-tabs-row::-webkit-scrollbar { display: none; }
[data-theme="dark"] .proph-tabs-row { border-bottom-color: rgba(201,166,97,0.1); }

.proph-tab-btn {
  padding: 13px 16px;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  color: #9CA3AF; cursor: pointer;
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.proph-tab-btn:hover { color: #2D5F4F; }
.proph-tab-btn.actif { color: #2D5F4F; border-bottom-color: #2D5F4F; }
[data-theme="dark"] .proph-tab-btn:hover { color: #C9A661; }
[data-theme="dark"] .proph-tab-btn.actif { color: #C9A661; border-bottom-color: #C9A661; }

/* Corps tab */
.proph-tab-content { padding: 26px 32px; }

.proph-bio-p {
  color: #4B5563; line-height: 1.9;
  font-size: 15px; margin: 0 0 20px;
}
[data-theme="dark"] .proph-bio-p { color: #c8c0a0; }

.proph-role-card {
  border-radius: 14px; padding: 14px 18px;
  border-left: 4px solid var(--pc, #2D5F4F);
  background: rgba(45,95,79,0.04);
}
[data-theme="dark"] .proph-role-card { background: rgba(201,166,97,0.05); }
.proph-role-card-label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #2D5F4F; margin-bottom: 6px;
}
[data-theme="dark"] .proph-role-card-label { color: #C9A661; }
.proph-role-card-text { font-size: 14px; color: #4B5563; line-height: 1.7; margin: 0; }
[data-theme="dark"] .proph-role-card-text { color: #b0a880; }

/* Items liste (miracles, enseignements) */
.proph-items-list { display: flex; flex-direction: column; gap: 9px; }
.proph-list-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(45,95,79,0.03);
  border-radius: 12px; padding: 13px 15px;
  border: 1.5px solid rgba(45,95,79,0.07);
  transition: all 0.2s;
}
.proph-list-item:hover {
  background: rgba(45,95,79,0.07);
  border-color: rgba(45,95,79,0.16);
  transform: translateX(5px);
}
[data-theme="dark"] .proph-list-item { background: rgba(201,166,97,0.04); border-color: rgba(201,166,97,0.08); }
[data-theme="dark"] .proph-list-item:hover { background: rgba(201,166,97,0.09); }
.proph-list-num {
  min-width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  background: rgba(45,95,79,0.1); color: #2D5F4F;
  flex-shrink: 0; font-family: 'Outfit', sans-serif;
}
[data-theme="dark"] .proph-list-num { background: rgba(201,166,97,0.12); color: #C9A661; }
.proph-list-puce { font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.proph-list-text { color: #4B5563; font-size: 14px; line-height: 1.6; margin: 0; }
[data-theme="dark"] .proph-list-text { color: #c0b080; }

/* Citations */
.proph-cit-bloc {
  border-left: 4px solid #C9A661;
  padding: 14px 18px;
  background: rgba(201,166,97,0.06);
  border-radius: 0 14px 14px 0;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.proph-cit-bloc:hover { background: rgba(201,166,97,0.12); transform: translateX(4px); }
.proph-cit-bloc p { font-family: 'Amiri', serif; font-style: italic; font-size: 15.5px; color: #374151; line-height: 1.8; margin: 0; }
[data-theme="dark"] .proph-cit-bloc p { color: #d8c888; }

/* Savais-tu */
.proph-savais {
  background: linear-gradient(135deg, rgba(201,166,97,0.1), rgba(201,166,97,0.04));
  border: 1.5px solid rgba(201,166,97,0.35);
  border-radius: 16px; padding: 16px 20px; margin-top: 20px;
}
.proph-savais-lbl {
  font-size: 11px; color: #92400E; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 7px;
}
.proph-savais p { font-size: 14px; color: #78350F; line-height: 1.7; margin: 0; }
[data-theme="dark"] .proph-savais-lbl { color: #C9A661; }
[data-theme="dark"] .proph-savais p { color: #c8b060; }

/* Lieux */
.proph-lieux-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.proph-lieu {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 2px solid rgba(45,95,79,0.14);
  border-radius: 50px;
  font-size: 13px; color: #374151; font-weight: 600;
  box-shadow: 0 2px 8px rgba(45,95,79,0.06);
  transition: all 0.2s; cursor: default;
}
.proph-lieu:hover {
  border-color: #2D5F4F;
  background: rgba(45,95,79,0.05);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(45,95,79,0.12);
}
[data-theme="dark"] .proph-lieu { background: #1a2a22; border-color: rgba(201,166,97,0.18); color: #c8b88a; }

/* Nav bas modal */
.proph-modal-bottom-nav {
  display: flex; justify-content: space-between;
  padding: 0 32px 28px; gap: 10px;
}
.proph-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(45,95,79,0.06);
  border: 2px solid rgba(45,95,79,0.12);
  border-radius: 50px;
  color: #2D5F4F; cursor: pointer;
  font-size: 13px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
}
.proph-nav-btn:hover {
  background: #2D5F4F; border-color: #2D5F4F;
  color: white; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45,95,79,0.25);
}
[data-theme="dark"] .proph-nav-btn { background: rgba(201,166,97,0.08); border-color: rgba(201,166,97,0.2); color: #C9A661; }
[data-theme="dark"] .proph-nav-btn:hover { background: #C9A661; color: #1a1a2e; }

/* Vide */
.proph-empty { text-align: center; padding: 48px 20px; color: #9CA3AF; font-size: 15px; }
.proph-empty-icon { font-size: 48px; margin-bottom: 12px; display: block; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .proph-grille { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; padding: 0 12px; }
  .proph-modal { border-radius: 20px; }
  .proph-modal-head { padding: 22px 18px 16px; }
  .proph-tab-content { padding: 18px 18px; }
  .proph-modal-bottom-nav { padding: 0 18px 20px; }
  .proph-tabs-row { padding: 0 18px; }
  .proph-modal-ar-big { font-size: 28px; }
  .proph-modal-nom-big { font-size: 20px; }
  .proph-modal-infos-grid { grid-template-columns: 1fr 1fr; }
  .proph-ligne-epoque { display: none; }
}