/* ============================================
   MATAA.ME - Portfolio Landing Page
   All 3 Apps Full Width with Screenshot Mockups
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #06080D;
    --bg-secondary: #0D1117;
    --bg-card: rgba(13, 17, 23, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --accent-primary: #00D9FF;
    --accent-secondary: #FF6B35;
    --accent-tertiary: #A855F7;
    --accent-success: #10B981;
    --accent-retro: #00FF88;
    --accent-retrotv: #A855F7;
    --accent-zamantoon: #FF9800;
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #A855F7 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #FF9F1C 100%);
    --gradient-zamantoon: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    --gradient-retro: linear-gradient(135deg, #00FF88 0%, #00D9FF 100%);
    --gradient-tv: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 217, 255, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(0, 217, 255, 0.15);
    --shadow-glow-zamantoon: 0 0 60px rgba(255, 152, 0, 0.15);
    --shadow-glow-retro: 0 0 60px rgba(0, 255, 136, 0.15);
    --shadow-glow-tv: 0 0 60px rgba(168, 85, 247, 0.15);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --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);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.lang-selector, 
.lang-btn, 
.lang-dropdown, 
.lang-option,
.lang-btn span,
#currentLangLabel {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700; 
    letter-spacing: 0.5px;
}
html { scroll-behavior: smooth; font-size: 16px; }
body { 

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Cairo', sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; min-height: 100vh; }
[dir="rtl"] { font-family: 'Cairo', sans-serif; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
::selection { background: rgba(0, 217, 255, 0.3); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: var(--radius-full); }

.bg-mesh { position: fixed; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(0, 217, 255, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.04) 0%, transparent 60%); z-index: -3; }
.bg-grid { position: fixed; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 60px 60px; z-index: -2; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.floating-shapes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); animation: float-shape 25s ease-in-out infinite; }
.shape-1 { width: 400px; height: 400px; background: rgba(0, 217, 255, 0.1); top: 10%; right: -10%; }
.shape-2 { width: 300px; height: 300px; background: rgba(168, 85, 247, 0.08); bottom: 20%; left: -5%; animation-delay: -8s; }
.shape-3 { width: 250px; height: 250px; background: rgba(255, 107, 53, 0.06); top: 50%; left: 50%; animation-delay: -15s; }
@keyframes float-shape { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.1); } 66% { transform: translate(-20px, 30px) scale(0.9); } }
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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); opacity: 0.02; pointer-events: none; z-index: 1000; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: var(--space-md) 0; transition: var(--transition-smooth); }
.navbar::before { content: ''; position: absolute; inset: 0; background: rgba(6, 8, 13, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); 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 { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--text-primary); }
.logo-icon { width: 45px; height: 45px; background: var(--gradient-primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; transition: var(--transition-smooth); }
.logo:hover .logo-icon { transform: rotate(-5deg) scale(1.05); box-shadow: var(--shadow-glow); }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
.logo-text .accent { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition-fast); position: relative; }
.nav-links a:not(.btn-contact)::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-primary); transition: var(--transition-smooth); border-radius: var(--radius-full); }
.nav-links a:not(.btn-contact):hover, .nav-links a:not(.btn-contact).active { color: var(--text-primary); }
.nav-links a:not(.btn-contact):hover::after, .nav-links a:not(.btn-contact).active::after { width: 100%; }
.btn-contact { display: flex; align-items: center; gap: var(--space-xs); padding: 10px 20px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); color: var(--text-primary) !important; transition: var(--transition-smooth); }
.btn-contact:hover { background: var(--bg-glass-hover); border-color: var(--border-accent); transform: translateY(-2px); }

/* Language Selector */
.lang-selector { position: relative; margin-left: var(--space-md); }
[dir="rtl"] .lang-selector { margin-left: 0; margin-right: var(--space-md); }
.lang-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition-smooth); }
.lang-btn:hover { background: var(--bg-glass-hover); border-color: var(--border-accent); }
.lang-btn i { font-size: 0.7rem; transition: var(--transition-fast); }
.lang-selector.active .lang-btn i { transform: rotate(180deg); }
.flag-container { display: flex; align-items: center; }
.flag-img { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 8px; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition-smooth); z-index: 100; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-selector.active .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.9rem; cursor: pointer; transition: var(--transition-fast); }
.lang-option:hover { background: var(--bg-glass-hover); color: var(--text-primary); }
.lang-option.active { background: rgba(0, 217, 255, 0.1); color: var(--accent-primary); }

