/* ===============================================
   🎨 HAMIL AL-QURAN WEBSITE STYLES
   ===============================================
   Design basé sur l'application Flutter
   Gradient signature: #667eea → #764ba2 → #6B73FF → #000428
   Accent doré: #FFD700, #FF8C00, #FF6B6B
   =============================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gradient signature de l'application */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #6B73FF 70%, #000428 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FF6B6B 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%);
    
    /* Couleurs principales */
    --primary-blue: #667eea;
    --primary-purple: #764ba2;
    --primary-indigo: #6B73FF;
    --primary-dark: #000428;
    --accent-gold: #FFD700;
    --accent-orange: #FF8C00;
    --accent-coral: #FF6B6B;
    
    /* Glassmorphisme */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(15px);
    
    /* Typographie */
    --font-primary: 'Montserrat', sans-serif;
    --font-arabic: 'Amiri', serif;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-glow: 0 20px 60px rgba(102, 126, 234, 0.4);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-left {
    animation: fadeLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Delays pour animations échelonnées */
[data-delay="100"] { animation-delay: 100ms; }
[data-delay="200"] { animation-delay: 200ms; }
[data-delay="300"] { animation-delay: 300ms; }
[data-delay="400"] { animation-delay: 400ms; }
[data-delay="500"] { animation-delay: 500ms; }
[data-delay="600"] { animation-delay: 600ms; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(0, 4, 40, 0.95);
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Nouveau design du logo inspiré de l'application Flutter */
.nav-brand .app-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo-circle .logo-content {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 25%, 
        #FF8C00 50%, 
        #DAA520 75%, 
        #B8860B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(218, 165, 32, 0.4),
        0 2px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-logo-circle .logo-content:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(218, 165, 32, 0.5),
        0 3px 12px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo-content i {
    font-size: 20px;
    color: white;
    margin-bottom: 2px;
}

.app-name-arabic {
    font-size: 9px;
    font-weight: 900;
    color: white;
    font-family: 'Amiri', serif;
    text-align: center;
    line-height: 1.0;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 16px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gradient-gold);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-logo {
    text-align: center;
    margin-bottom: 40px;
}

/* Logo héro avec le même design que la navbar */
.hero-app-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-app-logo-circle .hero-logo-content {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 25%, 
        #FF8C00 50%, 
        #DAA520 75%, 
        #B8860B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(218, 165, 32, 0.4),
        0 4px 15px rgba(255, 215, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 3s infinite;
}

.hero-app-logo-circle .hero-logo-content:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px rgba(218, 165, 32, 0.5),
        0 6px 20px rgba(255, 215, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.hero-logo-content i {
    font-size: 40px;
    color: white;
    margin-bottom: 8px;
}

.hero-app-name-arabic {
    font-size: 14px;
    font-weight: 900;
    color: white;
    font-family: 'Amiri', serif;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.hero-title {
    font-family: var(--font-arabic);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-elastic);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: var(--glass-backdrop);
    transition: var(--transition-smooth);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    transform: rotate(-5deg);
    transition: var(--transition-smooth);
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 15px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    background: #000;
}

/* Mini carrousel pour la maquette iPhone */
.phone-swiper {
    width: 100%;
    height: 100%;
}

.phone-swiper .swiper-wrapper {
    height: 100%;
}

.phone-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.phone-swiper .swiper-slide .screen-image {
    border-radius: 0;
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%, 
        rgba(0,0,0,0.1) 100%);
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 15px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTIONS COMMUNES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 120px 0;
    background: #f8f9fa;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ddd" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-elastic);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots {
    padding: 120px 0;
    background: #f8f9fa;
    position: relative;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ddd" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Styles pour Swiper.js carrousel */
.screenshots-swiper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.screenshots-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.screenshots-swiper .swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px 30px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Personnalisation Swiper navigation */
.screenshots-swiper .swiper-button-next,
.screenshots-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    color: white !important;
    transition: var(--transition-smooth);
}

.screenshots-swiper .swiper-button-next:hover,
.screenshots-swiper .swiper-button-prev:hover {
    background: var(--gradient-gold);
    transform: scale(1.1);
}

.screenshots-swiper .swiper-button-next::after,
.screenshots-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Personnalisation Swiper pagination */
.screenshots-swiper .swiper-pagination {
    bottom: 20px;
}

.screenshots-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition-smooth);
}

.screenshots-swiper .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    padding: 120px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download .section-title {
    color: white;
}

.download .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: var(--transition-elastic);
    min-width: 200px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.btn-icon {
    font-size: 36px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.btn-title {
    font-size: 18px;
    font-weight: 600;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.info-item i {
    color: var(--accent-gold);
    font-size: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    line-height: 1.7;
    opacity: 0.8;
    max-width: 300px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--gradient-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    opacity: 0.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .phone-frame {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 80px 15px 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features,
    .screenshots,
    .download {
        padding: 80px 0;
    }
}

/* ===== TUTORIALS SECTION ===== */
.tutorials {
    padding: 120px 0;
    background: white;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tutorial-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid #f0f0f0;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.tutorial-video {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.tutorial-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.tutorial-info {
    padding: 25px;
    text-align: center;
}

.tutorial-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.tutorial-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ===== PRIVACY SECTION ===== */
.privacy {
    padding: 120px 0;
    background: #f8f9fa;
    position: relative;
}

.privacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="privacy-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ddd" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23privacy-grid)"/></svg>');
    opacity: 0.3;
}

.privacy-content {
    position: relative;
    z-index: 1;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.privacy-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.privacy-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.privacy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.privacy-icon i {
    font-size: 36px;
    color: white;
}

.privacy-feature h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.privacy-feature p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

.privacy-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 15px 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-2px);
}

/* ===== PAGES STYLES (Contact, FAQ, About) ===== */
.page-content {
    padding: 120px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.page-description {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-footer {
    text-align: center;
    margin-top: 80px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 36px;
    color: white;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: #8b6914;
    text-decoration: underline;
}

.contact-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.contact-form-card {
    padding: 40px;
}

.contact-form-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition-smooth);
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: white;
}

.contact-form button {
    width: 100%;
    margin-top: 20px;
}

/* ===== FAQ PAGE ===== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.faq-category-btn {
    padding: 12px 25px;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-category-btn.active,
.faq-category-btn:hover {
    background: var(--accent-gold);
    color: white;
}

.faq-section {
    display: block;
}

.faq-section.hidden {
    display: none;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item.active {
    box-shadow: var(--shadow-glow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    font-size: 18px;
    margin-left: 15px;
}

.faq-answer {
    padding: 0 30px 25px;
    display: none;
    background: #f8f9fa;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ===== ABOUT PAGE ===== */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.about-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 42px;
    color: white;
}

.about-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

.about-features {
    margin-bottom: 80px;
}

.about-features h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 28px;
    color: white;
}

