/* ============================================
   ZAMANTOON - Ultra Modern Design System
   Multi-language Support - Cairo Font Only
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #FF8C00;
    --primary-light: #FFB347;
    --primary-dark: #E67300;
    --secondary: #00D4FF;
    --secondary-dark: #00A3CC;
    --accent: #FF4D6D;
    --bg-deep: #050810;
    --bg-dark: #0A0F1C;
    --bg-card: rgba(15, 20, 35, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #B8C4D9;
    --text-muted: #6B7A94;
    --gradient-primary: linear-gradient(135deg, #FF8C00 0%, #FF4D6D 50%, #FF8C00 100%);
    --gradient-hero: linear-gradient(135deg, #FF8C00 0%, #FF6B35 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(255, 140, 0, 0.08) 0%, transparent 50%),
        radial-gradient(at 80% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(at 0% 50%, rgba(255, 77, 109, 0.05) 0%, transparent 50%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 140, 0, 0.3);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* Cairo Font for Everything */
body, button, input, select, textarea {
    font-family: 'Cairo', sans-serif !important;
}

body { 
    background: var(--bg-deep); 
    color: var(--text-primary); 
    line-height: 1.7; 
    overflow-x: hidden; 
    min-height: 100vh; 
}

body.ltr { direction: ltr; }
body.ltr .hero-content { text-align: left; }
body.ltr .stats { justify-content: flex-start; }
body.ltr .btn-primary i, body.ltr .btn-secondary i { margin-left: 0; margin-right: 8px; }
::selection { background: rgba(255, 140, 0, 0.3); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: var(--radius-full); }

/* ============================================
   ENHANCED LANGUAGE SELECTOR
   ============================================ */
.lang-selector {
    position: fixed;
    /* On le place en bas pour ne pas cacher le menu */
    bottom: 30px; 
    top: auto;
    /* En Arabe (RTL), on le met à Droite */
    right: 30px;
    left: auto;
    z-index: 1100;
}

/* En Français/Anglais (LTR), on inverse : Bas à Gauche */
/* Note : Le lecteur de musique devra changer de place en LTR pour ne pas se superposer */
body.ltr .lang-selector {
    right: auto;
    left: 30px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 50px; /* Plus rond et moderne */
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.lang-current:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 140, 0, 0.1);
}

/* Dropdown qui s'ouvre vers le HAUT */
.lang-dropdown {
    position: absolute;
    /* Important : s'ouvre au-dessus du bouton */
    bottom: calc(100% + 15px); 
    top: auto;
    right: 0; /* Aligné à droite par défaut (Arabe) */
    left: auto;
    
    background: rgba(10, 15, 28, 0.98);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 20px;
    min-width: 220px;
    
    opacity: 0;
    visibility: hidden;
    /* Animation venant du bas */
    transform: translateY(10px) scale(0.95);
    transition: var(--transition-smooth);
    
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform-origin: bottom right;
}

/* En LTR, le dropdown s'aligne à gauche */
body.ltr .lang-dropdown {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-options {
    padding: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: right;
    position: relative;
}

body.ltr .lang-option {
    text-align: left;
}

.lang-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 77, 109, 0.05));
    border-radius: 14px;
    opacity: 0;
    transition: var(--transition-fast);
}

.lang-option:hover::before {
    opacity: 1;
}

.lang-option:hover {
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--text-primary);
}

.lang-option.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 77, 109, 0.08));
}

.lang-option .lang-flag-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Important pour couper les coins de l'image */
}

.lang-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.lang-native {
    font-weight: 700;
    font-size: 0.95rem;
}

.lang-english {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lang-check {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-bounce);
}

.lang-check i {
    font-size: 1.1rem;
    color: var(--primary);
}

.lang-option.active .lang-check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   ENHANCED MUSIC PLAYER
   ============================================ */
.music-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1100;
    display: none;
}

body.ltr .music-player {
    left: auto;
    right: 30px;
}