/* Mobile Toggle */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); cursor: pointer; z-index: 1001; transition: var(--transition-smooth); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: var(--radius-full); transition: var(--transition-smooth); }
.nav-toggle.active { background: rgba(0, 217, 255, 0.1); border-color: var(--accent-primary); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; position: relative; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 8px 18px; background: rgba(0, 217, 255, 0.1); border: 1px solid rgba(0, 217, 255, 0.2); border-radius: var(--radius-full); color: var(--accent-primary); font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-lg); }
.hero-badge i { animation: rocket 2s ease-in-out infinite; }
@keyframes rocket { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: var(--space-lg); }
.hero h1 .line-1 { display: block; color: var(--text-secondary); font-weight: 600; font-size: 0.5em; margin-bottom: var(--space-xs); }
.hero h1 .line-2 { display: block; }
.hero h1 .highlight { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .apps-text { color: var(--text-muted); font-weight: 400; font-size: 0.6em; }
.hero-description { font-size: 1.15rem; color: var(--text-secondary); max-width: 550px; margin-bottom: var(--space-xl); line-height: 1.8; }
.hero-stats { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-lg); background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-xs); }
.stat-divider { width: 1px; height: 50px; background: var(--border-subtle); }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.apps-preview { position: relative; width: 350px; height: 350px; }
.center-orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; border: 2px dashed var(--border-subtle); border-radius: 50%; animation: orbit-pulse 4s ease-in-out infinite; }
@keyframes orbit-pulse { 0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); } }
.preview-card { position: absolute; width: 120px; height: 120px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-secondary); backdrop-filter: blur(10px); transition: var(--transition-smooth); animation: float-card 6s ease-in-out infinite; }
.preview-card:hover { transform: scale(1.1); border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.card-1 { top: 0; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 159, 28, 0.1)); border-color: rgba(255, 107, 53, 0.3); color: var(--accent-secondary); animation-name: float-card-1; }
.card-2 { bottom: 20px; left: 20px; background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 217, 255, 0.1)); border-color: rgba(0, 255, 136, 0.3); color: var(--accent-retro); animation-delay: -2s; }
.card-3 { bottom: 20px; right: 20px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1)); border-color: rgba(168, 85, 247, 0.3); color: var(--accent-tertiary); animation-delay: -4s; }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float-card-1 { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-15px); } }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); color: var(--text-muted); font-size: 0.85rem; animation: bounce-scroll 2s ease-in-out infinite; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--text-muted); border-radius: 12px; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--accent-primary); border-radius: var(--radius-full); position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scroll-wheel 2s ease-in-out infinite; }
@keyframes bounce-scroll { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes scroll-wheel { 0%, 100% { opacity: 1; top: 8px; } 50% { opacity: 0.3; top: 18px; } }

/* Apps Section */
.apps-section { padding: var(--space-3xl) 0; }

/* Fun Section Styling */
.fun-section {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.02), transparent);
}

.fun-tag {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.2);
    color: #00FF88;
}

/* Pro Section Styling */
.pro-section {
    background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.02), transparent);
}

.pro-tag {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    color: #0EA5E9;
}

.gradient-pro {
    background: linear-gradient(135deg, #0EA5E9 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-tag { display: inline-block; padding: 6px 16px; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: var(--radius-full); color: var(--accent-tertiary); font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-md); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: var(--space-sm); }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* Apps Grid */
.apps-grid { display: flex; flex-direction: column; gap: var(--space-xl); }

/* App Card */
.app-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; transition: var(--transition-smooth); }
.app-card:hover { transform: translateY(-8px); border-color: var(--border-accent); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.app-card-wide { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 450px; }
.app-card-zamantoon:hover { border-color: rgba(255, 152, 0, 0.5); box-shadow: var(--shadow-lg), var(--shadow-glow-zamantoon); }
.app-card-retrohome:hover { border-color: rgba(0, 255, 136, 0.5); box-shadow: var(--shadow-lg), var(--shadow-glow-retro); }
.app-card-tv:hover { border-color: rgba(168, 85, 247, 0.5); box-shadow: var(--shadow-lg), var(--shadow-glow-tv); }
.app-card-famiyo:hover { border-color: rgba(0, 188, 212, 0.5); box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 188, 212, 0.15); }
.app-card-streamdeck:hover { border-color: rgba(99, 102, 241, 0.5); box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.15); }

