/* ============================================
   Noopy TV - Website Styles
   Modern IPTV App Landing Page
   ============================================ */

/* ===========================================
   CSS Variables
   =========================================== */
:root {
    /* Brand Colors */
    --cyan: #00D4FF;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --green: #10B981;
    --orange: #F59E0B;
    --red: #EF4444;

    /* Surfaces */
    --dark: #0A0A0F;
    --dark-card: #12121A;
    --dark-border: #1E1E2E;
    --surface-hover: #1A1A24;

    /* Gradients */
    --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(139,92,246,0.1) 50%, rgba(236,72,153,0.1) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-faint: rgba(255, 255, 255, 0.3);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Layout */
    --max-width: 1400px;
    --header-height: 80px;
}

/* ===========================================
   Reset & Base
   =========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Support iOS safe areas */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Touch optimization */
    -webkit-tap-highlight-color: transparent;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ===========================================
   Background Animation
   =========================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    animation: bgMove 25s ease-in-out infinite;
    will-change: transform;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-3%, 3%) rotate(1deg); }
    66% { transform: translate(3%, -3%) rotate(-1deg); }
}

/* ===========================================
   Typography
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===========================================
   Layout Utilities
   =========================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-5xl) var(--space-xl);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.section-header .tagline {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===========================================
   Header
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-lg);
}

.header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--duration-normal) var(--ease-out);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--duration-normal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
    color: var(--cyan);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* CTA Button */
.cta-btn {
    background: var(--gradient);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

/* ===========================================
   Mobile Menu
   =========================================== */
.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: var(--space-sm);
    z-index: 1001;
    /* Touch target minimum 48px */
    min-width: 48px;
    min-height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height pour iOS */
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5rem var(--space-lg) var(--space-xl);
    padding-top: calc(env(safe-area-inset-top, 0px) + 5rem);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-xl));
    transition: right 0.4s var(--ease-out);
    z-index: 999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--duration-normal);
    /* Touch target minimum 48px */
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: var(--space-sm) 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--cyan);
}

/* Bouton de fermeture du menu mobile */
.mobile-menu-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all var(--duration-normal);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-4xl)) var(--space-xl) var(--space-3xl);
    position: relative;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--space-lg);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-primary);
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all 0.4s var(--ease-out-back);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-back);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--cyan);
    transform: translateY(-5px) scale(1.05);
}

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

.hero-logo {
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(0, 212, 255, 0.4));
}

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

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    filter: blur(40px);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Platforms */
.platforms {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    align-items: center;
    flex-wrap: wrap;
}

.platform {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--duration-normal) var(--ease-out);
}

.platform:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
}

.platform svg {
    width: 20px;
    height: 20px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: var(--space-sm);
}

/* ===========================================
   Stats Section
   =========================================== */
.stats {
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 50%, transparent 100%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(18, 18, 26, 0.4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-border);
    transition: all var(--duration-normal) var(--ease-out);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===========================================
   Features Section
   =========================================== */
.features {
    padding: var(--space-5xl) var(--space-xl);
    position: relative;
}

.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-back);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.feature-card .feature-list {
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.feature-card .feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.features-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

.features-cta a {
    color: var(--cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--duration-normal);
}

.features-cta a:hover {
    gap: var(--space-md);
}

/* ===========================================
   Screenshots Section
   =========================================== */
.screenshots {
    padding: var(--space-5xl) var(--space-xl);
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    position: relative;
}

.screenshots-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.screenshots-scroll {
    display: flex;
    gap: var(--space-xl);
    overflow-x: auto;
    padding: var(--space-xl) 0;
    padding-bottom: var(--space-2xl);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--purple) transparent;
    /* Padding pour permettre le premier/dernier élément d'être centré */
    scroll-padding: 0 var(--space-xl);
}

.screenshots-scroll::-webkit-scrollbar {
    height: 8px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

/* Masquer la scrollbar sur mobile mais garder le scroll */
@media (max-width: 768px) {
    .screenshots-scroll {
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-md) var(--space-xl);
    }

    .screenshots-scroll::-webkit-scrollbar {
        display: none;
    }
}

