@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

/* Variables CSS - Design System Violet/Or */
:root {
    /* Palette Violet/Or */
    --primary-purple: #7c3aed;
    --secondary-purple: #8b5cf6;
    --light-purple: #a78bfa;
    --dark-purple: #5b21b6;
    --primary-gold: #f59e0b;
    --secondary-gold: #fbbf24;
    --light-gold: #fcd34d;
    --dark-gold: #d97706;
    
    /* Couleurs de fond */
    --bg-primary: #0f0a1a;
    --bg-secondary: #1a1229;
    --bg-tertiary: #251b37;
    --bg-card: #2d1b45;
    
    /* Couleurs de texte */
    --text-primary: #e5e7eb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    /* Effets */
    --shadow-primary: 0 10px 25px rgba(124, 58, 237, 0.2);
    --shadow-gold: 0 10px 25px rgba(245, 158, 11, 0.2);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
    --glow-gold: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.arabic-text {
    font-family: 'Amiri', serif;
    direction: rtl;
    text-align: right;
}


/* Boutons flottants */
.floating-buttons {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.floating-btn:hover {
    background: #4478e7;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

/* Spécifique au bouton Cast (2e enfant) */
.floating-btn:nth-child(2) {
    background: rgba(16, 185, 129, 0.9);
}

.floating-btn:nth-child(2):hover {
    background: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-purple);
}

/* App Container */
.app {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.app::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--primary-gold);
    font-size: 1.25rem;
    cursor: pointer;
     box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  transition: all 0.3s ease;
  animation: glowPulse 3s infinite ease-in-out;
}

.mobile-menu-btn:hover {
    background: var(--primary-purple);
    color: var(--primary-gold);
    box-shadow: var(--glow-purple);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(124, 58, 237, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
   
}
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3),
                0 0 20px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.7),
                0 0 40px rgba(251, 191, 36, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3),
                0 0 20px rgba(251, 191, 36, 0.2);
  }
   }
.sidebar.hidden {
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    color: var(--primary-gold);
    background: rgba(245, 158, 11, 0.1);
}

/* Navigation Menu */
.sidebar-menu {
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    border-right: 3px solid transparent;
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--primary-gold);
    border-right-color: var(--primary-purple);
    transform: translateX(-3px);
}

.nav-icon {
    font-size: 1.1rem;

    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

/* Submenu */
.has-submenu .nav-link {
    justify-content: space-between;
}

.submenu-arrow {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(124, 58, 237, 0.1);
    transition: max-height 0.3s ease;
}

.has-submenu.open .submenu {
    max-height: 300px;
}

.submenu-item {
    margin-bottom: 0.25rem;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 2px solid transparent;
}

.submenu-link:hover {
    background: rgba(241, 172, 51, 0.1);
    color: var(--primary-gold);
    border-right-color: var(--primary-gold);
    transform: translateX(-2px);
}

.submenu-icon {
    font-size: 0.875rem;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.submenu-text {
    font-size: 0.875rem;
    font-weight: 400;
}

/* Main Content - Full Width */
.main-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 2rem;
}

.arabic-title {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: var(--glow-purple);
    animation: glow 3s ease-in-out infinite alternate;
}

.french-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.Version-title{
  display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: violet;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--light-purple));
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-gold), var(--light-gold));
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

/* Sections */
.content-section {
    padding: 6rem 2rem;
    position: relative;
}

.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.mots-section {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
}

.lettres-section {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
}

.sourates-section {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.quote-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 20px;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-wrapper {
    margin-top: 2rem;
}

/* Grids */
.features-grid,
.content-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards */
.feature-card,
.content-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.content-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: var(--shadow-gold);
}

.feature-card::before,
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before,
.content-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--glow-purple);
}

.feature-card h3,
.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p,
.content-card p {
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.1) 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-primary);
}

.arabic-verse {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.quote-translation {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-reference {
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 500;
}

/* Content specific styles */
.mot-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mot-arabe {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mot-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mot-traduction {
    font-size: 1.25rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mot-signification {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mot-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-purple);
    font-size: 0.875rem;
}

.occurences {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Lettres styles */
.lettre-display {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.lettre-arabe {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.lettre-decoration {
    position: absolute;
    
    top: -0.5rem;
    left: -0.5rem;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.lettre-nom {
    font-size: 1.25rem;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.sourates-container {
    text-align: left;
}

.sourates-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sourates-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sourate-tag {
    background: rgba(124, 58, 237, 0.2);
    color: var(--secondary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Sourates styles */
.sourate-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sourate-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.sourate-names {
    flex: 1;
}

.sourate-nom-arabe {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sourate-nom-francais {
    font-size: 1.125rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.sourate-details {
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.detail-icon {
    width: 16px;
    color: var(--secondary-purple);
}

.sourate-theme {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.theme-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.theme-text {
    color: var(--secondary-purple);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-contact h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-contact p:hover {
    color: var(--primary-gold);
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-copyright {
    color: var(--text-muted);
    text-align: right;
}

/* Animations */
@keyframes glow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    
    .arabic-title {
        font-size: 3rem;
    }
    
    .french-title {
        font-size: 2rem;
    }
    
    .Version-title {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-card {
        padding: 2rem;
    }
    
    .arabic-verse {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .content-section {
        padding: 4rem 1rem;
    }
    
    .features-section {
        padding: 4rem 1rem;
    }
    
    .quote-section {
        padding: 4rem 1rem;
    }
}