/* Card Glow */
.card-glow { position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 60%); opacity: 0; transition: var(--transition-smooth); pointer-events: none; }
.glow-zamantoon { background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 60%); }
.glow-retro { background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 60%); }
.glow-tv { background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 60%); }
.glow-famiyo { background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 60%); }
.glow-streamdeck { background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%); }
.app-card:hover .card-glow { opacity: 1; }

/* Card Content */
.card-content { padding: var(--space-xl); display: flex; flex-direction: column; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-lg); }
.app-icon {
    width: auto;
    height: 120px;
    /* On enlève le background et border-radius du conteneur */
    background: transparent !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animation flottante */
    animation: icon-float 6s ease-in-out infinite;
    /* Ombre portée sur le PNG lui-même (nécessite un png transparent) */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* S'assure que tout le logo est visible */
    transform: scale(1.1); /* Légèrement plus grand */
}

.app-icon:hover {
    transform: scale(1.15) rotate(-3deg);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animation flottante 3D pour mockups */
@keyframes mockup-float-3d {
    0%, 100% {
        transform: translateY(0) rotateY(-15deg) rotateX(5deg);
    }
    50% {
        transform: translateY(-20px) rotateY(-12deg) rotateX(3deg);
    }
}

@keyframes mockup-float-browser {
    0%, 100% {
        transform: translateY(0) rotateY(-8deg) rotateX(4deg);
    }
    50% {
        transform: translateY(-15px) rotateY(-5deg) rotateX(2deg);
    }
}

/* Ajustement Responsive pour les logos */
@media (max-width: 768px) {
    .app-icon {
        width: 70px;
        height: 70px;
    }
}
.app-icon img { width: auto; height: 100%; object-fit: cover; }
.app-icon.zamantoon { background: var(--gradient-zamantoon); color: white; }
.app-icon.retrohome { background: var(--gradient-retro); color: #0D1117; }
.app-icon.retrotv { background: var(--gradient-tv); color: white; }
.app-icon.famiyo { background: linear-gradient(135deg, #00BCD4 0%, #00D9FF 100%); color: white; }
.app-icon.streamdeck { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; }

/* Badges */
.app-badges { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.badge { padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.badge-mobile { background: rgba(16, 185, 129, 0.1); color: var(--accent-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-web { background: rgba(0, 217, 255, 0.1); color: var(--accent-primary); border: 1px solid rgba(0, 217, 255, 0.2); }
.badge-featured { background: rgba(255, 152, 0, 0.1); color: var(--accent-zamantoon); border: 1px solid rgba(255, 152, 0, 0.2); }
.badge-new { background: rgba(0, 255, 136, 0.1); color: var(--accent-retro); border: 1px solid rgba(0, 255, 136, 0.2); }
.badge-soon { background: rgba(168, 85, 247, 0.1); color: var(--accent-tertiary); border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-pro-featured { background: rgba(0, 188, 212, 0.2); color: #00BCD4; border: 1px solid rgba(0, 188, 212, 0.3); }
.badge-pro-new { background: rgba(99, 102, 241, 0.2); color: #6366F1; border: 1px solid rgba(99, 102, 241, 0.3); }

/* Card Body */
.card-body { flex: 1; }
.card-body h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: var(--space-xs); }
.app-tagline { font-weight: 600; margin-bottom: var(--space-md); }
.app-card-zamantoon .app-tagline { color: var(--accent-zamantoon); }
.app-card-retrohome .app-tagline { color: var(--accent-retro); }
.app-card-tv .app-tagline { color: var(--accent-tertiary); }
.app-description { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-lg); }
.app-features { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.app-features span { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--bg-glass); border-radius: var(--radius-full); font-size: 0.85rem; color: var(--text-secondary); }
.app-features span i { color: var(--accent-success); font-size: 0.7rem; }
.card-footer { margin-top: var(--space-lg); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 14px 28px; background: var(--gradient-warm); 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, 107, 53, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4); }
.btn-primary i { transition: var(--transition-fast); }
.btn-primary:hover i { transform: translateX(5px); }
[dir="rtl"] .btn-primary:hover i { transform: translateX(-5px); }
.btn-secondary { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 14px 28px; background: var(--bg-glass); color: var(--text-primary); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition-smooth); }
.btn-secondary:hover { background: var(--bg-glass-hover); border-color: var(--border-accent); transform: translateY(-3px); }
.btn-secondary:hover i { transform: translateX(5px); }
[dir="rtl"] .btn-secondary:hover i { transform: translateX(-5px); }
.btn-retro { background: rgba(0, 255, 136, 0.1); border-color: rgba(0, 255, 136, 0.3); color: var(--accent-retro); }
.btn-retro:hover { background: rgba(0, 255, 136, 0.2); border-color: var(--accent-retro); box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2); }
.btn-retrotv { background: rgba(0, 255, 136, 0.1); border-color: rgba(0, 255, 136, 0.3); color: var(--accent-retrotv); }
.btn-retrotv:hover { background: rgba(0, 255, 136, 0.2); border-color: var(--accent-retrotv); box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2); }
.btn-pro { background: linear-gradient(135deg, #0EA5E9 0%, #8B5CF6 100%); color: white; box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3); }
.btn-pro:hover { box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4); }
.btn-disabled { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 14px 28px; background: var(--bg-glass); color: var(--text-muted); font-weight: 600; font-size: 1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); cursor: not-allowed; opacity: 0.7; }

/* Card Mockups */
.card-mockup { display: flex; align-items: center; justify-content: center; padding: var(--space-xl); position: relative; }

/* Phone Mockup */
.mockup-phone {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 240px; /* Un peu plus large pour le réalisme */
    height: 480px;
    /* Cadre extérieur (Titane/Aluminium) */
    background: #2a2a2a;
    border-radius: 45px;
    padding: 8px; /* Épaisseur du cadre */
    box-shadow: 
        0 0 0 2px #4a4a4a, /* Contour métal */
        0 30px 60px rgba(0, 0, 0, 0.6), /* Ombre portée */
        inset 0 0 0 2px rgba(0, 0, 0, 0.5); /* Ombre intérieure cadre */
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: mockup-float-3d 6s ease-in-out infinite;
}

.app-card-zamantoon:hover .phone-frame {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02) translateY(-10px);
    box-shadow: 0 50px 80px rgba(0, 0, 0, 0.7);
    animation-play-state: paused;
}

/* Animation pour Famiyo aussi */
.app-card-famiyo .phone-frame {
    animation: mockup-float-3d 6s ease-in-out infinite;
    animation-delay: -2s;
}

.app-card-famiyo:hover .phone-frame {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02) translateY(-10px);
    box-shadow: 0 50px 80px rgba(0, 0, 0, 0.7);
    animation-play-state: paused;
}

/* Boutons physiques */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 100px; left: -2px;
    width: 4px; height: 35px;
    background: #333;
    border-radius: 2px 0 0 2px;
}
.phone-frame::after {
    content: '';
    position: absolute;
    top: 150px; left: -2px;
    width: 4px; height: 60px;
    background: #333;
    border-radius: 2px 0 0 2px;
}

/* Écran noir autour de l'affichage */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    /* Bordure noire interne (bezel) */
    box-shadow: inset 0 0 0 6px #000; 
}

/* Encoche Dynamique (Dynamic Island style) */
.phone-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Léger effet de luminosité écran */
    filter: brightness(1.05);
}