.value-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.about-tech {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 60px;
}

.about-tech h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
}

.tech-info p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.tech-feature:hover {
    background: #e9ecef;
}

.tech-feature i {
    font-size: 24px;
    color: var(--accent-gold);
}

.tech-feature span {
    font-weight: 600;
    color: #333;
}

.about-contact {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.about-contact h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-contact p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    
    .page-description {
        font-size: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .faq-categories {
        gap: 10px;
    }
    
    .faq-category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-features {
        grid-template-columns: 1fr;
    }
}

/* ===== PRIVACY POLICY PAGE ===== */
.privacy-app-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.privacy-app-logo-circle .privacy-logo-content {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 25%, 
        #FF8C00 50%, 
        #DAA520 75%, 
        #B8860B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 3px 12px rgba(218, 165, 32, 0.4),
        0 2px 6px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.privacy-app-logo-circle .privacy-logo-content:hover {
    transform: scale(1.05);
    box-shadow: 
        0 5px 18px rgba(218, 165, 32, 0.5),
        0 3px 10px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.privacy-logo-content i {
    font-size: 18px;
    color: white;
    margin-bottom: 1px;
}

.privacy-app-name-arabic {
    font-size: 8px;
    font-weight: 900;
    color: white;
    font-family: 'Amiri', serif;
    text-align: center;
    line-height: 1.0;
    letter-spacing: 0.3px;
    text-shadow: none;
}

/* Bouton de retour élégant */
.home-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background: var(--gradient-gold);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.3);
    color: white;
}

.home-button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.home-button:hover i {
    transform: translateX(-3px);
}

.home-button span {
    font-family: var(--font-primary);
}

/* Navbar de la page privacy - alignement horizontal forcé */
.navbar-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0;
    width: 100%;
    flex-direction: row !important;
}

