/* ═══════════════════════════════════════════════════
   HAJJ & UMRAH SIMULATOR — Ma'rifat Allah
   Intégration dans la section Découverte
═══════════════════════════════════════════════════ */

/* ─── SPOTLIGHT CARD (page Découverte) ─────────────── */
.hajj-spotlight-section { margin: 1.5rem auto 0; padding: 0 2rem; max-width: 1400px; }
.hajj-spotlight-wrap {
    position: relative;
    background: linear-gradient(135deg, rgba(13,59,42,0.07) 0%, rgba(201,168,76,0.1) 50%, rgba(26,102,68,0.06) 100%);
    border-radius: 32px; padding: 2.75rem 3rem; overflow: hidden;
    border: 2px solid rgba(201,168,76,0.25);
    box-shadow: 0 20px 60px rgba(13,59,42,0.12);
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hajj-spotlight-wrap:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(13,59,42,0.2); border-color: rgba(201,168,76,0.45); }
.hajj-spot-badge {
    position: absolute; top: 1.5rem; right: 1.5rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, #0D3B2A, #1A6644);
    color: #F0D080; border-radius: 50px; font-weight: 700; font-size: 0.82rem;
    box-shadow: 0 4px 14px rgba(13,59,42,0.4);
    animation: hajjBadgePulse 2.5s ease-in-out infinite; z-index: 10;
}
@keyframes hajjBadgePulse {
    0%,100% { transform: scale(1); box-shadow: 0 4px 14px rgba(13,59,42,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 22px rgba(201,168,76,0.5); }
}
.hajj-spot-body { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; position: relative; z-index: 5; }
.hajj-spot-icons-anim { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.hajj-spot-icons-anim span { display: block; animation: hajjIconFloat 3s ease-in-out infinite; }
.hia-1 { font-size: 2.8rem; animation-delay: 0s !important; }
.hia-2 { font-size: 1.8rem; animation-delay: 0.5s !important; }
.hia-3 { font-size: 1.4rem; animation-delay: 1s !important; }
@keyframes hajjIconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hajj-spot-arabic { font-family: 'Amiri', serif; font-size: 2rem; color: #0D3B2A; margin-bottom: 0.3rem; direction: rtl; }
.hajj-spot-title  { font-size: 2rem; font-weight: 700; color: #0D3B2A; margin: 0 0 0.6rem; line-height: 1.2; }
.hajj-spot-sub    { font-size: 1rem; color: #6B7280; margin: 0 0 1.4rem; line-height: 1.6; }
.hajj-spot-chips  { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }
.hjc-chip         { padding: 0.5rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem; border: 2px solid; transition: all 0.3s; cursor: default; }
.hjc-chip:hover   { transform: translateY(-2px); }
.hjc-green  { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.hjc-gold   { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.hjc-blue   { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.hjc-dark   { background: #0D3B2A; color: #F0D080; border-color: #1A6644; }
.hajj-spot-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1.1rem 2.2rem;
    background: linear-gradient(135deg, #0D3B2A, #1A6644);
    color: #F0D080; border: none; border-radius: 14px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 24px rgba(13,59,42,0.35);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    font-family: 'Outfit', sans-serif;
}
.hajj-spot-btn:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,59,42,0.45); }
.hajj-spot-btn:hover .haj-arr { transform: translateX(5px); }
.haj-arr { transition: transform 0.3s; display: inline-block; }
.hajj-spot-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.hjsp-card {
    background: white; padding: 0.85rem 1.25rem; border-radius: 14px;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(13,59,42,0.1); border: 2px solid rgba(201,168,76,0.2);
    transition: all 0.35s cubic-bezier(0.68,-0.55,0.265,1.55); min-width: 130px;
}
.hjsp-card:hover { transform: translateX(-6px) scale(1.03); border-color: rgba(201,168,76,0.5); }
.hjsp-icon { font-size: 1.5rem; }
.hjsp-name { font-weight: 700; color: #1F2937; font-size: 0.88rem; }
.hajj-spot-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hjsd-circle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.1), transparent 70%); }
.hjsd-c1 { width: 300px; height: 300px; top: -100px; left: -80px; animation: hjsdFloat 8s ease-in-out infinite; }
.hjsd-c2 { width: 200px; height: 200px; bottom: -60px; right: 8%; animation: hjsdFloat 10s ease-in-out infinite reverse; }
@keyframes hjsdFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12px,12px) scale(1.1); } }
[data-theme="dark"] .hajj-spotlight-wrap { background: linear-gradient(135deg,rgba(13,59,42,0.22) 0%,rgba(201,168,76,0.1) 50%,rgba(26,102,68,0.18) 100%); }
[data-theme="dark"] .hjsp-card { background: var(--surface); }
[data-theme="dark"] .hjc-chip { background: var(--surface); }
[data-theme="dark"] .hajj-spot-arabic,
[data-theme="dark"] .hajj-spot-title { color: #F0D080; }
@media (max-width: 1024px) {
    .hajj-spot-body { grid-template-columns: 1fr; text-align: center; gap: 1.75rem; }
    .hajj-spot-icons-anim { flex-direction: row; justify-content: center; }
    .hajj-spot-chips { justify-content: center; }
    .hajj-spot-cards { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .hjsp-card { min-width: unset; }
}
@media (max-width: 768px) {
    .hajj-spotlight-section { padding: 0 0.75rem !important; }
    .hajj-spotlight-wrap { padding: 2rem 1.25rem !important; border-radius: 20px !important; }
    .hajj-spot-title { font-size: 1.6rem; }
    .hajj-spot-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hajj-spotlight-section { padding: 0 0.5rem !important; }
    .hajj-spotlight-wrap { padding: 1.5rem 0.9rem !important; border-radius: 16px !important; }
    .hajj-spot-title { font-size: 1.35rem; }
    .hajj-spot-arabic { font-size: 1.5rem !important; }
}

/* ═══════════════════════════════════════════════════
   SIMULATEUR — PAGE COMPLÈTE
═══════════════════════════════════════════════════ */
#page-hajj-umrah { display: none; }
#page-hajj-umrah.active { display: block; }

.haj-sim-wrapper {
    min-height: calc(100vh - 80px);
    background: #0D3B2A;
    background-image:
        radial-gradient(ellipse at 10% 10%, rgba(201,168,76,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(26,102,68,0.25) 0%, transparent 50%);
    font-family: 'Outfit', sans-serif;
    padding: 24px 16px 48px;
    box-sizing: border-box;
}

/* ─── ACCUEIL SIMULATEUR ────────────────────────── */
.haj-home {
    max-width: 640px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 40px 20px;
}
.haj-home-icon { font-size: 88px; margin-bottom: 16px; filter: drop-shadow(0 0 24px rgba(201,168,76,0.5)); }
.haj-home-title-ar {
    font-family: 'Amiri', serif; font-size: 36px; color: #F0D080;
    text-shadow: 0 2px 20px rgba(201,168,76,0.4); margin-bottom: 6px;
}
.haj-home-title-fr { font-size: 22px; color: #A8D5C0; font-weight: 400; margin-bottom: 8px; }
.haj-home-sub { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; margin-bottom: 40px; }
.haj-mode-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.haj-mode-btn {
    border: 2px solid #C9A84C; border-radius: 20px;
    padding: 28px 36px; cursor: pointer; color: #fff; min-width: 170px;
    transition: all 0.3s; box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    text-align: center;
}
.haj-mode-btn:hover { transform: translateY(-5px) scale(1.03); }
.haj-mode-btn-icon  { font-size: 44px; margin-bottom: 8px; }
.haj-mode-btn-ar    { font-family: 'Amiri', serif; font-size: 24px; color: #F0D080; margin-bottom: 4px; }
.haj-mode-btn-fr    { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.haj-mode-btn-steps {
    font-size: 12px; color: rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.25); border-radius: 20px;
    padding: 3px 12px; display: inline-block;
}
.haj-mode-btn.umrah { background: linear-gradient(135deg, rgba(26,102,68,0.7), rgba(0,0,0,0.35)); }
.haj-mode-btn.hajj  { background: linear-gradient(135deg, rgba(139,0,0,0.7), rgba(0,0,0,0.35)); }
.haj-home-note { margin-top: 40px; color: rgba(255,255,255,0.2); font-size: 11px; }

/* ─── SIMULATEUR ÉTAPES ─────────────────────────── */
.haj-sim-inner { max-width: 700px; margin: 0 auto; }

.haj-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.haj-back-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: #ccc; padding: 8px 16px; border-radius: 50px; cursor: pointer;
    font-size: 13px; font-family: 'Outfit', sans-serif; transition: all 0.2s;
}
.haj-back-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.haj-mode-label { color: #C9A84C; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.haj-step-count { color: rgba(255,255,255,0.45); font-size: 13px; }

.haj-progress-bar {
    background: rgba(255,255,255,0.1); border-radius: 10px; height: 5px;
    margin-bottom: 22px; overflow: hidden;
}
.haj-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9A84C, #F0D080);
    border-radius: 10px; transition: width 0.5s ease;
}

/* step dots */
.haj-step-dots { display: flex; gap: 6px; margin-bottom: 26px; justify-content: center; flex-wrap: wrap; }
.haj-dot {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; border: 2px solid;
}
.haj-dot.done  { background: #1A6644; border-color: #1A6644; color: #fff; }
.haj-dot.cur   { background: linear-gradient(135deg, #C9A84C, #B8860B); border-color: #C9A84C; color: #000; transform: scale(1.15); }
.haj-dot.todo  { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.35); }

/* main card */
.haj-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.haj-card.highlight-card { border-color: #C9A84C; box-shadow: 0 0 40px rgba(201,168,76,0.2); }
.haj-card.anim-out { opacity: 0; transform: translateY(10px); }

.haj-card-head {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.haj-card-head-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.haj-step-icon { font-size: 46px; line-height: 1; }
.haj-step-titles { flex: 1; }
.haj-step-ar { font-family: 'Amiri', serif; font-size: 26px; color: #F0D080; direction: rtl; margin-bottom: 2px; }
.haj-step-fr { font-size: 19px; font-weight: 700; color: #fff; }
.haj-step-meta { color: rgba(255,255,255,0.45); font-size: 12px; margin-top: 4px; }
.haj-done-badge {
    background: #1A6644; border-radius: 50px; padding: 5px 14px;
    font-size: 13px; color: #fff;
}

.haj-card-body { padding: 24px 28px; }

.haj-desc-ar {
    background: rgba(255,255,255,0.04); border-radius: 12px;
    padding: 14px 18px; margin-bottom: 10px;
    border-right: 3px solid #C9A84C;
    direction: rtl; text-align: right;
    color: rgba(255,255,255,0.85); line-height: 1.9; font-size: 14px;
    font-family: 'Amiri', serif;
}
.haj-desc-fr {
    background: rgba(255,255,255,0.04); border-radius: 12px;
    padding: 14px 18px; margin-bottom: 18px;
    border-left: 3px solid #C9A84C;
    color: rgba(255,255,255,0.85); line-height: 1.7; font-size: 14px;
}

.haj-toggle-btns { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.haj-toggle {
    flex: 1; min-width: 130px; padding: 10px 14px; border-radius: 12px;
    cursor: pointer; font-weight: 700; font-size: 13px;
    transition: all 0.2s; font-family: 'Outfit', sans-serif;
    border: 1px solid;
}
.haj-toggle.dua-btn {
    background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.3); color: #C9A84C;
}
.haj-toggle.dua-btn.active {
    background: linear-gradient(135deg, #C9A84C, #B8860B); border-color: #C9A84C; color: #000;
}
.haj-toggle.rules-btn {
    background: rgba(26,102,68,0.15); border-color: rgba(26,102,68,0.4); color: #A8D5C0;
}
.haj-toggle.rules-btn.active {
    background: linear-gradient(135deg, #1A6644, #0D3B2A); border-color: #1A6644; color: #fff;
}

/* dua panel */
.haj-dua-panel {
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(0,0,0,0.2));
    border: 1px solid rgba(201,168,76,0.3); border-radius: 16px;
    padding: 20px; margin-bottom: 14px; display: none;
}
.haj-dua-panel.open { display: block; animation: hajPanelIn 0.3s ease; }
.haj-panel-title { color: #C9A84C; font-weight: 700; margin-bottom: 14px; font-size: 14px; }
.haj-dua-block {
    padding: 14px; background: rgba(0,0,0,0.2); border-radius: 12px; margin-bottom: 10px;
}
.haj-dua-label { color: #C9A84C; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.haj-dua-ar {
    font-family: 'Amiri', serif; font-size: 18px; color: #F0D080;
    line-height: 2.1; direction: rtl; text-align: right; margin-bottom: 8px;
}
.haj-dua-fr { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.6; font-style: italic; }
.haj-dua-tip {
    margin-top: 12px; padding: 8px 14px;
    background: rgba(201,168,76,0.08); border-radius: 8px;
    color: rgba(255,255,255,0.4); font-size: 12px;
}

/* rules panel */
.haj-rules-panel {
    background: linear-gradient(135deg, rgba(26,102,68,0.12), rgba(0,0,0,0.2));
    border: 1px solid rgba(26,102,68,0.4); border-radius: 16px;
    padding: 20px; margin-bottom: 14px; display: none;
}
.haj-rules-panel.open { display: block; animation: hajPanelIn 0.3s ease; }
.haj-rule-item {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 10px; padding: 8px 12px;
    background: rgba(0,0,0,0.15); border-radius: 8px;
}
.haj-rule-diamond { color: #C9A84C; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.haj-rule-text { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.5; }

@keyframes hajPanelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* mark complete */
.haj-mark-btn {
    width: 100%; padding: 12px; border-radius: 12px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    transition: all 0.3s; margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}
.haj-mark-btn.unmarked {
    background: rgba(26,102,68,0.2); border: 1px solid rgba(26,102,68,0.3); color: #A8D5C0;
}
.haj-mark-btn.marked {
    background: linear-gradient(135deg, #1A6644, #0A4A30); border: 1px solid #1A6644; color: #fff;
}
.haj-mark-btn.unmarked:hover { background: rgba(26,102,68,0.35); }

/* nav */
.haj-nav-btns { display: flex; gap: 12px; margin-top: 20px; }
.haj-nav-prev {
    flex: 1; padding: 14px; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; font-size: 15px; font-weight: 600;
    transition: all 0.2s; font-family: 'Outfit', sans-serif;
}
.haj-nav-prev:disabled { color: rgba(255,255,255,0.2); cursor: not-allowed; }
.haj-nav-prev:not(:disabled):hover { background: rgba(255,255,255,0.1); }
.haj-nav-next {
    flex: 2; padding: 14px; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #C9A84C, #B8860B);
    border: none; color: #000; font-size: 15px; font-weight: 700;
    box-shadow: 0 4px 20px rgba(201,168,76,0.3);
    transition: all 0.2s; font-family: 'Outfit', sans-serif;
}
.haj-nav-next:hover { transform: scale(1.02); }

/* finish */
.haj-finish {
    max-width: 500px; margin: 40px auto; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px;
}
.haj-finish-icon { font-size: 80px; margin-bottom: 20px; }
.haj-finish-ar { font-family: 'Amiri', serif; color: #F0D080; font-size: 30px; margin-bottom: 8px; }
.haj-finish-fr { color: #A8D5C0; font-size: 18px; margin-bottom: 8px; }
.haj-finish-score { color: rgba(255,255,255,0.5); font-size: 14px; margin-bottom: 30px; }
.haj-finish-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.haj-restart-btn {
    background: #1A6644; border: 2px solid #C9A84C; color: #F0D080;
    padding: 12px 28px; border-radius: 50px; cursor: pointer;
    font-size: 14px; font-family: 'Outfit', sans-serif; font-weight: 700;
    transition: all 0.2s;
}
.haj-restart-btn:hover { background: #0D3B2A; }
.haj-home-btn {
    background: transparent; border: 2px solid rgba(255,255,255,0.25); color: #fff;
    padding: 12px 28px; border-radius: 50px; cursor: pointer;
    font-size: 14px; font-family: 'Outfit', sans-serif; font-weight: 700;
    transition: all 0.2s;
}
.haj-home-btn:hover { border-color: rgba(255,255,255,0.5); }

.haj-sim-note {
    text-align: center; color: rgba(255,255,255,0.18); font-size: 11px; margin-top: 24px;
}