/* Reflet sur l'écran (Glass effect) */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.05) 35%, rgba(255,255,255,0.1) 40%, rgba(255,255,255,0) 45%);
    pointer-events: none;
    z-index: 10;
}
/* Browser Mockup */
.mockup-browser {
    perspective: 1500px;
    /* On centre le mockup dans sa colonne */
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.browser-frame {
    width: 100%;
    max-width: 90%; /* Garde une marge de sécurité */
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: all 0.5s ease;
    border: 1px solid rgba(255,255,255,0.1);
    animation: mockup-float-browser 6s ease-in-out infinite;
}

.app-card-retrohome:hover .browser-frame {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 255, 136, 0.15);
    animation-play-state: paused;
}

/* Animation pour StreamDeck aussi */
.app-card-streamdeck .browser-frame {
    animation: mockup-float-browser 6s ease-in-out infinite;
    animation-delay: -3s;
}

.app-card-streamdeck:hover .browser-frame {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(99, 102, 241, 0.15);
    animation-play-state: paused;
}

.browser-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #333;
}

.browser-dots {
    display: flex;
    gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }

.browser-address {
    flex: 1;
    background: #1a1a1a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #00ff88; /* Accent Retro */
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.browser-content {
    width: 100%;
    /* On enlève l'aspect-ratio fixe pour éviter le vide en bas */
    height: auto; 
    /* Le fond doit correspondre à votre image pour éviter les coupures blanches */
    background: #0d1117; 
    /* Important : supprime les espaces fantômes sous les images en inline */
    display: flex; 
    justify-content: center;
    position: relative;
    /* On s'assure qu'il n'y a pas de padding interne qui pousse l'image */
    padding: 0; 
}

.browser-screenshot {
    width: 100%;
    height: auto; /* L'image garde ses proportions naturelles */
    display: block;
    object-fit: contain; /* S'assure que TOUTE l'image est visible */
    /* Correction du bug d'affichage à droite (micro-espaces) */
    max-width: 100%; 
}

/* Ajustement du cadre global pour qu'il suive la taille de l'image */
.browser-frame {
    height: auto; /* Le cadre s'adapte au contenu */
    max-width: 90%;
    display: flex;
    flex-direction: column;
}
/* ============================================
   NEW: Old CRT TV Design
============================================ */
.mockup-tv {
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crt-tv-set {
    position: relative;
    width: 600px;
    transform: rotateY(12deg);
    transition: transform 0.5s ease;
    animation: mockup-float-browser 7s ease-in-out infinite;
    animation-delay: -1s;
}

.app-card-tv:hover .crt-tv-set {
    transform: rotateY(0deg) scale(1.05);
    animation-play-state: paused;
}

.crt-housing {
    background: #4a3b32; /* Couleur bois/plastique marron foncé rétro */
    background: linear-gradient(to bottom, #5d4a3f, #3e3028);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 
        inset 0 0 0 2px rgba(255,255,255,0.1),
        inset 0 0 20px rgba(0,0,0,0.5),
        10px 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: row; /* Écran à gauche, contrôles à droite */
    align-items: center;
    gap: 15px;
    border: 4px solid #2a201a;
}

.crt-screen-container {
    flex: 1;
    background: #111;
    padding: 10px;
    border-radius: 16px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.crt-screen {
    width: 100%;
    aspect-ratio: 4/3; /* Ratio TV classique */
    background: #000;
    border-radius: 40% 40% 40% 40% / 10% 10% 10% 10%; /* Courbure subtile */
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.crt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) brightness(1.1) saturate(1.2);
}

/* Effets CRT */
.crt-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 2;
}

.crt-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0) 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 3;
}

