/* ===== FICHIER CSS MIS À JOUR - Ma'rifat Allah ===== */

/* ===== RESET & VARIABLES ===== */
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2D5F4F;
    --primary-light: #4A8B73;
    --accent: #C9A661;
    --bg: #F8F6F1;
    --text: #1A1A1A;
    --text-light: #6B7280;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, #EDE9DC 100%);
    color: var(--text);
    min-height: 100vh;
}

/* ===== BOUTON RETOUR UNIVERSEL (NOUVEAU) ===== */
.btn-back-universal {
    position: fixed;
    top: 85px;
    left: 1.5rem;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 1.5px solid rgba(45, 95, 79, 0.2);
    border-radius: 50px;
    color: #2D5F4F;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-back-universal:hover {
    background: #2D5F4F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 95, 79, 0.25);
}

.btn-back-universal:active {
    transform: translateY(-1px);
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1E4538 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 1s ease-out;
}

.splash-screen.hidden {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.splash-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon */
.icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

/* Textes */
.title {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 300;
}

.transcription {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 0.75rem;
    font-weight: 300;
}

/* Verset du jour */
.daily-verse {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 0.6s both;
}




/* Bouton */
.btn-start {
    background: white;
    color: var(--primary);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 1s ease-out 0.9s both;
    transition: all 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #E5C68D;
}

/* App Container (caché au début) */
.app-container {
    display: block;
    animation: fadeIn 0.8s ease-out;
}

.app-container.active {
    display: block;
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg);
}

.btn-login {
    background: white;
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* APRÈS */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.page.active {
    display: block;
    min-height: 100px; /* ⭐ AJOUT */
    width: 100%; /* ⭐ AJOUT */
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border: 1px solid #E5E3DB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
}

.section-title {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.verse-card {
    background: linear-gradient(135deg, var(--bg) 0%, #FDFCF9 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.verse-arabic {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--primary);
    text-align: right;
    direction: rtl;
    margin-bottom: 1.5rem;
    line-height: 2;
}

.verse-translation {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-style: italic;
}

.verse-reference {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.app-footer {
    background: #1E4538;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* ===== TIMER BAR AVEC CROIX (MODIFIÉ) ===== */
.timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    padding: 0.75rem 2rem;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.timer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.timer-icon {
    font-size: 1.2rem;
}

.timer-text {
    color: white;
    font-weight: 500;
    flex: 1;
}

.timer-btn {
    background: white;
    color: #D97706;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CROIX POUR FERMER LE TIMER (NOUVEAU) */
.btn-close-timer {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    font-weight: 300;
}

.btn-close-timer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-close-timer:active {
    transform: rotate(90deg) scale(0.9);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-message {
    flex: 1;
    color: var(--text);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-close:hover {
    background: #F3F4F6;
    color: var(--text);
}

.notification-info {
    border-left: 4px solid #3B82F6;
}

.notification-success {
    border-left: 4px solid #10B981;
}

.notification-warning {
    border-left: 4px solid #F59E0B;
}

.notification-error {
    border-left: 4px solid #EF4444;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-title {
    color: var(--primary);
    font-family: 'Amiri', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: #E5E3DB;
    color: var(--text);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #D4D2C8;
}

.btn-primary-modal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 95, 79, 0.3);
}

/* ===== PAGES AUTHENTIFICATION (NOUVELLES) ===== */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(45, 95, 79, 0.15);
    border: 1px solid #E5E3DB;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.auth-header h2 {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.875rem 1.25rem;
    border: 2px solid #E5E3DB;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 95, 79, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group-checkbox {
    margin: 0.5rem 0;
}

.link-forgot,
.link-inline {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.link-forgot:hover,
.link-inline:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-auth-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.2);
    margin-top: 0.5rem;
}

.btn-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 95, 79, 0.3);
}

.btn-auth-submit:active {
    transform: translateY(-1px);
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #E5E3DB;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-auth-switch {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-auth-switch:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.2);
}

/* ===== PAGE CONNAÎTRE ALLAH (NOUVELLE) ===== */
.know-allah-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(45, 95, 79, 0.2);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 300;
}

.know-allah-intro {
    margin-bottom: 3rem;
}

.intro-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
    border-left: 5px solid var(--accent);
}