.music-player.visible {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInMusic 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInMusic {
    from { opacity: 0; transform: translateY(30px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.music-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 
        0 8px 32px rgba(255, 140, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.music-toggle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.music-player.playing .music-toggle::before {
    opacity: 0.3;
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0; }
}

.music-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 40px rgba(255, 140, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.music-toggle i {
    transition: var(--transition-fast);
}

.music-player.playing .music-toggle i {
    opacity: 0;
    transform: scale(0);
}

.music-waves {
    position: absolute;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.music-player.playing .music-waves {
    opacity: 1;
    transform: scale(1);
}

.music-waves span {
    width: 4px;
    background: white;
    border-radius: 4px;
    animation: musicWave 1s ease-in-out infinite;
}

.music-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-waves span:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.music-waves span:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.music-waves span:nth-child(4) { height: 16px; animation-delay: 0.45s; }

@keyframes musicWave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.music-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

body.ltr .music-tooltip {
    transform: translateX(10px);
}

.music-player:hover .music-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.music-tooltip i {
    color: var(--primary);
}

/* ============================================
   ENHANCED COMING SOON BANNER
   ============================================ */
.coming-soon-banner {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(10, 15, 28, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.coming-soon-banner.visible {
    display: flex;
}

.coming-soon-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 140, 0, 0.05));
    animation: bannerGlow 3s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.coming-soon-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.coming-soon-icon i {
    font-size: 1.4rem;
    color: var(--secondary);
    animation: hourglassFlip 2s ease-in-out infinite;
}

@keyframes hourglassFlip {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.coming-soon-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.coming-soon-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.coming-soon-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.coming-soon-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(255, 140, 0, 0.5); }
}

.coming-soon-badge i {
    animation: rocketShake 1s ease-in-out infinite;
}

@keyframes rocketShake {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-3px) rotate(10deg); }
}

/* Background Effects */
.bg-gradient { position: fixed; inset: 0; background: var(--gradient-mesh); z-index: -2; pointer-events: none; }
.bg-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.6; animation: float-shape 20s ease-in-out infinite; }
.shape-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%); top: -200px; right: -100px; }
.shape-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%); bottom: -200px; left: -200px; animation-delay: -10s; }
@keyframes float-shape { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, 20px) scale(0.95); } }
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); opacity: 0.015; pointer-events: none; z-index: 1000; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.gradient-text { background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: var(--space-sm) 0; transition: var(--transition-smooth); }
.navbar::before { content: ''; position: absolute; inset: 0; background: rgba(5, 8, 16, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--bg-glass-border); opacity: 0; transition: var(--transition-smooth); }
.navbar.scrolled::before { opacity: 1; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.logo { position: relative; z-index: 1001; }
.logo img { height: 100px; width: auto; filter: drop-shadow(0 4px 20px rgba(255, 140, 0, 0.3)); transition: var(--transition-smooth); }
.logo img:hover { transform: scale(1.05); }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-links a:not(.btn-primary) { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; padding: var(--space-xs) 0; transition: var(--transition-fast); }
.nav-links a:not(.btn-primary)::before { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--gradient-hero); transition: var(--transition-smooth); transform: translateX(-50%); border-radius: var(--radius-full); }
.nav-links a:not(.btn-primary):hover { color: var(--text-primary); }
.nav-links a:not(.btn-primary):hover::before { width: 100%; }
.nav-toggle { display: none; position: relative; z-index: 1002; width: 48px; height: 48px; background: var(--bg-glass); border: 1px solid var(--bg-glass-border); border-radius: var(--radius-md); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; transition: var(--transition-smooth); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: var(--radius-full); transition: var(--transition-smooth); }
.nav-toggle.active { background: rgba(255, 140, 0, 0.15); border-color: var(--primary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 14px 32px; background: var(--gradient-hero); color: white; font-weight: 700; font-size: 1rem; text-decoration: none; border: none; border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition-smooth); box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(255, 140, 0, 0.4); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 14px 32px; background: var(--bg-glass); color: var(--text-primary); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid var(--bg-glass-border); border-radius: var(--radius-lg); cursor: pointer; backdrop-filter: blur(10px); transition: var(--transition-smooth); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-xl { padding: 20px 48px; font-size: 1.2rem; border-radius: var(--radius-xl); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.hero-content { position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 8px 20px; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); border-radius: var(--radius-full); color: var(--secondary); font-size: 0.875rem; font-weight: 700; margin-bottom: var(--space-lg); animation: pulse-badge 3s ease-in-out infinite; }
.badge::before { content: ''; width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes pulse-badge { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.2); } 50% { box-shadow: 0 0 20px 5px rgba(0, 212, 255, 0.1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--space-lg); line-height: 1.1; }
.hero-content p { font-size: 1.2rem; color: var(--text-secondary); max-width: 520px; margin-bottom: var(--space-xl); line-height: 1.8; }
.cta-group { display: flex; gap: var(--space-md); margin-bottom: var(--space-2xl); flex-wrap: wrap; }
.stats { display: flex; gap: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--bg-glass-border); }
.stat-item { text-align: center; }
.stat-item .count { display: block; font-size: 2rem; font-weight: 900; background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.stat-item .label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* Phone Mockup */
.hero-image { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-image::before { content: ''; position: absolute; width: 400px; height: 500px; background: radial-gradient(ellipse, rgba(255, 140, 0, 0.2) 0%, transparent 70%); filter: blur(60px); z-index: 0; animation: glow-pulse 4s ease-in-out infinite; }
@keyframes glow-pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }
.phone-mockup.realistic { position: relative; width: 320px; height: 660px; background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%); border-radius: 55px; padding: 12px; box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 80px rgba(255, 140, 0, 0.15); z-index: 1; animation: float-phone 6s ease-in-out infinite; }
@keyframes float-phone { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.phone-mockup .screen { width: 100%; height: 100%; background: #000; border-radius: 45px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.camera-sensor { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 35px; background: #000; border-radius: 25px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.camera-sensor::before { content: ''; width: 12px; height: 12px; background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(50, 50, 60, 0.8); }
.camera-sensor::after { content: ''; width: 8px; height: 8px; background: radial-gradient(circle at 30% 30%, #1a1a2a, #05050a); border-radius: 50%; }
.status-bar { height: 50px; padding: 15px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; color: white; font-size: 14px; font-weight: 600; z-index: 30; }
.status-bar .time { font-variant-numeric: tabular-nums; font-weight: 700; }
.status-icons { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.screen-content { flex: 1; position: relative; overflow: hidden; background: #000; }
.app-screenshot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.play-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(0, 0, 0, 0.3); cursor: pointer; transition: var(--transition-smooth); }
.play-overlay:hover { background: rgba(0, 0, 0, 0.45); }
.play-btn-pulse { width: 80px; height: 80px; background: linear-gradient(135deg, rgba(255, 140, 0, 0.95), rgba(255, 77, 109, 0.95)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; cursor: pointer; animation: pulse-play 2s ease-in-out infinite; box-shadow: 0 10px 40px rgba(255, 140, 0, 0.4); transition: var(--transition-smooth); }
.play-btn-pulse i { margin-left: 5px; }
.play-overlay:hover .play-btn-pulse { transform: scale(1.1); box-shadow: 0 15px 50px rgba(255, 140, 0, 0.5); }
.play-text { color: white; font-size: 14px; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(10px); transition: var(--transition-smooth); }
.play-overlay:hover .play-text { opacity: 1; transform: translateY(0); }
@keyframes pulse-play { 0%, 100% { box-shadow: 0 10px 40px rgba(255, 140, 0, 0.4), 0 0 0 0 rgba(255, 140, 0, 0.4); } 50% { box-shadow: 0 10px 40px rgba(255, 140, 0, 0.4), 0 0 0 20px rgba(255, 140, 0, 0); } }
.home-indicator-area { height: 35px; display: flex; align-items: center; justify-content: center; background: #000; padding-bottom: 8px; }
.home-indicator { width: 140px; height: 5px; background: rgba(255, 255, 255, 0.3); border-radius: 10px; }
.side-button { position: absolute; background: linear-gradient(180deg, #2a2a2a, #1a1a1a); border-radius: 2px; }
.side-button.power { right: -3px; top: 180px; width: 3px; height: 80px; border-radius: 0 3px 3px 0; }
.side-button.volume-up { left: -3px; top: 130px; width: 3px; height: 45px; border-radius: 3px 0 0 3px; }
.side-button.volume-down { left: -3px; top: 190px; width: 3px; height: 45px; border-radius: 3px 0 0 3px; }
.reflection { position: absolute; inset: 12px; border-radius: 45px; background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%); pointer-events: none; z-index: 200; }

/* Video Modal */
.video-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition-smooth); }
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal-overlay { position: absolute; inset: 0; background: rgba(5, 8, 16, 0.95); backdrop-filter: blur(30px); }
.video-modal-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; transform: scale(0.9) translateY(30px); transition: var(--transition-bounce); }
.video-modal.active .video-modal-content { transform: scale(1) translateY(0); }
.video-modal-close { position: absolute; top: -60px; right: -20px; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-md); color: white; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); z-index: 10; }
.video-modal-close:hover { background: rgba(255, 77, 109, 0.3); border-color: var(--accent); transform: rotate(90deg) scale(1.1); }
.phone-mockup.video-mockup { width: 340px; height: 700px; animation: none; }
.phone-mockup.video-mockup .screen.video-screen { display: flex; flex-direction: column; }
.video-container { flex: 1; position: relative; overflow: hidden; background: #000; border-radius: 45px 45px 0 0; }
.video-container video { width: 100%; height: 100%; object-fit: cover; object-position: top; background: #000; cursor: pointer; }
.video-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: var(--transition-fast); z-index: 15; }
.video-loader.active { opacity: 1; visibility: visible; }
.video-loader .spinner { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 18px; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%); display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px); transition: var(--transition-smooth); z-index: 20; }
.video-container:hover .video-controls, .video-container.controls-visible .video-controls { opacity: 1; transform: translateY(0); }
.control-btn { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.15); border: none; border-radius: 50%; color: white; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); flex-shrink: 0; }
.control-btn:hover { background: rgba(255, 140, 0, 0.6); transform: scale(1.1); }
.progress-container { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; cursor: pointer; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 10px; width: 0%; transition: width 0.1s linear; }
.time-display { color: white; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 45px; text-align: center; }