.crt-reflection {
    position: absolute;
    top: 5%; right: 5%;
    width: 30%; height: 15%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 4;
}

/* Panneau de contrôle latéral */
.crt-controls {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.crt-speaker-grill {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    margin-bottom: 10px;
}

.crt-speaker-grill span {
    height: 2px;
    background: rgba(0,0,0,0.4);
    width: 80%;
    margin: 0 auto;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.crt-knobs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.knob {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ddd 10%, #999 90%);
    border-radius: 50%;
    box-shadow: 0 3px 5px rgba(0,0,0,0.5);
    position: relative;
    cursor: pointer;
}

.knob::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    width: 2px; height: 10px;
    background: #333;
    transform: translateX(-50%);
}

.power-btn {
    width: 20px;
    height: 10px;
    background: #ff3333;
    margin-top: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* Responsive pour la TV */
@media (max-width: 768px) {
    .crt-tv-set {
        width: 100%;
        max-width: 280px;
        transform: rotateY(0);
    }
    .crt-housing {
        flex-direction: column;
        padding: 10px;
    }
    .crt-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    .crt-knobs {
        flex-direction: row;
    }
}
/* Coming Soon Card */
.app-card-coming { min-height: 200px; background: linear-gradient(135deg, rgba(13, 17, 23, 0.9), rgba(6, 8, 13, 0.9)); border-style: dashed; }
.app-card-coming .card-content { display: flex; align-items: center; justify-content: center; width: 100%; }
.coming-soon-content { text-align: center; }
.coming-icon { width: 80px; height: 80px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); margin: 0 auto var(--space-md); animation: rocket-float 3s ease-in-out infinite; }
@keyframes rocket-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(5deg); } }
.coming-soon-content h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); color: var(--text-secondary); }
.coming-soon-content p { color: var(--text-muted); }
.coming-dots { display: flex; justify-content: center; gap: var(--space-xs); margin-top: var(--space-md); }
.coming-dots span { width: 8px; height: 8px; background: var(--text-muted); border-radius: 50%; animation: dot-pulse 1.5s ease-in-out infinite; }
.coming-dots span:nth-child(2) { animation-delay: 0.2s; }
.coming-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }

