/* ==========================================================================
   1. VARIABLES ET RÉINITIALISATION
   ========================================================================== */
:root {
    --primary: #B77E65; /* Ton marron signature */
    --accent: #843431;
    --bg-light: #F9F4F2;
    --text-dark: #1A1A1A;
    --white: #ffffff;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--white); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}

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

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */
nav { 
    height: 90px; 
    display: flex; 
    align-items: center; 
    background: var(--white); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
}

nav .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.nav-logo-img {
    height: 35px;
    width: auto;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 600; 
    font-size: 15px; 
    transition: 0.3s;
}

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

.menu-toggle { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
}

.btn-primary { 
    background: var(--accent); 
    color: white !important; 
    padding: 10px 22px; 
    border-radius: 10px; 
}

/* ==========================================================================
   3. APP HERO SECTION
   ========================================================================== */
.app-hero { 
    padding: 100px 0; 
    background: var(--bg-light); 
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.hero-text h1 { 
    font-size: 48px; 
    font-weight: 900; 
    line-height: 1.2; 
    margin-bottom: 25px; 
}

.hero-text h1 span { color: var(--primary); }

.badge {
    display: inline-block;
    background: rgba(183, 126, 101, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
}

.app-download-btns { 
    display: flex; 
    gap: 15px; 
    margin-top: 30px; 
}

.btn-store {
    background: #000;
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-store:hover { transform: translateY(-3px); }

/* Mockup iPhone */
.phone-frame { 
    width: 100%; 
    max-width: 300px; 
    margin: 0 auto;
    border: 10px solid #333; 
    border-radius: 40px; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.app-screen { width: 100%; display: block; }

/* ==========================================================================
   4. FEATURES SECTION
   ========================================================================== */
.section-padding { padding: 100px 0; }
.text-center { text-align: center; margin-bottom: 60px; }

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.feature-icon {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ==========================================================================
   5. GALERIE DE SCREENS
   ========================================================================== */
.screens-gallery {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.screens-gallery::-webkit-scrollbar { display: none; }

.screen-item {
    flex: 0 0 280px;
    border-radius: 30px;
    overflow: hidden;
    border: 6px solid #1A1A1A;
}

.screen-item img { width: 100%; display: block; }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer { background: #f4f4f4; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; }
.footer-links h4 { margin-bottom: 20px; font-weight: 900; }
.footer-links a { display: block; text-decoration: none; color: #666; margin-bottom: 10px; }
.footer-newsletter-form { display: flex; gap: 8px; margin-top: 15px; }
.footer-newsletter-form input { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid #ddd; }
.footer-newsletter-form button { background: var(--primary); color: white; border: none; padding: 0 15px; border-radius: 8px; cursor: pointer; }

/* ==========================================================================
   7. RESPONSIVE DESIGN (CORRIGÉ)
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle { display: block !important; }

    nav .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 90px; left: 0; width: 100%;
        background: var(--white);
        padding: 40px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 20px;
    }

    nav .nav-links.active { display: flex !important; }

    .hero-grid { 
        grid-template-columns: 1fr !important; 
        text-align: center; 
    }

    .app-download-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 32px !important; }
    .screen-item { flex: 0 0 220px; }
    .footer-grid { text-align: center; }
    .footer-newsletter-form { justify-content: center; }
}