.screenshot-card {
    flex: 0 0 auto;
    width: 550px;
    scroll-snap-align: center;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out);
}

.screenshot-card:hover {
    transform: scale(1.03);
}

/* Désactiver le zoom au hover sur mobile */
@media (max-width: 768px) {
    .screenshot-card:hover {
        transform: none;
    }
}

.screenshot-card img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.screenshot-card .label {
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Indicateur de scroll pour mobile */
.scroll-indicator {
    display: none;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: flex;
    }
}

.scroll-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--duration-normal);
}

.scroll-indicator-dot.active {
    background: var(--cyan);
    width: 24px;
    border-radius: 4px;
}

/* Indication visuelle de scroll disponible */
.screenshots-scroll::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--dark));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-normal);
}

@media (max-width: 768px) {
    .screenshots-container {
        position: relative;
    }

    /* Fade sur le côté droit pour indiquer plus de contenu */
    .screenshots-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 80%;
        background: linear-gradient(to right, transparent, rgba(10, 10, 15, 0.8));
        pointer-events: none;
        z-index: 1;
    }
}

/* ===========================================
   Tech Specs Section
   =========================================== */
.tech-specs {
    padding: var(--space-5xl) var(--space-xl);
}

.specs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.spec-item {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
}

.spec-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.spec-item:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.spec-item .icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.spec-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.spec-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================================
   CTA Section
   =========================================== */
.cta-section {
    padding: var(--space-5xl) var(--space-xl);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: var(--space-lg);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: var(--dark);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.app-store-btn svg {
    width: 32px;
    height: 32px;
}

.app-store-btn .text {
    text-align: left;
}

.app-store-btn .text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
}

.app-store-btn .text span {
    font-size: 1.1rem;
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    padding: var(--space-3xl) var(--space-xl);
    border-top: 1px solid var(--dark-border);
    text-align: center;
    background: rgba(10, 10, 15, 0.5);
}

.footer .logo {
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer .links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.footer .links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--duration-normal);
}

.footer .links a:hover {
    color: var(--cyan);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}

.social-link:hover svg {
    fill: var(--text-primary);
}

/* ===========================================
   Forms
   =========================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--duration-normal);
    /* Optimisations mobile */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Optimisations formulaires mobile */
@media (max-width: 640px) {
    .form-group {
        margin-bottom: var(--space-md);
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        /* Taille minimum pour éviter le zoom automatique iOS */
        font-size: 16px;
        padding: 0.875rem var(--space-md);
        /* Touch targets */
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* Feedback visuel amélioré */
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
    }

    /* Style pour les placeholders */
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: var(--text-faint);
        opacity: 1;
    }

    /* États de validation */
    .form-group input:invalid:not(:placeholder-shown),
    .form-group textarea:invalid:not(:placeholder-shown),
    .form-group select:invalid:not(:placeholder-shown) {
        border-color: var(--pink);
    }

    .form-group input:valid:not(:placeholder-shown),
    .form-group textarea:valid:not(:placeholder-shown),
    .form-group select:valid {
        border-color: var(--green);
    }
}

/* ===========================================
   Cards
   =========================================== */