.navbar-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.navbar-nav {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    margin-left: auto;
}

.privacy-header {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.privacy-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.privacy-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 20px;
    font-family: var(--font-arabic);
}

.privacy-date {
    font-size: 16px;
    opacity: 0.8;
}

.privacy-content {
    padding: 80px 0;
    background: white;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 10px;
}

.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 30px 0 15px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 15px;
}

.content-section ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-section ol li {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 8px;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.privacy-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 12px;
    padding: 8px 0;
}

.privacy-list.no-collect li i {
    color: #e53e3e;
}

.privacy-list.collect li i {
    color: #38a169;
}

.privacy-list li i {
    font-size: 18px;
    min-width: 20px;
}

.highlight-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.highlight-box.success {
    background: rgba(56, 161, 105, 0.1);
    border-color: rgba(56, 161, 105, 0.3);
    color: #2d7d32;
}

.highlight-box.error {
    background: rgba(229, 62, 62, 0.1);
    border-color: rgba(229, 62, 62, 0.3);
    color: #c62828;
}

.highlight-box i {
    font-size: 24px;
    color: var(--accent-gold);
}

.highlight-box.success i {
    color: #38a169;
}

.highlight-box.error i {
    color: #e53e3e;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #4a5568;
}

.contact-item i {
    color: var(--accent-gold);
    font-size: 18px;
    min-width: 20px;
}

.quran-quote {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.quote-container .arabic-text {
    font-family: var(--font-arabic);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
    direction: rtl;
}

.quote-container .translation {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 10px;
    opacity: 0.9;
}

.quote-container .reference {
    font-size: 14px;
    opacity: 0.8;
}

.privacy-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.privacy-footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.privacy-footer .footer-logo i {
    font-size: 32px;
    color: var(--accent-gold);
}

.privacy-footer .footer-logo span {
    font-family: var(--font-arabic);
    font-size: 20px;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid var(--accent-gold);
    border-radius: 25px;
    transition: var(--transition-smooth);
}

.back-link:hover {
    background: var(--accent-gold);
    color: white;
}

/* Responsive pour la page privacy */
@media (max-width: 768px) {
    .privacy-title {
        font-size: 36px;
    }
    
    .privacy-subtitle {
        font-size: 18px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .quote-container .arabic-text {
        font-size: 20px;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ===== HERO QUOTE SECTION ===== */
.hero-quote {
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.quote-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.quote-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.quote-text {
    font-family: var(--font-arabic);
    font-size: 26px; /* Police plus grande pour meilleure lisibilité */
    line-height: 2.0; /* Espacement très aéré entre les lignes */
    color: var(--accent-gold);
    font-weight: 600;
    direction: rtl;
    unicode-bidi: bidi-override;
    margin-bottom: 25px;
    letter-spacing: 2px; /* Espacement généreux entre les lettres */
    word-spacing: 4px; /* Espacement bien aéré entre les mots */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.quote-translation {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 20px;
    padding: 0 20px;
}

.quote-reference {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
    line-height: 1.5;
}

/* Responsive pour la citation */
@media (max-width: 768px) {
    .quote-text {
        font-size: 22px; /* Plus petit sur mobile mais toujours bien lisible */
        line-height: 1.9;
        letter-spacing: 1.5px;
        word-spacing: 3px;
    }
    
    .quote-translation {
        font-size: 16px;
    }
    
    .quote-content {
        padding: 30px 20px;
    }
}
