/* =====================================================================
   CSS POUR LA PAGE LECTURE - ALIGNEMENT DES 4 MODULES
   À ajouter dans ton fichier CSS principal ou créer lecture-page.css
   ===================================================================== */

/* ===== CONTENEUR PAGE LECTURE ===== */
#page-lecture {
    background: linear-gradient(135deg, #F9FAFB 0%, #F0FDF4 100%);
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

/* ===== HERO SECTION ===== */
.lecture-hero {
    max-width: 1400px;
    margin: 0 auto 3rem;
    text-align: center;
}

.lecture-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.lecture-hero-title {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #065F46;
    margin: 0 0 0.5rem;
}

.lecture-hero-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin: 0;
}

/* ===== GRILLE DES 4 MODULES ===== */
.lecture-modules-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* ===== CARTE MODULE ===== */
.lecture-module-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Barre colorée en haut */
.lecture-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10B981, #059669);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.lecture-module-card:hover::before {
    transform: scaleX(1);
}

.lecture-module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Variantes de couleurs pour chaque module */
.lecture-module-card.coran::before {
    background: linear-gradient(90deg, #10B981, #059669);
}

.lecture-module-card.memorisation::before {
    background: linear-gradient(90deg, #3B82F6, #1E40AF);
}

.lecture-module-card.invocations::before {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.lecture-module-card.hadiths::before {
    background: linear-gradient(90deg, #8B5CF6, #6366F1);
}

/* ===== ICÔNE DU MODULE ===== */
.module-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.lecture-module-card:hover .module-icon-wrapper {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.module-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

/* Variantes d'icônes */
.lecture-module-card.coran .module-icon-wrapper {
    background: linear-gradient(135deg, #10B981, #059669);
}

.lecture-module-card.memorisation .module-icon-wrapper {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
}

.lecture-module-card.invocations .module-icon-wrapper {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.lecture-module-card.hadiths .module-icon-wrapper {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
}

/* ===== CONTENU DU MODULE ===== */
.module-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.module-title-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: #10B981;
    margin-bottom: 0.75rem;
    direction: rtl;
}

.lecture-module-card.memorisation .module-title-arabic {
    color: #3B82F6;
}

.lecture-module-card.invocations .module-title-arabic {
    color: #F59E0B;
}

.lecture-module-card.hadiths .module-title-arabic {
    color: #8B5CF6;
}

.module-description {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/* ===== STATS DU MODULE ===== */
.module-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
}

.lecture-module-card.memorisation .stat-value {
    color: #3B82F6;
}

.lecture-module-card.invocations .stat-value {
    color: #F59E0B;
}

.lecture-module-card.hadiths .stat-value {
    color: #8B5CF6;
}

.stat-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ===== BADGE (optionnel) ===== */
.module-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.lecture-module-card.memorisation .module-badge {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
}

.lecture-module-card.invocations .module-badge {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.lecture-module-card.hadiths .module-badge {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
}

/* ===== FLÈCHE ===== */
.module-arrow {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #10B981;
    transition: all 0.3s ease;
}

.lecture-module-card:hover .module-arrow {
    transform: translateX(6px);
}

.lecture-module-card.memorisation .module-arrow {
    color: #3B82F6;
}

.lecture-module-card.invocations .module-arrow {
    color: #F59E0B;
}

.lecture-module-card.hadiths .module-arrow {
    color: #8B5CF6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .lecture-modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #page-lecture {
        padding: 1.5rem 1rem;
    }

    .lecture-hero {
        margin-bottom: 2rem;
    }

    .lecture-hero-icon {
        font-size: 3rem;
    }

    .lecture-hero-title {
        font-size: 1.75rem;
    }

    .lecture-hero-subtitle {
        font-size: 0.95rem;
    }

    .lecture-modules-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .lecture-module-card {
        padding: 2rem 1.5rem;
    }

    .module-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .module-icon {
        font-size: 2rem;
    }

    .module-stats {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .lecture-hero-title {
        font-size: 1.5rem;
    }

    .module-title {
        font-size: 1.15rem;
    }

    .module-title-arabic {
        font-size: 1.3rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lecture-module-card {
    animation: cardFadeIn 0.5s ease backwards;
}

.lecture-module-card:nth-child(1) { animation-delay: 0.1s; }
.lecture-module-card:nth-child(2) { animation-delay: 0.2s; }
.lecture-module-card:nth-child(3) { animation-delay: 0.3s; }
.lecture-module-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== EFFET BRILLANCE AU SURVOL ===== */
.module-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}

.lecture-module-card:hover .module-shine {
    left: 150%;
}