.card {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

/* ===========================================
   FAQ Accordion
   =========================================== */
.faq-item {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    transition: all var(--duration-normal);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform var(--duration-normal);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===========================================
   Responsive Design
   =========================================== */

/* Tablet Large (1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .hero-visual {
        order: -1;
    }

    .hero-text p {
        margin: 0 auto var(--space-xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .platforms {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (968px) */
@media (max-width: 968px) {
    .nav-links,
    .cta-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-xl);
    }

    .hero-logo {
        max-width: 200px;
        max-height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-card {
        width: 85vw;
        max-width: 500px;
    }
}

/* Tablet Small (768px) - Nouveau breakpoint */
@media (max-width: 768px) {
    :root {
        --space-4xl: 5rem;
        --space-5xl: 6rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    }

    .hero-logo {
        max-width: 180px;
        max-height: 180px;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
        opacity: 0.6;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .stats-container {
        gap: var(--space-md);
    }

    .stat-item {
        padding: var(--space-md);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Meilleure lisibilité */
    .feature-card p,
    .spec-item p {
        line-height: 1.6;
    }
}

/* Mobile Large (640px) */
@media (max-width: 640px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
        --space-5xl: 5rem;
        --header-height: 70px;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-lg);
    }

    .hero-logo {
        max-width: 140px;
        max-height: 140px;
    }

    .hero-glow {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    /* Touch targets optimisés - minimum 48px */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .platforms {
        flex-direction: column;
        gap: var(--space-sm);
        margin-top: var(--space-lg);
    }

    .platform {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .platform .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-item {
        padding: var(--space-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .spec-item {
        padding: var(--space-md);
    }

    .spec-item .icon {
        font-size: 1.75rem;
    }

    .spec-item h4 {
        font-size: 0.85rem;
    }

    .spec-item p {
        font-size: 0.75rem;
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .footer .links {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer .links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer {
        padding: var(--space-2xl) var(--space-md);
        text-align: center;
    }

    .footer .logo {
        justify-content: center;
    }

    /* FAQ Mobile - Touch targets améliorés */
    .faq-question {
        padding: var(--space-md);
        font-size: 0.95rem;
        min-height: 56px;
    }

    .faq-answer-content {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 0.9rem;
    }

    /* CTA Mobile */
    .cta-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .cta-section::before {
        width: 100%;
        height: 400px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    /* Download buttons - Touch optimisés */
    .app-store-btn {
        padding: 1rem 1.5rem;
        min-height: 56px;
    }

    .app-store-btn svg {
        width: 28px;
        height: 28px;
    }

    .app-store-btn .text small {
        font-size: 0.7rem;
    }

    .app-store-btn .text span {
        font-size: 1rem;
    }

    /* Screenshots mobile */
    .screenshot-card {
        width: 80vw;
        max-width: 400px;
    }

    .screenshot-card .label {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }

    /* Social links - Touch targets */
    .social-link {
        width: 48px;
        height: 48px;
    }
}

/* Mobile Small (480px) - Nouveau breakpoint */
@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.25rem;
        --header-height: 64px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo span {
        font-size: 1.25rem;
    }

    .hero {
        padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md);
    }

    .hero-logo {
        max-width: 120px;
        max-height: 120px;
    }

    .hero-glow {
        width: 150px;
        height: 150px;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        padding: var(--space-md);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: var(--space-md);
    }

    /* Screenshots encore plus petits */
    .screenshot-card {
        width: 85vw;
        max-width: 320px;
    }

    .screenshot-card.screenshot-iphone {
        width: 220px;
    }

    /* CTA plus compact */
    .cta-content {
        padding: 0 var(--space-sm);
    }

    .download-buttons {
        gap: var(--space-md);
    }
}

/* ===========================================
   Extra Small Screens (< 400px)
   =========================================== */
@media (max-width: 400px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-lg);
    }

    .hero-logo {
        max-width: 120px;
        max-height: 120px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .platform-tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }

    .screenshot-card.screenshot-iphone {
        width: 200px;
    }

    .screenshot-card.screenshot-iphone img {
        border-radius: 16px;
    }
}

/* ===========================================
   Platform Tabs (Screenshots Section)
   =========================================== */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.platform-tab {
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.platform-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan);
}

.platform-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--text-primary);
}

.platform-content {
    transition: opacity var(--duration-normal) var(--ease-out);
}

.platform-content.hidden {
    display: none;
}

/* ===========================================
   iOS Screenshot Cards (Portrait)
   =========================================== */
.screenshot-card.screenshot-iphone {
    width: 280px;
}

.screenshot-card.screenshot-iphone img {
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* ===========================================
   Badge Variations
   =========================================== */
.badge-available {
    background: linear-gradient(135deg, var(--green), #059669);
}

.badge-tvos {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.badge-ios {
    background: linear-gradient(135deg, var(--cyan), #0891B2);
}

/* ===========================================
   Download Buttons Grid
   =========================================== */
.download-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-btn-ios {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.app-store-btn-ios:hover {
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

/* ===========================================
   Feature Platform Tags
   =========================================== */
.feature-platform-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}

.feature-platform-tag.ios {
    background: rgba(0, 212, 255, 0.2);
    color: var(--cyan);
}

/* ===========================================
   Responsive: Platform Tabs & Download
   =========================================== */
@media (max-width: 640px) {
    .platform-tabs {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--space-md);
    }

    .platform-tab {
        width: 100%;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .download-buttons .app-store-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   Performance Mobile - Désactiver animations lourdes
   =========================================== */
@media (max-width: 768px) {
    /* Désactiver l'animation de fond sur mobile pour économiser la batterie */
    .bg-animation::before {
        animation: none;
        transform: none;
    }

    /* Réduire le blur du glow hero (GPU intensive) */
    .hero-glow {
        filter: blur(20px);
        animation: none;
        opacity: 0.4;
    }

    /* Désactiver l'animation de flottement du logo */
    .hero-logo {
        animation: none;
    }

    /* Simplifier les effets de hover sur mobile (pas de hover sur tactile) */
    .feature-card:hover,
    .stat-item:hover,
    .spec-item:hover {
        transform: none;
    }

    /* Réduire le blur du header */
    .header {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }

    /* Désactiver le gradient animé */
    .gradient-text {
        animation: none;
        background-size: 100% 100%;
    }

    /* Simplifier le CTA glow */
    .cta-section::before {
        filter: blur(30px);
    }
}

/* ===========================================
   Reduced Motion
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bg-animation::before {
        animation: none;
    }

    .hero-glow {
        animation: none;
    }

    .hero-logo {
        animation: none;
    }

    .gradient-text {
        animation: none;
    }
}

/* ===========================================
   Mobile Landscape Orientation
   =========================================== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-md)) var(--space-lg) var(--space-lg);
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        text-align: left;
    }

    .hero-visual {
        order: 0;
    }

    .hero-logo {
        max-width: 150px;
        max-height: 150px;
    }

    .hero-glow {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .platforms {
        flex-direction: row;
        margin-top: var(--space-md);
    }

    .platform {
        width: auto;
    }

    /* Sections plus compactes en paysage */
    .section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    /* Stats en ligne */
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===========================================
   iOS Safe Area Support
   =========================================== */
@supports (padding: env(safe-area-inset-bottom)) {
    .header {
        padding-left: max(var(--space-xl), env(safe-area-inset-left));
        padding-right: max(var(--space-xl), env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(var(--space-3xl), calc(env(safe-area-inset-bottom) + var(--space-xl)));
    }

    .mobile-menu {
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
    }

    /* CTA buttons avec safe area */
    .cta-section {
        padding-bottom: max(var(--space-5xl), calc(env(safe-area-inset-bottom) + var(--space-2xl)));
    }
}

/* ===========================================
   High DPI / Retina displays
   =========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo {
        image-rendering: -webkit-optimize-contrast;
    }

    .screenshot-card img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===========================================
   Touch Device Optimization
   =========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Désactiver les effets hover sur tactile */
    .feature-card:hover,
    .stat-item:hover,
    .spec-item:hover,
    .screenshot-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    /* Feedback tactile via :active */
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .feature-card:active {
        transform: scale(0.99);
        border-color: rgba(0, 212, 255, 0.4);
    }

    .platform-tab:active {
        transform: scale(0.98);
    }

    .faq-question:active {
        background: rgba(255, 255, 255, 0.05);
    }

    .app-store-btn:active {
        transform: scale(0.98);
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .header,
    .bg-animation,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