/* About Section */
.about-section { padding: var(--space-3xl) 0; background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.02), transparent); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: var(--space-lg); }
.about-text p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.9; margin-bottom: var(--space-xl); }
.about-links { display: flex; gap: var(--space-md); }
.link-item { display: flex; align-items: center; gap: var(--space-sm); padding: 12px 24px; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); color: var(--text-primary); text-decoration: none; font-weight: 600; transition: var(--transition-smooth); }
.link-item:hover { background: var(--bg-glass-hover); border-color: var(--border-accent); transform: translateY(-3px); }
.link-item i { color: var(--accent-primary); }
.tech-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.tech-item { width: 80px; height: 80px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-secondary); transition: var(--transition-smooth); }
.tech-item:hover { border-color: var(--border-accent); color: var(--accent-primary); transform: translateY(-5px); box-shadow: var(--shadow-glow); }

/* Footer */
.footer { padding: var(--space-2xl) 0 var(--space-lg); background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xl); flex-wrap: wrap; gap: var(--space-lg); }
.footer-brand p { color: var(--text-muted); margin-top: var(--space-sm); }
.footer-links { display: flex; gap: var(--space-xl); }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom i.fa-heart { color: #FF6B6B; animation: heartbeat 1.5s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.2); } }

/* Responsive */
@media (max-width: 1200px) { .app-card-wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: var(--space-2xl); }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .apps-preview { width: 300px; height: 300px; }
    .preview-card { width: 100px; height: 100px; font-size: 2rem; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-links { justify-content: center; }
    .tech-stack { justify-content: center; grid-template-columns: repeat(6, auto); }
    .app-card-wide { grid-template-columns: 1fr; }
    .card-mockup { padding: var(--space-lg); }
    .phone-frame, .browser-frame, .tv-bezel { transform: none !important; }
    .app-card:hover .phone-frame, .app-card:hover .browser-frame, .app-card:hover .tv-bezel { transform: scale(1.02) !important; }
}
@media (max-width: 768px) {
    .navbar { padding: var(--space-sm) 0; }
    .navbar::before { opacity: 1; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; inset: 0; background: rgba(6, 8, 13, 0.98); backdrop-filter: blur(30px); flex-direction: column; justify-content: 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 { font-size: 1.3rem; }
    .lang-selector { position: fixed; top: var(--space-md); right: 70px; margin: 0; z-index: 1001; }
    [dir="rtl"] .lang-selector { right: auto; left: 70px; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }
    .scroll-indicator, .apps-preview { display: none; }
    .card-content { padding: var(--space-lg); }
    .phone-frame { width: 180px; height: 380px; }
    .browser-frame, .tv-bezel { max-width: 100%; }
    .tech-stack { grid-template-columns: repeat(3, 1fr); }
    .tech-item { width: 60px; height: 60px; font-size: 1.5rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-sm); }
}
@media (max-width: 480px) {
    .container { padding: 0 var(--space-md); }
    .hero h1 { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { padding: var(--space-md); }
    .stat-number { font-size: 2rem; }
    .section-header h2 { font-size: 1.5rem; }
    .card-body h3 { font-size: 1.4rem; }
    .app-features { flex-direction: column; align-items: flex-start; }
    .about-links { flex-direction: column; }
    .phone-frame { width: 160px; height: 340px; }
}