/* Features */
.features { padding: var(--space-2xl) 0; position: relative; }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-sm); }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.feature-card { background: var(--bg-card); border: 1px solid var(--bg-glass-border); border-radius: var(--radius-xl); padding: var(--space-xl); position: relative; overflow: hidden; transition: var(--transition-smooth); backdrop-filter: blur(10px); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-hero); opacity: 0; transition: var(--transition-smooth); }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(255, 140, 0, 0.3); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 140, 0, 0.1); }
.feature-card:hover::before { opacity: 1; }
.icon-box { width: 64px; height: 64px; background: rgba(255, 140, 0, 0.1); border: 1px solid rgba(255, 140, 0, 0.2); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); transition: var(--transition-smooth); }
.icon-box i { font-size: 1.5rem; background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feature-card:hover .icon-box { background: rgba(255, 140, 0, 0.15); transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 140, 0, 0.2); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: var(--space-sm); color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Screenshots */
.screenshots { padding: var(--space-2xl) 0; overflow: hidden; }
.screenshots-slider { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; padding: var(--space-lg) 0; }
.screenshot-item { width: 200px; height: 420px; background: linear-gradient(145deg, #1a1a1a, #0a0a0a); border-radius: 28px; padding: 8px; position: relative; cursor: pointer; transition: var(--transition-bounce); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); }
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.screenshot-item:hover { transform: scale(1.08) translateY(-15px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 140, 0, 0.2); }
.screenshot-item.active { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 140, 0, 0.15); }

/* Download CTA */
.download-cta { padding: var(--space-2xl) 0; }
.cta-box { background: linear-gradient(135deg, rgba(15, 20, 35, 0.9) 0%, rgba(10, 15, 25, 0.95) 100%); border: 1px solid var(--bg-glass-border); border-radius: var(--radius-xl); padding: var(--space-2xl); text-align: center; position: relative; overflow: hidden; backdrop-filter: blur(20px); }
.cta-box::before { content: ''; position: absolute; top: -100%; left: -100%; width: 300%; height: 300%; background: radial-gradient(circle at 30% 30%, rgba(255, 140, 0, 0.1) 0%, transparent 40%); animation: rotate-gradient 20s linear infinite; z-index: 0; }
@keyframes rotate-gradient { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: var(--space-md); }
.cta-box p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: var(--space-xl); max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
footer { background: rgba(5, 8, 16, 0.9); border-top: 1px solid var(--bg-glass-border); padding: var(--space-2xl) 0 var(--space-lg); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); }
.footer-logo img { height: 80px; opacity: 0.9; filter: drop-shadow(0 2px 10px rgba(255, 140, 0, 0.2)); transition: var(--transition-smooth); }
.footer-logo img:hover { opacity: 1; }
.social-links { display: flex; gap: var(--space-sm); }
.social-links a { width: 48px; height: 48px; background: var(--bg-glass); border: 1px solid var(--bg-glass-border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1.2rem; text-decoration: none; transition: var(--transition-smooth); }
.social-links a:hover { background: rgba(255, 140, 0, 0.15); border-color: rgba(255, 140, 0, 0.4); color: var(--primary); transform: translateY(-4px); }
.footer-bottom { text-align: center; padding-top: var(--space-lg); border-top: 1px solid var(--bg-glass-border); color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom p { margin-bottom: var(--space-xs); }
.footer-bottom i.fa-heart { color: var(--accent); animation: heartbeat 1.5s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.2); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition-smooth); }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(5, 8, 16, 0.95); backdrop-filter: blur(20px); }
.lightbox-content { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-xl); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox-close { position: absolute; top: -60px; right: 0; width: 50px; height: 50px; background: var(--bg-glass); border: 1px solid var(--bg-glass-border); border-radius: var(--radius-md); color: white; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.lightbox-close:hover { background: rgba(255, 77, 109, 0.2); border-color: var(--accent); transform: rotate(90deg); }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: var(--space-2xl); }
    .hero-content { order: 1; }
    body.ltr .hero-content { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
    .stats { justify-content: center; }
    body.ltr .stats { justify-content: center; }
    .hero-image { order: 2; }
    .coming-soon-banner { justify-content: center; text-align: center; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    :root { --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem; }
  /* On déplace le sélecteur en bas pour ne pas toucher au menu */
  /* 1. Position du BOUTON principal */
    .lang-selector { 
        top: auto !important;
        bottom: 25px;
        left: auto !important;
        right: 20px;              /* ARABE : Bouton à Droite */
    }

    body.ltr .lang-selector { 
        right: auto !important;
        left: 20px;               /* FRANÇAIS : Bouton à Gauche */
    }

    .lang-current { 
        padding: 8px 12px; 
        gap: 8px; 
        background: rgba(10, 15, 28, 0.95);
    }
    
    .lang-name-display { display: none; }

    /* 2. Position du MENU DÉROULANT (Le Correctif est ici) */
    .lang-dropdown { 
        min-width: 200px;         /* Largeur minimale pour que le texte tienne */
        max-width: 240px;         /* Empêche d'être trop large */
        top: auto; 
        bottom: 100%;             /* S'ouvre vers le HAUT */
        margin-bottom: 12px;
        transform-origin: bottom right; /* Animation part du coin bas-droit */
        
        /* ARABE : On colle le menu à DROITE pour qu'il s'étende vers la gauche */
        right: 0;
        left: auto;
    }

    /* FRANÇAIS : On colle le menu à GAUCHE pour qu'il s'étende vers la droite */
    body.ltr .lang-dropdown {
        left: 0;
        right: auto;
        transform-origin: bottom left;
    }
    
    /* Animation fluide */
    .lang-dropdown {
        transform: translateY(10px) scale(0.95);
    }
    .lang-selector.open .lang-dropdown {
        transform: translateY(0) scale(1);
    }
    .music-player { bottom: 20px; left: 20px; }
    body.ltr .music-player { right: 20px; }
    .music-toggle { width: 52px; height: 52px; font-size: 1.1rem; }
    .music-tooltip { display: none; }
    .navbar { padding: var(--space-xs) 0; }
    .navbar::before { opacity: 1; }
    .logo img { height: 70px; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; inset: 0; background: rgba(5, 8, 16, 0.98); backdrop-filter: blur(30px); flex-direction: column; justify-content: center; align-items: center; gap: var(--space-xl); transform: translateX(100%); opacity: 0; transition: var(--transition-smooth); z-index: 999; }
    .nav-links.active { transform: translateX(0); opacity: 1; }
    .nav-links a:not(.btn-primary) { font-size: 1.5rem; color: var(--text-primary); }
    .nav-links .btn-primary { padding: 16px 48px; font-size: 1.1rem; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .stats { flex-wrap: wrap; gap: var(--space-lg); }
    .stat-item .count { font-size: 1.5rem; }
    .phone-mockup.realistic { width: 260px; height: 540px; border-radius: 45px; padding: 10px; }
    .phone-mockup .screen { border-radius: 38px; }
    .camera-sensor { width: 100px; height: 28px; top: 10px; }
    .home-indicator-area { height: 28px; }
    .home-indicator { width: 110px; height: 4px; }
    .reflection { inset: 10px; border-radius: 38px; }
    .play-btn-pulse { width: 65px; height: 65px; font-size: 22px; }
    .play-text { font-size: 12px; }
    .video-modal-close { top: -55px; right: 0; width: 44px; height: 44px; font-size: 1.1rem; }
    .phone-mockup.video-mockup { width: 280px; height: 580px; padding: 10px; }
    .phone-mockup.video-mockup .video-container { border-radius: 38px 38px 0 0; }
    .video-controls { padding: 12px 14px; gap: 10px; }
    .control-btn { width: 34px; height: 34px; font-size: 12px; }
    .time-display { font-size: 11px; min-width: 38px; }
    .screenshot-item { width: 150px; height: 320px; border-radius: 22px; padding: 6px; }
    .screenshot-item img { border-radius: 16px; }
    .cta-box { padding: var(--space-xl); }
    .cta-box h2 { font-size: 1.5rem; }
    .btn-xl { padding: 16px 32px; font-size: 1rem; }
    .footer-content { flex-direction: column; gap: var(--space-lg); text-align: center; }
    .coming-soon-banner { padding: var(--space-md); flex-direction: column; text-align: center; }
    .coming-soon-badge { margin-top: var(--space-sm); }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    .logo img { height: 60px; }
    .hero-content h1 { font-size: 1.75rem; }
    .badge { font-size: 0.75rem; padding: 6px 14px; }
    .phone-mockup.realistic { width: 230px; height: 480px; border-radius: 40px; padding: 8px; }
    .phone-mockup .screen { border-radius: 34px; }
    .camera-sensor { width: 85px; height: 24px; }
    .reflection { inset: 8px; border-radius: 34px; }
    .screenshot-item { width: 130px; height: 280px; }
    .section-header h2 { font-size: 1.5rem; }
    .feature-card { padding: var(--space-lg); }
    .phone-mockup.video-mockup { width: 250px; height: 520px; border-radius: 38px; padding: 8px; }
    .phone-mockup.video-mockup .screen.video-screen { border-radius: 32px; }
    .phone-mockup.video-mockup .video-container { border-radius: 32px 32px 0 0; }
    .video-modal-close { top: -50px; right: 50%; transform: translateX(50%); }
}

[data-aos] { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .phone-mockup.realistic { animation: none; }
    .shape { animation: none; }
}