/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #000;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #06c;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #f5f5f7;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #06c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 50px;
}

.hero-phone {
    margin: 50px 0;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #06c, #007bff);
    border-radius: 30px;
    opacity: 0.8;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    33% { transform: translateY(-10px) rotateY(5deg); }
    66% { transform: translateY(5px) rotateY(-5deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #86868b;
    font-size: 14px;
    text-align: center;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #86868b;
    margin: 10px auto;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Animations d'apparition */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Design Section */
.design-section {
    padding: 120px 0;
    background: #f5f5f7;
    color: #1d1d1f;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-description {
    font-size: 1.2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
    opacity: 0.7;
}

.design-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #86868b;
    line-height: 1.5;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: #000;
    color: #f5f5f7;
}

.features-section .section-title {
    color: #f5f5f7;
}

.features-grid {
    margin-top: 80px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.feature-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.feature-item.reverse {
    direction: rtl;
    transform: translateX(50px);
}

.feature-item.reverse .feature-text {
    direction: ltr;
}

.feature-visual {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-animation, .camera-animation, .battery-animation {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    position: relative;
    background: linear-gradient(135deg, #06c, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    animation: pulse 3s ease-in-out infinite;
}

.chip-animation::before {
    content: '🔥';
}

.camera-animation::before {
    content: '📸';
}

.battery-animation::before {
    content: '🔋';
}

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

.feature-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #86868b;
}

/* Specs Section */
.specs-section {
    padding: 120px 0;
    background: #f5f5f7;
    color: #1d1d1f;
}

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

.spec-category {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.spec-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.spec-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #06c;
}

.spec-category ul {
    list-style: none;
}

.spec-category li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e7;
    color: #86868b;
}

.spec-category li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: #000;
    color: #86868b;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .feature-item.reverse {
        direction: ltr;
    }
    
    .design-features {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .feature-text h3 {
        font-size: 2rem;
    }
    
    .feature-text p {
        font-size: 1rem;
    }
}