.intro-card h2 {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.intro-text strong {
    color: var(--primary);
    font-weight: 700;
}

.know-allah-section {
    margin-bottom: 4rem;
}

.section-title-know {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2.5rem;
}

.know-card-primary {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
    border: 1px solid #E5E3DB;
}

.know-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.know-card-primary h3 {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.know-card-primary > p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.verse-box-know {
    background: linear-gradient(135deg, var(--bg) 0%, #FDFCF9 100%);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    margin-top: 2rem;
}

.verse-arabic-know {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--primary);
    text-align: right;
    direction: rtl;
    margin-bottom: 1rem;
    line-height: 2;
}

.verse-trans-know {
    font-style: italic;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.verse-translation-know {
    font-size: 1.05rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.verse-ref-know {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.testimony-box {
    background: linear-gradient(135deg, #FFF9ED 0%, #FFF5E0 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-left: 4px solid var(--accent);
}

.testimony-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimony-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.testimony-text em {
    color: var(--primary);
    font-style: italic;
    font-weight: 600;
}

.testimony-text strong {
    color: var(--primary);
}

.testimony-ref {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 1rem;
    display: block;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    text-align: center;
    border: 1px solid #E5E3DB;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15);
    border-color: var(--accent);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

.benefit-card em {
    color: var(--primary);
    font-style: italic;
    font-weight: 600;
}

.testimonies-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimony-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border-left: 4px solid var(--accent);
}

.testimony-quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimony-author {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border: 1px solid #E5E3DB;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.step-card h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-step {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 95, 79, 0.3);
}

.know-allah-cta {
    background: linear-gradient(135deg, #FFF9ED 0%, #FFF5E0 100%);
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--accent);
}

.cta-content h2 {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.cta-content > p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto 1rem;
}

.cta-emphasis {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(45, 95, 79, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(45, 95, 79, 0.4);
}

.btn-cta-secondary {
    background: white;
    color: var(--primary);
    padding: 1.25rem 2.5rem;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(45, 95, 79, 0.3);
}

/* ===== BOUTON VERSET ALÉATOIRE ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-random {
    background: linear-gradient(135deg, var(--accent) 0%, #E5C68D 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(201, 166, 97, 0.3);
}

.btn-random:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 166, 97, 0.4);
}

/* ===== PAGE DÉCOUVERTE ===== */
.discovery-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Onglets */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(45, 95, 79, 0.08);
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 95, 79, 0.3);
}

.tab-content-discovery {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content-discovery.active {
    display: block;
}

/* Intro */
.discovery-intro {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border-left: 4px solid var(--accent);
}

.discovery-intro h2 {
    color: var(--primary);
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.discovery-intro p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Discovery Grid */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.discovery-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border: 1px solid #E5E3DB;
    transition: all 0.3s;
}

.discovery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15);
}

.discovery-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.discovery-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.discovery-card > p:first-of-type {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.discovery-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Verse Quote */
.verse-quote {
    background: linear-gradient(135deg, var(--bg) 0%, #FDFCF9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.quote-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    color: var(--primary);
    text-align: right;
    direction: rtl;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.quote-translation {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.quote-transcription {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quote-ref {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* ===== NOMS D'ALLAH ===== */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.name-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.08);
    text-align: center;
    border: 1px solid #E5E3DB;
    transition: all 0.3s;
}

.name-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 95, 79, 0.15);
    border-color: var(--accent);
}

.name-arabic {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.name-translation {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name-meaning {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.name-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PAGE LECTURE ===== */
.lecture-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lecture-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

/* Barre de recherche */
.search-bar {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #E5E3DB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 95, 79, 0.1);
}

/* Boutons de filtre */
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #E5E3DB;
    background: white;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
}

/* Contenu */
.lecture-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.content-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border: 1px solid #E5E3DB;
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(45, 95, 79, 0.15);
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.content-type {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-favorite {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #9CA3AF;
}

.btn-favorite:hover {
    transform: scale(1.2);
}

.content-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--primary);
    text-align: right;
    direction: rtl;
    margin-bottom: 1rem;
    line-height: 2;
}

.content-transcription {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.content-translation {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.content-explanation {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #E5E3DB;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.content-reference {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.content-category {
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Bouton charger plus */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.2);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 95, 79, 0.3);
}

/* Pas de résultats */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== ATTRIBUTS ===== */
.attributes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.attribute-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    display: flex;
    gap: 1.5rem;
    align-items: start;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.attribute-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.15);
}

.attribute-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.attribute-content {
    flex: 1;
}

.attribute-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.attribute-content > p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.attribute-verse {
    background: linear-gradient(135deg, var(--bg) 0%, #FDFCF9 100%);
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.attr-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: var(--primary);
    text-align: right;
    direction: rtl;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.attr-translation {
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 0.25rem;
}

.attr-ref {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* ===== TRANSCRIPTIONS & EXPLICATIONS ===== */
.verse-card-extended {
    background: linear-gradient(135deg, var(--bg) 0%, #FDFCF9 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.verse-transcription {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 500;
}

.verse-explanation {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

/* ===== PAGE PROFIL ===== */
.stats-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg) 0%, #FDFCF9 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #E5E3DB;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 95, 79, 0.15);
    border-color: var(--accent);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Section info contenu */
.content-info-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

.content-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.info-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(45, 95, 79, 0.3);
}

.info-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section favoris */
.favorites-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.no-favorites {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-favorites-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-favorites-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===== 99 NOMS D'ALLAH ===== */
.names-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.category-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E3DB;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.category-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 95, 79, 0.1);
}

.btn-reset-names {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-reset-names:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 166, 97, 0.3);
}

.names-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.name-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
    border: 2px solid #E5E3DB;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.name-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15);
    border-color: var(--accent);
}

.name-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.name-transcription-small {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
    font-style: italic;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.name-translation-small {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.name-meaning-small {
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.name-explanation-small {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.name-category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Bouton retour universel */
    .btn-back-universal {
        top: 80px;
        left: 10px;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Header */
    .nav-menu {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
    }

    /* Splash Screen */
    .title {
        font-size: 2rem;
    }

    .arabic {
        font-size: 1.4rem;
    }

    .splash-content {
        padding: 1rem;
    }

    /* Main Content */
    .page-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .featured-section {
        padding: 2rem 1.5rem;
    }

    .verse-arabic {
        font-size: 1.5rem;
    }

    /* Timer */
    .timer-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-close-timer {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Notifications */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* Modal */
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    /* Section Header */
    .section-header {
        flex-direction: column;
        text-align: center;
    }

    /* Découverte */
    .discovery-grid {
        grid-template-columns: 1fr;
    }

    .names-grid-modern {
        grid-template-columns: 1fr;
    }

    .attribute-item {
        flex-direction: column;
        text-align: center;
    }

    .tabs-container {
        flex-direction: column;
    }

    /* Lecture */
    .lecture-content {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    /* Profil */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Authentification */
    .auth-card {
        padding: 2rem 1.5rem;
    }

    /* Connaître Allah */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .intro-card {
        padding: 2rem 1.5rem;
    }

    .know-card-primary {
        padding: 2rem 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .testimonies-container {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    /* 99 Noms */
    .filter-row {
        flex-direction: column;
    }

    .category-select,
    .btn-reset-names {
        width: 100%;
    }
}

/* ===== STYLES POUR PAGE DHIKR ===== */

.dhikr-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dhikr-presets {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

.preset-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #E5E3DB;
    background: white;
    color: var(--text);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-btn:hover {
    border-color: var(--primary);
    background: var(--bg);
    transform: translateY(-2px);
}

.preset-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.3);
}

.dhikr-counter-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.dhikr-formula {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    direction: rtl;
}

.dhikr-transcription {
    font-size: 1.5rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 500;
}

.counter-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
}

.counter-target {
    font-size: 2rem;
    color: var(--text-light);
}

.progress-ring {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: #E5E3DB;
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 0.3s ease;
}

.btn-count {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.3);
    transition: all 0.3s;
    margin: 2rem auto;
    display: block;
}

.btn-count:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(45, 95, 79, 0.4);
}

.btn-count:active {
    transform: scale(0.95);
}

.btn-count-text {
    display: block;
}

.dhikr-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-reset-dhikr {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset-dhikr:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.dhikr-history {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
}

.dhikr-history h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ===== STYLES POUR PAGE QUIZ ===== */

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.quiz-card-select {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
    border: 2px solid #E5E3DB;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quiz-card-select:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(45, 95, 79, 0.2);
    border-color: var(--accent);
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.quiz-card-select h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quiz-card-select p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-start-quiz {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.2);
}

.btn-start-quiz:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 95, 79, 0.3);
}

.quiz-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress-bar-quiz {
    width: 100%;
    height: 10px;
    background: #E5E3DB;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-quiz {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-question {
    margin-bottom: 2.5rem;
}

.quiz-question h2 {
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    padding: 1.5rem;
    border: 2px solid #E5E3DB;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: var(--bg);
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.quiz-option.correct {
    border-color: #10B981;
    background: #10B981;
    color: white;
}

.quiz-option.incorrect {
    border-color: #EF4444;
    background: #EF4444;
    color: white;
}

.quiz-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-next-question {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 2rem;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.2);
}

.btn-next-question:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 95, 79, 0.3);
}

.quiz-results {
    background: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(45, 95, 79, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.quiz-results h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.results-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.score-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
}

.score-text {
    font-size: 3rem;
    color: var(--text-light);
}

.quiz-results p {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.results-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-retry,
.btn-home {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retry {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.2);
}

.btn-retry:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(45, 95, 79, 0.3);
}

.btn-home {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-home:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dhikr-formula {
        font-size: 2rem;
    }

    .dhikr-transcription {
        font-size: 1.2rem;
    }

    .counter-number {
        font-size: 3rem;
    }

    .counter-target {
        font-size: 1.5rem;
    }

    .btn-count {
        width: 150px;
        height: 150px;
        font-size: 1rem;
    }

    .progress-ring {
        width: 150px;
        height: 150px;
    }

    .dhikr-presets {
        flex-direction: column;
    }

    .preset-btn {
        width: 100%;
    }

    .quiz-selection {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 2rem 1.5rem;
    }

    .quiz-question h2 {
        font-size: 1.4rem;
    }

    .quiz-option {
        padding: 1rem;
        font-size: 1rem;
    }

    .results-score {
        flex-direction: column;
        gap: 0;
    }

    .score-number {
        font-size: 4rem;
    }

    .score-text {
        font-size: 2rem;
    }

    .results-actions {
        flex-direction: column;
    }

    .btn-retry,
    .btn-home {
        width: 100%;
    }
}

/* ===== ACTIONS DES CARTES DE CONTENU ===== */
.content-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E3DB;
}

/* Responsive */
@media (max-width: 768px) {
    .content-card-actions {
        flex-direction: column;
    }
    
    .content-card-actions .btn-audio {
        width: 100%;
        justify-content: center;
    }
}

/* ===== CSS POUR L'ENCADRÉ DES SOURCES - 99 NOMS D'ALLAH ===== */
/* Ajoutez ce CSS dans votre fichier css/style.css */

/* Encadré des sources islamiques */
.sources-islamiques {
    background: linear-gradient(135deg, #FFF9ED 0%, #FFF5E0 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid var(--accent);
    box-shadow: 0 4px 20px rgba(201, 166, 97, 0.15);
}

.sources-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sources-icon {
    font-size: 2.5rem;
}

.sources-title {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.sources-intro {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.source-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.source-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(45, 95, 79, 0.1);
}

.source-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.source-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.source-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.6;
}

.source-hadith {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
    border-left: 3px solid var(--accent);
}

.source-hadith-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: var(--primary);
    text-align: right;
    direction: rtl;
    margin-bottom: 0.5rem;
    line-height: 2;
}

.source-references {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.source-ref-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.source-scholars {
    margin-top: 0.75rem;
}

.scholars-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.scholar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.scholar-icon {
    font-size: 1.2rem;
}

.sources-note {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 2px dashed var(--accent);
}

.sources-note-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.sources-note-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.sources-ayah {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.5rem;
}

.sources-ayah-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    line-height: 2;
}

.sources-ayah-translation {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.sources-ayah-ref {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .sources-islamiques {
        padding: 1.5rem;
    }
    
    .sources-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sources-title {
        font-size: 1.3rem;
    }
    
    .source-item {
        padding: 1rem;
    }
    
    .scholars-list {
        grid-template-columns: 1fr;
    }
    
    .sources-ayah-arabic {
        font-size: 1.4rem;
    }
}

:root {
    --header-height: 70px;        /* Hauteur du header */
    --brand-gradient: linear-gradient(135deg, #2D5F4F 0%, #4A8B73 100%);
    --accent-color: #C9A661;      /* Couleur des accents */
}


/* ===== BOUTON ONGLET HIFZ ===== */
.hifz-tab-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2A5C45 0%, #1A3A2A 100%) !important;
    border: 2px solid rgba(196,153,42,0.5) !important;
    color: #E8BE52 !important;
    padding: 0 !important;
    min-width: 180px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important;
    box-shadow: 0 4px 20px rgba(42,92,69,0.3);
}

.hifz-tab-btn:hover,
.hifz-tab-btn.active {
    background: linear-gradient(135deg, #1A3A2A 0%, #0D2018 100%) !important;
    border-color: #C4992A !important;
    box-shadow: 0 8px 32px rgba(42,92,69,0.5), 0 0 0 3px rgba(196,153,42,0.2) !important;
    transform: translateY(-2px);
}

.hifz-tab-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.4rem;
    position: relative;
    z-index: 2;
}

.hifz-tab-icon {
    font-size: 1.3rem;
    animation: hifzMoonSpin 8s linear infinite;
}

@keyframes hifzMoonSpin {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.15); }
}

.hifz-tab-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.hifz-tab-arabic {
    font-family: 'Amiri', serif;
    font-size: 1rem;
    color: #C4992A;
    letter-spacing: 0.05em;
}

.hifz-tab-label {
    font-size: 0.78rem;
    color: #E8D9A8;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hifz-tab-badge {
    background: linear-gradient(135deg, #C4992A, #E8BE52);
    color: #1A1510;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: hifzBadgePulse 2s ease-in-out infinite;
}

@keyframes hifzBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196,153,42,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(196,153,42,0); }
}

.hifz-tab-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(196,153,42,0.25), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.hifz-tab-btn:hover .hifz-tab-glow,
.hifz-tab-btn.active .hifz-tab-glow {
    opacity: 1;
}

#splashScreen {
    background: linear-gradient(160deg, #0d2018 0%, #1a3a28 50%, #0d2018 100%);
    position: relative;
    overflow: hidden;
}

/* Étoiles */
#splashScreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(201,166,97,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 70%, rgba(201,166,97,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 60%, rgba(201,166,97,0.5) 0%, transparent 100%);
    animation: splashStars 4s ease-in-out infinite alternate;
}

@keyframes splashStars {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}

/* Orbe décoratif derrière le logo */
.splash-logo {
    position: relative;
}
.splash-logo::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,166,97,0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: splashOrb 3s ease-in-out infinite;
}

@keyframes splashOrb {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Carte verset améliorée */
.splash-verse-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,166,97,0.25);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Ligne décorative dorée au-dessus du verset */
.splash-verse-card::before {
    content: '✦ ── ── ── ✦';
    display: block;
    text-align: center;
    color: rgba(201,166,97,0.4);
    font-size: 0.7rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

/* Sous-titre bouton */
.splash-btn-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* ============================================================
   SALAT AL-ISTIKHARA — CSS
   ============================================================ */

.istikhara-access-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #1A3D33, #2D5F4F);
  border: none;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  cursor: pointer;
  width: 100%;
  margin-top: 2rem;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 32px rgba(45,95,79,0.25);
  position: relative;
  overflow: hidden;
}
.istikhara-access-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45,95,79,0.35);
}
.iab-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(201,166,97,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.iab-text { text-align: left; }
.iab-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #E0C07A; margin-bottom: 0.2rem;
}
.iab-title { font-size: 1.15rem; font-weight: 800; color: white; margin-bottom: 0.15rem; }
.iab-sub { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.iab-arrow {
  margin-left: auto; color: #E0C07A;
  font-size: 1.3rem; transition: transform 0.3s;
}
.istikhara-access-btn:hover .iab-arrow { transform: translateX(6px); }

.istikhara-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.isti-hero {
  background: linear-gradient(145deg, #0D2318, #1A3D33, #2D5F4F);
  border-radius: 28px;
  padding: 3rem 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 60px rgba(13,35,24,0.4);
}
.isti-hero::before {
  content: '✦ ✦ ✦';
  position: absolute; top: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; color: rgba(201,166,97,0.4); letter-spacing: 1rem;
}
.isti-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px);
}
.isti-orb-1 {
  width: 300px; height: 300px; top: -100px; right: -80px;
  background: radial-gradient(circle, rgba(201,166,97,0.12), transparent 70%);
  animation: orbDrift 12s ease-in-out infinite;
}
.isti-orb-2 {
  width: 200px; height: 200px; bottom: -60px; left: -50px;
  background: radial-gradient(circle, rgba(74,139,115,0.15), transparent 70%);
  animation: orbDrift 16s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(20px,-15px); }
}
.isti-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(201,166,97,0.15);
  border: 1px solid rgba(201,166,97,0.3);
  border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #E0C07A;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.isti-arabic-title {
  font-family: 'Amiri', serif;
  font-size: 3.2rem;
  color: #E0C07A;
  direction: rtl;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.isti-fr-title {
  font-size: 1.4rem; font-weight: 800;
  color: white; margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.isti-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.65);
  line-height: 1.8; max-width: 520px; margin: 0 auto;
  position: relative; z-index: 1;
}
.isti-source {
  background: #FDF6E3;
  border: 1.5px solid rgba(201,166,97,0.3);
  border-left: 4px solid #C9A661;
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.isti-source-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.isti-source-text { font-size: 0.88rem; color: #4A5568; line-height: 1.7; }
.isti-source-text strong { color: #2D5F4F; font-weight: 700; }
.isti-section-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; margin-top: 2.5rem;
}
.isti-section-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #8896A7;
  display: flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
}
.isti-section-star { color: #C9A661; }
.isti-section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, #E4DDD0, transparent);
}
.isti-steps { display: flex; flex-direction: column; gap: 1rem; }
.isti-step {
  background: #FFFFFF;
  border: 1px solid #E4DDD0;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45,95,79,0.05);
  position: relative; overflow: hidden;
}
.isti-step::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #2D5F4F, #C9A661);
  border-radius: 0 2px 2px 0;
  opacity: 0; transition: opacity 0.3s;
}
.isti-step:hover { transform: translateX(6px); border-color: rgba(45,95,79,0.2); box-shadow: 0 8px 28px rgba(45,95,79,0.1); }
.isti-step:hover::before { opacity: 1; }
.isti-step.expanded { border-color: rgba(45,95,79,0.25); background: #FAFDF9; }
.isti-step.expanded::before { opacity: 1; }
.isti-step-num {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #2D5F4F, #4A8B73);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(45,95,79,0.25);
}
.isti-step-num.gold {
  background: linear-gradient(135deg, #B8860B, #C9A661);
  box-shadow: 0 4px 14px rgba(201,166,97,0.3);
}
.isti-step-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.isti-step-title { font-size: 1rem; font-weight: 700; color: #1A1A2E; }
.isti-step-tag {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: #F3F0EA; color: #8896A7;
}
.isti-step-tag.obligatoire { background: rgba(45,95,79,0.1); color: #2D5F4F; }
.isti-step-tag.sunnah { background: rgba(201,166,97,0.15); color: #8B6914; }
.isti-step-brief { font-size: 0.88rem; color: #4A5568; line-height: 1.6; }
.isti-step-detail {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E4DDD0;
}
.isti-step.expanded .isti-step-detail { display: block; }
.isti-arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: #2D5F4F;
  direction: rtl;
  line-height: 2;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(45,95,79,0.04), rgba(201,166,97,0.05));
  border-radius: 12px;
  border: 1px solid rgba(201,166,97,0.15);
  margin-bottom: 0.85rem;
}
.isti-translit {
  font-size: 0.84rem; color: #8896A7;
  font-style: italic; text-align: center;
  margin-bottom: 0.6rem; line-height: 1.7;
}
.isti-detail-text {
  font-size: 0.88rem; color: #4A5568;
  line-height: 1.75; margin-bottom: 0.5rem;
}
.isti-detail-text strong { color: #2D5F4F; }
.isti-dua-card {
  background: linear-gradient(145deg, #0D2318, #1A3D33);
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  margin-top: 0.5rem;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(13,35,24,0.3);
}
.isti-dua-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,166,97,0.1), transparent 60%);
  pointer-events: none;
}
.isti-dua-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #E0C07A; opacity: 0.7;
  margin-bottom: 1.25rem;
}
.isti-dua-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.75rem;
  color: #E0C07A;
  direction: rtl;
  line-height: 2.2;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.isti-dua-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,166,97,0.25), transparent);
  margin: 1.25rem 0;
}
.isti-dua-translit {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  font-style: italic; text-align: center;
  line-height: 1.8; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.isti-dua-translation {
  font-size: 0.9rem; color: rgba(255,255,255,0.75);
  line-height: 1.85; text-align: center;
  position: relative; z-index: 1;
}
.isti-dua-translation em { color: #E0C07A; font-style: normal; font-weight: 600; }
.isti-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.isti-tip {
  background: #FFFFFF;
  border: 1px solid #E4DDD0;
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.3s;
}
.isti-tip:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,95,79,0.08); }
.isti-tip-icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.isti-tip-title { font-size: 0.9rem; font-weight: 700; color: #1A1A2E; margin-bottom: 0.3rem; }
.isti-tip-text { font-size: 0.8rem; color: #4A5568; line-height: 1.6; }
.isti-hadith {
  background: #FDF6E3;
  border: 1.5px solid rgba(201,166,97,0.25);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  margin-top: 0.5rem;
}
.isti-hadith-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.5rem; color: #2D5F4F;
  direction: rtl; line-height: 2;
  margin-bottom: 0.75rem;
}
.isti-hadith-text {
  font-size: 0.9rem; color: #4A5568;
  line-height: 1.75; font-style: italic;
  margin-bottom: 0.5rem;
}
.isti-hadith-ref {
  font-size: 0.75rem; font-weight: 700;
  color: #C9A661; letter-spacing: 0.06em;
}
@media (max-width: 600px) {
  .isti-hero { padding: 2rem 1.5rem; }
  .isti-arabic-title { font-size: 2.2rem; }
  .isti-step { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; }
  .isti-tips { grid-template-columns: 1fr; }
  .isti-dua-arabic { font-size: 1.4rem; }
}

/* ============================================================
   CARTE ISTIKHARA V3 — CSS
   ============================================================ */

.isti-v3 {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow:
    0 0 0 1px rgba(180,150,80,0.2),
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 50px rgba(0,0,0,0.1);
}
.iv3-bismillah {
  background: linear-gradient(135deg, #0F2318, #1C3D28);
  padding: 1.1rem 2rem;
  text-align: center;
}
.iv3-bismi-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: rgba(201,166,97,0.85);
  letter-spacing: 0.08em;
}
.iv3-title-section {
  background: linear-gradient(170deg, #132B1E, #1C3D28, #122A1C);
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.iv3-geo {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(201,166,97,1) 0deg 10deg,
    transparent 10deg 45deg
  );
  background-size: 60px 60px;
  pointer-events: none;
}
.iv3-gold-line {
  display: flex; align-items: center; gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.iv3-gl-segment {
  height: 1px; width: 50px;
  background: linear-gradient(to right, transparent, rgba(201,166,97,0.5));
}
.iv3-gl-segment:last-child {
  background: linear-gradient(to left, transparent, rgba(201,166,97,0.5));
}
.iv3-gl-diamond {
  width: 6px; height: 6px;
  background: rgba(201,166,97,0.6);
  transform: rotate(45deg);
}
.iv3-gl-dot {
  width: 3px; height: 3px;
  background: rgba(201,166,97,0.4);
  border-radius: 50%;
}
.iv3-type-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(201,166,97,0.1);
  border: 1px solid rgba(201,166,97,0.25);
  border-radius: 2px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(201,166,97,0.8);
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.iv3-main-arabic {
  font-family: 'Amiri', serif;
  font-size: 3rem;
  color: #C9A661;
  direction: rtl;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 60px rgba(201,166,97,0.2);
  position: relative; z-index: 1;
}
.iv3-latin-name {
  font-size: 1.4rem; font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  position: relative; z-index: 1;
}
.iv3-latin-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  position: relative; z-index: 1;
}
.iv3-definition {
  padding: 1.5rem 2rem;
  background: #FAFAF8;
  border-bottom: 1px solid #EEE9E0;
  display: flex; gap: 1rem; align-items: flex-start;
}
.iv3-def-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #1C3D28, #2D5F4F);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28,61,40,0.2);
}
.iv3-def-text {
  font-size: 0.88rem;
  color: #4A5568;
  line-height: 1.8;
}
.iv3-def-text strong { color: #1C3D28; font-weight: 700; }
.iv3-hadith {
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, #FBF7EE, #FDF8F0);
  border-bottom: 1px solid #EEE9E0;
  position: relative;
}
.iv3-hadith::before {
  content: '"';
  position: absolute;
  font-family: 'Amiri', serif;
  font-size: 6rem;
  color: rgba(201,166,97,0.1);
  top: -1rem; left: 1.2rem;
  line-height: 1;
  pointer-events: none;
}
.iv3-hadith-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.iv3-hadith-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #C9A661;
}
.iv3-hadith-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: #1C3D28;
  direction: rtl;
  line-height: 2;
  text-align: right;
  margin-bottom: 0.6rem;
}
.iv3-hadith-fr {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.75;
  font-style: italic;
  border-left: 2px solid rgba(201,166,97,0.4);
  padding-left: 0.85rem;
  margin-bottom: 0.5rem;
}
.iv3-hadith-ref {
  font-size: 0.7rem; font-weight: 700;
  color: #C9A661;
  letter-spacing: 0.05em;
}
.iv3-keys {
  padding: 1.4rem 2rem;
  background: #FFFFFF;
  border-bottom: 1px solid #EEE9E0;
}
.iv3-keys-title {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #AAA; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.iv3-keys-title::after {
  content: ''; flex: 1; height: 1px;
  background: #EEE;
}
.iv3-keys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.iv3-key {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #F7F5F1;
  border-radius: 10px;
  border: 1px solid #EEE9E0;
  transition: all 0.25s;
}
.iv3-key:hover {
  background: #F0EBE0;
  border-color: rgba(201,166,97,0.3);
  transform: translateY(-1px);
}
.iv3-key-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.iv3-key-icon.green { background: rgba(28,61,40,0.1); }
.iv3-key-icon.gold  { background: rgba(201,166,97,0.15); }
.iv3-key-val { font-size: 0.85rem; font-weight: 700; color: #1A1A2E; }
.iv3-key-lbl { font-size: 0.7rem; color: #999; margin-top: 0.1rem; }
.iv3-action {
  padding: 1.5rem 2rem;
  background: #FFFFFF;
}
.iv3-btn {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, #0F2318, #1C3D28);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.75rem;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 6px 20px rgba(15,35,24,0.3);
  position: relative; overflow: hidden;
}
.iv3-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,166,97,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.iv3-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15,35,24,0.35);
}
.iv3-btn:hover::before { opacity: 1; }
.iv3-btn-left {
  display: flex; flex-direction: column;
  align-items: flex-start; flex: 1;
}
.iv3-btn-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(201,166,97,0.7); margin-bottom: 0.15rem;
}
.iv3-btn-text { font-size: 0.95rem; font-weight: 700; color: white; }
.iv3-btn-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(201,166,97,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  transition: transform 0.3s;
}
.iv3-btn:hover .iv3-btn-icon-wrap { transform: translateX(5px); }
.iv3-footer {
  padding: 0.75rem 2rem;
  background: #F7F5F1;
  border-top: 1px solid #EEE9E0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.iv3-footer-ornament { color: rgba(201,166,97,0.5); font-size: 0.55rem; }
.iv3-footer-text {
  font-size: 0.68rem; color: #AAA;
  font-style: italic;
}
.iv3-footer-text span { color: #C9A661; font-style: normal; font-weight: 600; }